-
Notifications
You must be signed in to change notification settings - Fork 38
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
Does not process includes as well as nimsuggest CLI (MWE) #180
Comments
it kind of does work in VSC. Here's the things I did:
EDIT: though what's strange is that I tried doing the last step with manually and it seems not to happen. |
How odd! It does indeed work for a hot second. |
Well, I'll start to keep notes here. vscode-nim (vscn) does the sensible thing and keeps My guess is that this process handling gets messed up when switching the editor between files and querying The relevant files so far are, you guessed it, To get set up developing, do these steps:
|
if it's really just a nimsuggest issue then could you put together the steps to reproduce and make an issue on it's issue tracker? |
Oh, sorry! I didn't mean to give the impression I thought it was a nimsuggest issue. My current thinking is that this is a VSCode-Nim issue. Cases where autocompletion works correctly with the above MWE:
Cases where autocompletion fails:
|
I figured it out, atleast somewhat. There's a problem with the dirty files, idk what but if you instead pass the filename again it works for me (https://github.com/pragmagic/vscode-nim/blob/master/src/nimSuggestExec.ts#L200). |
Thanks! That helped me figure out what was going on. Nimsuggest assumes unique dirty files, and vscode-nim uses 1 shared file it always overwrites. |
Remaining unique ID issue fixed in latest PR commit. I think this is ready for merge unless there's any outstanding issues anyone sees or the author disagrees with. |
For some reason, this isn't working as well as nimsuggest, even though isn't it relying on nimsuggest?...
nimsuggest correctly shows completion whereas for some reason this plugin doesn not.
The text was updated successfully, but these errors were encountered: