From 157823b73abd5e05b901d981ed02ead1bf12d0bf Mon Sep 17 00:00:00 2001 From: William Date: Sat, 15 Jan 2022 07:31:13 -0800 Subject: [PATCH 1/2] Issue #42: Shell window visible when linting lcb under Windows --- tools/Linter.lc | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/Linter.lc b/tools/Linter.lc index cc54216..42274dc 100644 --- a/tools/Linter.lc +++ b/tools/Linter.lc @@ -96,6 +96,7 @@ command Lint create folder tLCIDirectory end if SaveToTempFile tScript + set the hideConsoleWindows to true put shell(tLCCompile & tModulePaths & " -- " & sTempFile) into tErrors split tErrors with return repeat with tIndex = 1 to the number of elements of tErrors From 0156b466c2363a3642eedf42b3a9af704984b888 Mon Sep 17 00:00:00 2001 From: William Date: Sat, 15 Jan 2022 07:31:33 -0800 Subject: [PATCH 2/2] Issue #41: LCB linting reporting wrong errors line numbers on windows --- tools/Linter.lc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/Linter.lc b/tools/Linter.lc index 42274dc..7225584 100644 --- a/tools/Linter.lc +++ b/tools/Linter.lc @@ -100,8 +100,14 @@ command Lint put shell(tLCCompile & tModulePaths & " -- " & sTempFile) into tErrors split tErrors with return repeat with tIndex = 1 to the number of elements of tErrors - split tErrors[tIndex] with ":" - write tErrors[tIndex][2], tErrors[tIndex][3], tErrors[tIndex][4] & linefeed to stdout + if the platform is "Win32" and char 2 to 3 of tErrors[tIndex] is ":/" then + split tErrors[tIndex] with ":" + write tErrors[tIndex][3], tErrors[tIndex][4], tErrors[tIndex][5] & linefeed to stdout + else + split tErrors[tIndex] with ":" + write tErrors[tIndex][2], tErrors[tIndex][3], tErrors[tIndex][4] & linefeed to stdout + end if + end repeat DeleteTempFile break