When using the @compiler and @error_format directive, the error output of the used compiler is not parsed.
Build
Build from HEAD (6a9a3af) using ldc2 on MacOS/arm64
Observed Behavior
When running lit -c hello.lit on
@code_type lua .lua
@comment_type -- %s
@compiler lit hello.lit && luacheck --formatter plain hello.lua
@error_format %f:%l:%s: %m
@title Hello World
@s Hello world program
--- hello.lua
local msg = "Hello World"
@{print msg}
---
@s printing
--- print msg
print(msg)
end
---
the output remains
lit hello.lit && luacheck --formatter plain hello.lua
hello.lua:6:1: expected <eof> near 'end'
which is the unparsed output of hte luacheck command.
Expected Behavior
Parsing and translating the filename and line number in the output
lit hello.lit && luacheck --formatter plain hello.lua
hello.lit:20:1: expected <eof> near 'end'
When using the
@compilerand@error_formatdirective, the error output of the used compiler is not parsed.Build
Build from
HEAD(6a9a3af) using ldc2 on MacOS/arm64Observed Behavior
When running
lit -c hello.litonthe output remains
which is the unparsed output of hte
luacheckcommand.Expected Behavior
Parsing and translating the filename and line number in the output