nim-lang / langserver

The Nim language server implementation (based on nimsuggest)
195 stars 27 forks source link

Stopped working with Emacs + lsp-mode #18

Closed michaelsbradleyjr closed 2 years ago

michaelsbradleyjr commented 2 years ago

If it would be better to file this issue elsewhere, let me know and I'll be happy to do so.

I recently rm -rf ~/.nimble/pkgs/* and did a fresh nimble install nimlangserver. I'm on macOS 12.4 with Emacs 28.1 , using Nim 1.6.6 installed via choosenim 0.8.4.

nimlangserver had been working in my setup previously, but now it consistently crashes right after starting up and I consistently see this in the output in **nimlangserver::stderr**:

nimsuggest(/path/to/my.nim)>>command line(1, 2) Error: invalid command line option: '--v3'

I tried updating to the latest lsp-mode (20220706.42) but it made node difference.

michaelsbradleyjr commented 2 years ago

I tried again after choosenim update devel && choosenim devel and it's working, I'm guessing in relation to https://github.com/nim-lang/Nim/pull/19826.

I'm not sure how viable the devel version of Nim will be for my daily driver, but I'll give it a shot.

yyoncho commented 2 years ago

FYI I will backport to 1.6 as well. The new nimsuggest and the new lang server should perform much better and be much more reliable than the older version.