zed-gdscript icon indicating copy to clipboard operation
zed-gdscript copied to clipboard

LSP constantly losing connection after inactivity

Open Burloe opened this issue 2 months ago • 6 comments

LSP disconnects often loses connections after a couple of minutes silently Windows 10. It seems to occur after a ~2min period of inactivity. Nothing in the editor tells me that the connection is lost but tabbing back into Godot, the output says [LSP] Disconnected of course. Looking at the server logs, I see: Ncat: An existing connection was forcibly closed by the remote host. .

Image

Burloe avatar Nov 08 '25 18:11 Burloe

same issue MacOS with 4.5.1

attila-lin avatar Nov 09 '25 02:11 attila-lin

Can't reproduce on Linux. Have you used the extension before? Is this a new regression? Can you try it with an older version of Godot, like 4.4.1?

fstxz avatar Nov 09 '25 11:11 fstxz

Same issue on Windows 10, Zed 0.211.6, Godot 4.5.1 & nmap 7.98

TacoGuyAT avatar Nov 09 '25 17:11 TacoGuyAT

Seeing this as well in windows 11, Zed 0.211.6, Godot 4.5, nmap 7.98

jacksonludwig avatar Nov 10 '25 20:11 jacksonludwig

Can't reproduce on Linux. Have you used the extension before? Is this a new regression? Can you try it with an older version of Godot, like 4.4.1?

I haven't used it before. I tried it with 4.4.1 and experienced the same issue, same Ncat: An existing connection was forcibly closed by the remote host. .

Image

Burloe avatar Nov 11 '25 09:11 Burloe

On Windows I get this error when using netcat from Nmap ( in my case v7.98). However when I used netcat from msys2, it works perfectly. Seems like an issue with Nmap. For people who are interested netcat form msys2 has only 3 dll dependencies. Link. Add it and the dlls to PATH and it works. p.s. The dlls are from the msys runtime. Comment if you are interested and I will tell how you can get them.

c4urslf avatar Nov 26 '25 14:11 c4urslf

Link. Add it and the dlls to PATH and it works. p.s. The dlls are from the msys runtime. Comment if you are interested and I will tell how you can get them.

Hey, I'm interested in this. I'm about to make the switch to Zed as I'm quite impressed by the editor so far. The only thing that's annoying is that I have to constantly reconnect the LSP.

Paragrimm avatar Dec 03 '25 09:12 Paragrimm

Link. Add it and the dlls to PATH and it works. p.s. The dlls are from the msys runtime. Comment if you are interested and I will tell how you can get them.

Hey, I'm interested in this. I'm about to make the switch to Zed as I'm quite impressed by the editor so far. The only thing that's annoying is that I have to constantly reconnect the LSP.

The openbsd-netcat package has netcat.

Dependencies are msys-2.0.dll link msys-md-0.dll link msys-bsd-0.dll link

You don't need the entire packages only those 3 dlls. Place all the binaries in a folder and add it to PATH env.

c4urslf avatar Dec 03 '25 10:12 c4urslf