-
Notifications
You must be signed in to change notification settings - Fork 9
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
Nimsuggest crashes when run without a backend specified #117
Comments
@liquid600pgm can you try right before this commit nim-lang/Nim#15549 as mentioned here: |
As per @Clyybber's suggestion on Discord, I cleared the nimcache and everything works correctly so far. I'll reopen if this ever turns up again. |
having to clear the cache might be an acceptable-ish solution if using 2 different versions of nim, but not if using same version of nim and running some commands; is there a repro? |
I was able to reproduce this using the following steps: # before running anything we're on 1.4.0, in rapid's root folder
choosenim 1.2.6
nim c tests/tchipmunk
choosenim 1.4.0
nimsuggest tests/tchipmunk.nim |
thanks for the repro, I still think we should fix this |
Seems to still be present, and quite annoying :/ reopening. It can just crash in the middle of editing the file (using nim.nvim) which then forces me to stop writing code, switch to my terminal, |
can you try #117 (comment) ? |
Happens on this file, I haven't been able to reproduce it on a smaller example but that shouldn't matter.
Since Nim 1.4 nimsuggest hits an assertion when run like this:
It doesn't crash however when the backend is specified explicitly:
And also doesn't crash on Nim 1.2.6.
My hunch is that the compiler itself initializes the backend to C by default, but not nimsuggest, hence the assertion is hit because the default backend is
backendInvalid
.The text was updated successfully, but these errors were encountered: