Skip to content

Nim Lsp Not responding #7508

Discussion options

You must be logged in to vote

Ah ok, I can reproduce. The problem is this line upstream https://github.com/nim-lang/langserver/blob/b243a4c076bde0876052dff7d7a65ab43d2bd33b/nimlangserver.nim#L122

The server isn't handling the case that rootUri can be null (relevant part of the spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize). When we pass it as null it fails saying that file is the only scheme supported by the scheme on a null URI is also null. This should be fixed upstream but as a workaround you can create a .helix/languages.toml file in your Nim project root directory so that we send the rootUri as that directory rather than null.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RobertGeorgeByrne
Comment options

@the-mikedavis
Comment options

Answer selected by RobertGeorgeByrne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client upstream
2 participants
Converted from issue

This discussion was converted from issue #7507 on July 02, 2023 05:10.