cursor
cursor copied to clipboard
Some language servers cannot be installed on windows
I tried to install all the language servers on windows platform client. And I found that there are 4 of them cannot be installed.
Depending on the log and errors, the C language server failed to install because of the wrong download url, since the clangd.zip downloaded by the client is only 1kb and I found the text "Not found" is in there, the url for it in the log is "https://github.com/clangd/clangd/releases/download/undefined/clangd-windows-undefined.zip" which is wrong.
And the C# language server's failing is due to the wrong command line, I can see the error in the log says that "Error occurred in handler for 'installLS': Error: ENOENT: no such file or directory, chmod 'C:\Users\Heroman\AppData\Local\Programs\Cursor\resources\lsp\csharp\OmniSharp'".
The other two lsps are php and typescript, and I can only see the installing in the log and I cannot find out why they are not installed.
I'm also seeing issues with Go along with the others mentioned above.
go:
[2023-03-15 18:53:31.612] [error] Could not install language go
[2023-03-15 18:53:31.613] [info] starting server for go
[2023-03-15 18:53:31.613] [info] Store does not have language downloaded go
[2023-03-15 18:53:31.614] [info] INSTALLING
[2023-03-15 18:53:31.637] [error] error installing go Error: Command failed: go install golang.org/x/tools/gopls@latest
'go' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (node:child_process:409:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
[2023-03-15 18:53:31.637] [error] Could not install language go
[2023-03-15 18:53:31.637] [error] Could not install language go
Why is it attempting to use go to install go?
csharp:
[2023-03-15 18:47:06.419] [info] INSTALLING
[2023-03-15 18:47:07.869] [error] Error occurred in handler for 'installLS': Error: ENOENT: no such file or directory, chmod 'C:\Users\us\AppData\Local\Programs\Cursor\resources\lsp\csharp\OmniSharp'
cursor's attempting to chmod ( which doesn't exist on windows ) Omnisharp without its extension ( it's Omnisharp.exe on windows )
typescript:
[2023-03-15 18:47:26.451] [info] Store does not have language downloaded typescript
[2023-03-15 18:47:26.451] [info] INSTALLING
[2023-03-15 18:47:26.451] [info] Installing typescript
[2023-03-15 18:47:26.867] [info] Store does not have language downloaded typescript
[2023-03-15 18:47:26.867] [info] INSTALLING
[2023-03-15 18:47:26.867] [info] Installing typescript
[2023-03-15 18:47:27.267] [info] Store does not have language downloaded typescript
there's nothing to debug here, the logs don't provide enough info
The same for csharp and c lang
Should be in the newest version 🙂