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
No autocompletion showing up for Nim vscode extension #2676
Comments
Thanks for reporting the issue, @vitreo12 ! Just tried this out - I see this callstack popping up:
I need to investigate a bit more - but seems like we're not providing a proper value here: https://github.com/saem/vscode-nim/blob/49dfbc033691509ac80ecf67b71aa75c786f32e6/src/nimvscode/nimUtils.nim#L173 for the It looks like this code path is common to some of the other language features (hover, goto, etc). Just curious - did you install the extension inside Onivim? Or another way? It looks like the extension in the Open-VSX repo is this one: https://open-vsx.org/extension/nimsaem/nimvscode - so actually different from the https://github.com/pragmagic/vscode-nim one you linked - want to make sure I'm looking at the right one 😄 |
I am using the one I linked: I installed it by downloading the I have also just tried the one you linked from Open-VSX, but it still wouldn't work. |
Tested again today - it looks like the extension depends on Installing the Once I had both extensions - I was able to use completion / hover / goto-definition: I'm looking to see why we didn't show an error message in this case - we should have a clear error saying something to the effect of " |
I tried doing the same thing (using Nim in Onivim2) except I used a different Nim extension : https://open-vsx.org/extension/nimsaem/nimvscode and I can see the following error : The auto-completion seems to be working, but I'm not sure what this error message is supposed to mean. Is there an error somehow that I've not seen yet ? Onivim2 0.5.9-nightly | ae21cb9 running on windows. |
I'm getting the same error of "Error: Activating extention 'nimsaem.nimvscode' failed: Cannot read property 'length' of undefined." as @Clonkk, but my autocompletion seems to be not working. I'm running on Linux x64 with cpptools manually installed. |
…on dependency (#3007) __Issue:__ When an extension has a required dependency that is not installed, Onivim would fail to activate the extension silently. __Defect:__ Onivim was not properly handling the extension activation error - usually, it's a `string`, but in the case of a missing dependency, it is a JSON object - the parser was only handling the string case. __Fix:__ Implement a decoder to handle either case. Bubble up the activation error to the user. Related #2676 Related #1058
@zetashift @Clonkk - Looks like the crash for https://open-vsx.org/extension/nimsaem/nimvscode is here: It's expecting workspace storage to be available, but @vitreo12 - thanks for posting those extra details! It looks like the buffer is out-of-sync somehow - the signature help is asking for line 9 here (actually line 10, it's zero-based): https://github.com/pragmagic/vscode-nim/blob/0272a0544ddf147fde98f8a8f2b624b7dcb19eb3/src/nimSignature.ts#L23 - but obviously from your screenshot there are only 4 lines. Does this reproduce consistently for you? If so - I'd be interested in the steps. I'm aware of a few cases the extension host gets out of sync, but any consistent reproduction would be helpful. |
Yes, it does happen consistently. I simply open up the Actually, it happears that now some of the auto complete features work (briefly - 1 minute - then they stop, probably crashing), but I'm getting a |
__Issue:__ The [`https://open-vsx.org/extension/nimsaem/nimvscode`](https://open-vsx.org/extension/nimsaem/nimvscode) extension was failing to activate __Defect:__ The extension was logging out `ctx.storagePath`, which was undefined, because workspace storage was not implemented __Fix:__ Implement workspace storage - add `.config/oni2/workspace` With workspace storage implemented, I get language features via the `nimsaem/nimvscode` extension: ![image](https://user-images.githubusercontent.com/13532591/105923636-83ec7180-5ff1-11eb-9c92-0c30e7e1b1e9.png) Related #1058 Related #2676 __TODO:__ - [x] Check default / no workspace case - [x] Add test to verify `ctx.storagePath` is populated now
With the latest nighty |
Excellent! Thanks for the update @zetashift |
Hello,
I have been trying to get Oni2 to work nicely with the Nim programming language VSCode extension (https://github.com/pragmagic/vscode-nim) with no luck.
The syntax highlighting works correctly, but that's pretty much it: no autocompletion is presented while typing, no functions introspection, no goto, etc...
I am wondering, does this have to do with something missing in Oni2's VSCode plugin integration? Is this VSCode plugin doing something specific that wouldn't work in Oni2?
The text was updated successfully, but these errors were encountered: