Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with lcb on windows #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tools/Linter.lc
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,18 @@ 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
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
Expand Down