You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When there is a syntax error in a file included via %include, the parser will fail on the %include and just say Parse Error rather then telling about the syntax error in the nested code.
To Reproduce
have 2 files: main.liq
%include "test.liq"
-- any other code --
test.liq (notice the double . in the parameter)
def test(~test=1..) =
test
end
This will return something along the lines of:
At main.liq, line 1, char 0-20:
%include "test.liq"
Error 2: Parse error
Expected behavior
It should report on the syntax error in test.liq
Additional details
interestingly enough, if the content of test.liq is set to something like:
invalid content
The parser error will say:
At test.liq, line 1, char 0-7:
invalid content
Error 4: Undefined variable invalid
Version details
OS: Ubuntu 22.10
Version 2.1.3 (docker container)
Install method
Docker
The text was updated successfully, but these errors were encountered:
Hi @toots ,
I just tested it with the rolling release liquidsoap-5c4daae_2.1.4-debian-bullseye-1_amd64.deb which should(?) include this fix.
It seems to me the fix did not work.
main.liq %include "test.liq" print("hi") -- any other code --
test.liq def test(~test=1..) = test end
`liquidsoap --verbose -c main.liq
INFO: Loading Sdl_ttf, Target = linux
INFO: Loading Sdl_image, Target = linux
At main.liq, line 1, char 0-19:
%include "test.liq"
Error 2: Parse error
`
I do have the version: liquidsoap 'print(liquidsoap.version)' "2.1.4+git@5c4daae3d".{at_least = <fun>}
Describe the bug
When there is a syntax error in a file included via
%include
, the parser will fail on the%include
and just sayParse Error
rather then telling about the syntax error in the nested code.To Reproduce
have 2 files:
main.liq
test.liq (notice the double
.
in the parameter)This will return something along the lines of:
Expected behavior
It should report on the syntax error in
test.liq
Additional details
interestingly enough, if the content of
test.liq
is set to something like:The parser error will say:
Version details
Install method
Docker
The text was updated successfully, but these errors were encountered: