Skip to content

How can make nimlangserver work with vscode? #141

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

Closed
aquinary opened this issue Mar 9, 2025 · 1 comment
Closed

How can make nimlangserver work with vscode? #141

aquinary opened this issue Mar 9, 2025 · 1 comment

Comments

@aquinary
Copy link

aquinary commented Mar 9, 2025

Hi!
Can you tell me how to make autocompletion work for vscode?
I installed the official extension for vscode and configured it as follows:
"nim.formatOnSave": true, "nim.lsp.path": "/nix/store/9864sl1z1xdfh3jvfsq1246xq82295hn-nimlangserver-1.8.1/bin/nimlangserver",

If I run nimlangserver manually, it works (but it doesn't affect auto-completion):

/nix/store/9864sl1z1xdfh3jvfsq1246xq82295hn-nimlangserver-1.8.1/bin/nimlangserver

DBG Starting nimlangserver                     version=1.8.1 params="(clientProcessId: none(int), transport: some(stdio), port: 0)"
DBG Starting stdio server                     
Content-Length: 311

{"jsonrpc":"2.0","method":"extension/statusUpdate","params":{"lspPath":"/nix/store/9864sl1z1xdfh3jvfsq1246xq82295hn-nimlangserver-1.8.1/bin/nimlangserver","version":"1.8.1","nimsuggestInstances":[],"openFiles":[],"extensionCapabilities":["RestartSuggest","NimbleTask"],"pendingRequests":[],"projectErrors":[]}}

In output, where Nim Lsp is empty (see screenshot)
If I select F1 -> Show Nim Language Server Status, I get an error (see screenshot 2)

Maybe I'm doing something wrong and haven't adjusted something?

@jmgomez
Copy link
Collaborator

jmgomez commented Mar 11, 2025

if you have the nimlangserver in your path, it should pick it automatically rather than setting up the path. Can you try that?
BTW you didnt attach any screenshot.

@jmgomez jmgomez closed this as completed May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants