Фикс парсера ошибок

Как завещал нам дедушка Декарт, «Я мыслю, следовательно, я есмь». Бля, файл короче чекается на наличие в парсере. component.get ("computer").beep заменил на computer.beep, ибо хуле-вообще. Ну и под шумок себя в контрибуторов вписал, ой, то есть ПОФИКСИЛ НЕСООТВЕТСТВИЕ ВИКИ КОДУ.
This commit is contained in:
Smok1e 2022-09-16 02:09:53 +03:00
parent a5a3f7634e
commit 2bd4abc9a1

View File

@ -2171,6 +2171,7 @@ function system.error(path, line, traceback)
-- Read part of file to display error line -- Read part of file to display error line
-- GUI.alert("SYS", path) -- GUI.alert("SYS", path)
if filesystem.exists(path) then
for line in filesystem.lines(path) do for line in filesystem.lines(path) do
if lineCounter >= codeView.fromLine and lineCounter <= toLine then if lineCounter >= codeView.fromLine and lineCounter <= toLine then
codeView.lines[lineCounter] = line:gsub("\t", " ") codeView.lines[lineCounter] = line:gsub("\t", " ")
@ -2186,6 +2187,7 @@ function system.error(path, line, traceback)
computer.pullSignal(0) computer.pullSignal(0)
end end
end end
end
-- Stacktrace parsing -- Stacktrace parsing
local lines = text.wrap(traceback:gsub("\r\n", "\n"):gsub("\t", " "), window.width - codeView.width - 2) local lines = text.wrap(traceback:gsub("\r\n", "\n"):gsub("\t", " "), window.width - codeView.width - 2)
@ -2218,7 +2220,7 @@ function system.error(path, line, traceback)
workspace:draw() workspace:draw()
for i = 1, 3 do for i = 1, 3 do
component.get("computer").beep(1500, 0.08) computer.beep(1500, 0.08)
end end
end end
@ -2646,6 +2648,7 @@ function system.updateDesktop()
"Yakov Verevkin, vk.com/id60991376", "Yakov Verevkin, vk.com/id60991376",
"Alexey Smirnov, vk.com/id23897419", "Alexey Smirnov, vk.com/id23897419",
"Timofey Shestakov, vk.com/id113499693", "Timofey Shestakov, vk.com/id113499693",
"Fedor Cheremisenov, vk.com/id402150900",
" ", " ",
"UX-advisers:", "UX-advisers:",
" ", " ",