Skip to content
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

The languageserver crashed 4 times in the last 3 minutes with coc.nvim #84

Open
codic12 opened this issue Jul 10, 2021 · 3 comments
Open
Labels
bug Something isn't working question Further information is requested

Comments

@codic12
Copy link

codic12 commented Jul 10, 2021

Here's my CocConfig in vim:

{
  "languageserver": {
    "nim": {
      "command": "nimlsp",
      "filetypes": ["nim"],
      "trace.server": "verbose"
    }
  }
}

When I try to use it by opening a nim file I get

The languageserver crashed 4 times in the last 3 minutes 

I recall it working before on an older setup, and I saw some other issues too that look resolved; is there any way to fix this?

@codic12
Copy link
Author

codic12 commented Jul 10, 2021

Ok, it only looks to happen on empty files 🤔

If I add something like import posix to the file and restart vim it works just fine.

@PMunch
Copy link
Owner

PMunch commented Jul 12, 2021

Hmm, that's strange. Might it be that Coc starts NimLSP before the file is created? That would possibly cause NimLSP to crash because the file was missing. If you could build NimLSP in debug mode and attach the debug log that would help shed some light on what's going on.

@PMunch PMunch added bug Something isn't working question Further information is requested labels Aug 9, 2021
@uninhm
Copy link

uninhm commented Aug 17, 2021

Might it be that Coc starts NimLSP before the file is created?

[ ERROR ] 2021-08-16T23:19:55-0300 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:462 ] "rpc" "nimlsp" "stderr" "cannot find file: /home/unai/test.nim\n"

You're right

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants