GDQuest / zed-gdscript

Zed support for the GDScript language
MIT License
37 stars 10 forks source link

Zed on Windows can't connect to LSP #5

Closed deevus closed 4 months ago

deevus commented 5 months ago

I know this is early days for Zed on Windows but I figured I'd try it out. Honestly it looks so good!

image

I installed netcat through scoop so that nc.exe is available on path. Here is the error from the console:

[2024-05-28T21:16:22+10:00 ERROR lsp] Cancelled LSP request task for "initialize" id 0 which took over 120s
[2024-05-28T21:16:22+10:00 ERROR project] failed to start language server "gdscript": LSP request timeout
[2024-05-28T21:16:22+10:00 ERROR project] server stderr: Some("")
[2024-05-28T21:16:22+10:00 ERROR util] crates\lsp\src/lsp.rs:782: oneshot canceled
[2024-05-28T21:16:23+10:00 ERROR util] crates\language\src\language_registry.rs:880: server container removal

Caused by:
    The system cannot find the file specified. (os error 2)

It does hit the LSP as I get this in Godot:

[LSP] Connection Taken
[LSP] Disconnected
grndctrl commented 5 months ago

I don't have a Windows machine, so I am afraid I can't be of any help here, if you find a way to solve it open a PR.

mrtheduts commented 4 months ago

Starting zed from terminal made the executables in PATH accessible from zed, making the LSP work

radu-relantin commented 4 months ago

@mrtheduts @grndctrl I fixed it here > #8

grndctrl commented 4 months ago

Merged @mrtheduts pull

deevus commented 4 months ago

FYI this seems to work better with ncat.exe than nc.exe

I installed nmap which comes with ncat.exe and that works great. nc.exe used to work but for some reason doesn't anymore.