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
Boot as shell silently quits when the script is malformed #547
Comments
Notice that Line 13 is well-formed, but the |
Thanks for looking into this! |
The problem starts at https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/main.clj#L180 and lies with
My thinking is: what's the benefit of properly reading these files? We could just concatenate them string-wise and then the user will see syntax errors when the whole thing gets read and evaluated. If there is a reason to read the forms before concatenating them, then we should probably switch to a |
I can file a separate bug for this if you'd like, but this is related to
I'm not sure if a |
Discussed with @micha on Slack a bit, and I think we're in agreement - the way to go here is to move away from @bhagany I think that would solve keywords thing too. Micha also pointed out we can probably use |
…an reading each separately
Thanks for fixing this. I ❤️ Boot! |
Here's a valid
test.clj
:When launched with
boot -f test.clj
it works correctly:But if I put an extra paren after the first form:
When running the same script I get:
And the exit code is zero. The expected behavior would be to signalize that the script is malformed.
The text was updated successfully, but these errors were encountered: