-
Notifications
You must be signed in to change notification settings - Fork 39
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
Crash when compiling a-b.nim #720
Labels
bug
Something isn't working
compiler
General compiler tag
good first issue
Easy-to-start-with issue with no in-depth knowledge or complex implementation required.
Comments
saem
added
bug
Something isn't working
good first issue
Easy-to-start-with issue with no in-depth knowledge or complex implementation required.
compiler
General compiler tag
labels
May 25, 2023
|
At the very least a sensible error message, instead of a crash. In the case of getting it to work, I'm not really sure how to balance: The funky ways underscores can/could be inserted/omitted in identifies, and a potentially mandatory unskippable underscore. |
there is also the Rust way of turning a-b into a_b |
zevv
added a commit
to zevv/nimskull
that referenced
this issue
Mar 8, 2024
Error: invalid module name: '<nil tree>' when trying to import a module with invalid name (for example, a module containing a hyphen in the name). This fixes issue nim-works#720.
github-merge-queue bot
pushed a commit
that referenced
this issue
Jun 19, 2024
## Summary While the AST form of the error generated by `modules/modulepaths` is handled in `cli_reporter` , the symbol form was not, creating terrible error messages such as: Error: invalid module name '<nil tree>' This PR makes cli_reporter aware of the symbol form generated by `modules/modules` , fixing the bad error message. ## Details * `cli_reporter` now handles the symbol form of `rsemInvalidModuleName` correctly. * `modules/modules` now raises `rsemInvalidModuleName` with line information, allowing user and tools to know which file the error originated from. Fixes #720 --------- Co-authored-by: zerbina <[email protected]>
Fixed by #1354. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
compiler
General compiler tag
good first issue
Easy-to-start-with issue with no in-depth knowledge or complex implementation required.
The compiler crashes with trying to compile a file with
-
in it.The text was updated successfully, but these errors were encountered: