-
Notifications
You must be signed in to change notification settings - Fork 189
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
nimble test fails with internal error #456
Comments
Just ran into the same issue but didn't require adding a 'bin' directory, mine is a library. The issue appears to go away without any external dependencies. Installed toolchain with choosenim(stable): Created a package with nimble init
Edit: If I get some time later, I'll try digging around to see if I can either figure out where this is originating from or maybe put together a patch. We're using Nim at work now, so upstream contributions are fair game :D |
Yay! Happy to hear more people using Nim at work :D Some tips on debugging this:
|
Thanks for the tips @dom96 I took a look again and can reproduce with upstream-built nim(devel) and nimble(master). Just echo debugging, I found that the Nimble code stops executing with the call to graph.processModule nimscriptsupport.nim#L338 And I found an error message for "n is not nil" in Nim's compiler/sem.nim. Will dig more later. |
Just did the same as @erhlee-bird and echo debugged my way through Nimble. I'm also seeing it fail on the
And as the I don't even remotely understand enough to fix the issue. :) In case someone wants to reproduce the error I see: The error then occurs while checking the Hopefully that helps someone to fix this. |
Thanks for the really detailed explanation @Vindaar |
Might be related to this nim-lang/Nim#8590 (comment) |
should we close this? /cc @erhlee-bird @dom96 @alaviss @Jeff-Ciesielski can't reproduce using either latest nim devel (77f836b403af0bb130368ba05c96799393b2eeb9) or even nim at 85187d4ba379b4c08f77feb032632aa47837016f right before nim-lang/Nim#9259 was merged (which closed nim-lang/Nim#9068); so it could have been fixed already at some earlier point |
Could you reproduce it before? |
I think we can close this. |
Run
nimble init
and fill in any package details you want, making sure to create a 'bin' package.Add a dependency.
Example nimble init file below.
Run
nimble test --verbose
.The text was updated successfully, but these errors were encountered: