-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Couldn't connect to the lang.server at random port #713
Comments
Headless LSP mode uses a random, high, unoccupied port because the entire purpose is to allow you to open multiple Godot projects in separate VSCode windows without port conflicts. I suspect that the problem is that you changed |
Thank you for your explaination.
I expected the connection to be consistent in cases where it should suceed (not considering boot duration vs. timeout). |
Did fixing |
Seems that it is because of the slow startup time of the lang.server. Opening the settings window is a placebo because it took time. |
Yes, that's why the default value is 10. |
@ParadoxV5 Are you still experiencing a Language Server connectivity problem? |
I have not had connectivity problems recently; |
No. |
Godot version
v4.3.stable.steam [77dcf97d8]
VS Code version
Version: 1.93.0 (system setup)
Godot Tools VS Code extension version
v2.1.0
System information
Windows 11
Issue description
The extension fails with a random port number
unless it’s reloaded after opening the VSCode Settings window(placebo) until half a minute after Godot Engine starts.Yes, random port number, differing each failed retry, as if reading from an uninitialized
uint16
.Steps to reproduce
I opened my project VSCode (from Godot or manually) after opening it in Godot Editor.
settings.json
The text was updated successfully, but these errors were encountered: