saem / vscode-nim

Other
180 stars 23 forks source link

nimsuggest not installed #109

Open daiyam opened 1 year ago

daiyam commented 1 year ago

Hi,

When using the extension on a system where nimsuggest isn't installed, I'm getting the error:

Activating extension 'nimsaem.nimvscode' failed: The "path" argument must be of type string. Received null.

It should be allowed to not have nimsuggest since the extension can still provide other features like syntax highlighting.

RSDuck commented 1 year ago

as a workaround have you tried disabling nimsuggest in the settings?

daiyam commented 1 year ago

Ya, I can avoid that error with "nim.enableNimsuggest": false but then I get:

Binary named 'nim' not found in PATH environment variable

due to https://github.com/saem/vscode-nim/blob/a937ed1eca0b81c93b3f6c5dcbbc9c9eb5e2a8de/src/nimvscode.nim#L466 which I can't deactivate.