-
Notifications
You must be signed in to change notification settings - Fork 33
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
Helix Edior - nimlangserver exits on startup #59
Comments
Here's little insight into the problem. Helix sends the following JSON with the
The Line 122 in 611c656
Hope that helps. |
Although it is optional in the spec from the language server perspective we need a project root in order to determine where to start the compiler from. I will leave the issue open to work out a better error message. |
Can the project root default to the working directory? |
Technically we can, the issue is that this might introduce non-deterministic behavior based on whether the user has first opened |
The path is sent in the |
Not 100% where do I have to add the missing information? |
This sounds to me like a solution may be to fallback to the I ran into this issue while setting up my environment to start learning Nim, so I've never written Nim before, otherwise I'd open a PR myself. Once I've at least done some tutorials I will return to attempt the change if it's welcome and if it hasn't been made already by then |
… of using the current directory. This should improve performance with editors that only send rootPath, but no rootUri, such as Helix. Fixes nim-lang#59.
… of using the current directory. This should improve performance with editors that only send rootPath, but no rootUri, such as Helix. Fixes nim-lang#59.
I've just started programming nim and wanted to use nimlangserver in my helix editor.
Installed it with
nimble install nimlangserver
and tested it with both the version 1.6.1 and version 2.0.0.But the language-server always exits on startup of helix with the following error:
So I think, this is the problem:
Shutting down due to an error: Invalid scheme: , only \"file\" is supported
But I don't know, how to solve it.
Can anyone help out? I've made no other changes for the nim lang in the
config.toml
of helix.Thanks a lot.
The text was updated successfully, but these errors were encountered: