-
Notifications
You must be signed in to change notification settings - Fork 27
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
ready compiled nimlangserver binaries #92
Comments
Check out the latest binaries, they are automatically compiled after every commit: |
test of the latest nimlangserver.exe
|
after downloading & placing "nimlangserver.nimble" in vscode 1.85.1 now i have syntax-highlighting , nimlangserver.exe , nimsuggest.exe , nim.exe installed is : vscode extension "nim-lang.org" version 0.8.2 nim.exe --version |
What project (i.e. what nim file) are you using to test the server? Are there any error messages on the screen? The first time you open a .nim file, do you see a "Nimsuggest initialized for ' popup in the lower right part of the screen? When you go the output window (Ctrl+K Ctrl+H), from the drop down in the upper right area of the window, is there a "Nim Language Server" item? Can you attach the log output that appears, when you select this item? |
i tested only projectless *.nim files , here for this test i use
there is no "Nim Language Server" item in the drop down but if i comment out the "nim.provider" ... line , then DBG Router: dispatching method=initialize id=0
DBG Initialize received...
DBG Router: sending response method=initialize id=0
DBG Router: dispatching method=initialized id=null
DBG Client initialized.
DBG Requesting configuration from the client
DBG Router: dispatching method=textDocument/didOpen id=null
DBG New document opened for URI: uri=file:///d%3A/nimlangserver.nim
Shutting down due to an error: Invalid hostname: C, only empty hostname is supported
utils.nim(92) uriToPath
asyncfutures.nim(385) read
asyncfutures.nim(385) read
asyncfutures.nim(385) read
??? route (Async)
asyncfutures.nim(385) read
asyncfutures.nim(385) read
[Info - 7:15:18 PM] Connection to server got closed. Server will restart.
true
[Error - 7:15:18 PM] Server process exited with code 1.
[Error - 7:15:19 PM] Server process exited with code 1.
[Error - 7:15:19 PM] The Nim Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. |
I could not reproduce the problem under Windows 11 and Visual Studio Code 1.85.2. Both the i686 and amd64 builds worked fine for me, so there is something that is specific to your system. Can you provide some additional info:
|
|
i only use & have the vscode global settings.json file . and i've uninstalled all vscode extensions ,
i've attached the log in verbose mode could the not empty hostname be the origin of the problem ? : Shutting down due to an error:
Invalid hostname: C, only empty hostname is supported
utils.nim(92) uriToPath my updated current environment :
|
Tried VS Code in portable mode and still cannot reproduce the bug. :( Another difference is that I'm testing with Nim 2.0.2 - the latest stable version. Can you try again with the latest nimlangserver build. Even though the problem isn't fixed, I've added the actual URI to the exception message in case of this error, so we'll get more helpful diagnostic information. |
the following tests were all done with the nimlangserver.exe tested file : nimlangserver.nim , result : for the 2. test i used the file test.nim , consisting only of the one line let test = 1 this resulted in : output(nimlangserver with nim-2.1.1).log [Error - 2:42:43 PM] Stopping server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 2:42:43 PM] Server process exited with code 1.
[Error - 2:42:43 PM] Client Nim Language Server: connection to server is erroring.
Cannot call write after a stream was destroyed
[Error - 2:42:43 PM] Request textDocument/documentSymbol failed.
Message: Cannot call write after a stream was destroyed
Code: -32099 |
I've commited a fix: 4979bb0 |
i'm very happy 🙂 to report , that with your newest commit when opening the test-file test.nim , it appears the fine i'll open a new issue , to report the different result with nim-2.1.1 . developing my project in nim-2.1.1 and in vscode i'll close this issue as successfully completed . thank you 🙂 |
it would be great if ready compiled nimlangserver
binaries could be provided as downloads .
i'm trying in vscode 1.85.1 to get the extension nim-lang.org
to work .
on they way to debug the compilation
of the nimlangserver is tough .
although i managed to compile it ,
i still couldn't get the vscode extension nim-lang.org
to work .
having ready compiled nimlangserver binaries
available as downloads , would be tremendously helpful .
The text was updated successfully, but these errors were encountered: