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

Invoke error in cleanup is not found #49

Open
JohanVikman opened this issue Aug 21, 2023 · 2 comments
Open

Invoke error in cleanup is not found #49

JohanVikman opened this issue Aug 21, 2023 · 2 comments

Comments

@JohanVikman
Copy link
Contributor

In this small example the cleanup section is supposed to invoke a macro.

However there's a syntax error in the macro invocation, the ending "]" is missing, so I expected a syntax error, however it is not found.

 lux --version
2.8.1
❯ cat test.lux
[doc]
Issue with the [cleanup] section.
[enddoc]

[shell test]
    !echo "test"
    ?test

[cleanup]
    [invoke missing_end_bracket%
❯ lux test.lux
summary log       : /Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log

test case         : test.lux
progress          : ..:..:.:..:..:.:..c....:..:.:..:.
result            : SUCCESS

successful        : 1
summary           : SUCCESS

file:///Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log.html
@JohanVikman
Copy link
Contributor Author

If there's a new line at the end of the [invoke missing_end_bracket the error is found.

@hawk
Copy link
Owner

hawk commented Aug 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants