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 incorrect error message when splitting a function call across multiple lines #74

Closed
albrow opened this issue Nov 9, 2023 · 1 comment
Labels
bug Something isn't working editor Code editor, error messages, control panel, etc.

Comments

@albrow
Copy link
Owner

albrow commented Nov 9, 2023

Currently, if you try to split a function call across multiple lines, you get an error about a missing semicolon. This error message is wrong and occurs due to limitations in the semicolon checker code. Ideally, we would be able to support this since it is technically allowed in normal Rhai syntax. At the very least, we should fix the error message to make it more clear what is going on.

Screenshot 2023-11-09 at 2 38 30 PM
Screenshot 2023-11-09 at 2 38 44 PM

@albrow albrow added bug Something isn't working editor Code editor, error messages, control panel, etc. labels Nov 9, 2023
@albrow
Copy link
Owner Author

albrow commented Nov 9, 2023

This is now fixed in the dev branch. Here is the new error message:

Screenshot 2023-11-09 at 2 41 46 PM

@albrow albrow closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor Code editor, error messages, control panel, etc.
Projects
None yet
Development

No branches or pull requests

1 participant