-
-
Notifications
You must be signed in to change notification settings - Fork 169
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 GDScript language server. #154
Comments
What happens if you click the reconnect button? Do you have multiple instances of Godot open? That messes up the plugin in my experience. |
@aaronfranke the error come back when I click retry. |
I can reproduce this problem with newer Godot 3.2 versions from commit godotengine/godot@511105b onwards. I did a git bisect, earlier Godot versions (including official 3.2 release) are working for me. The reason is most likely that the language server in Godot was rewritten from Websockets to raw TCP, in pull request godotengine/godot#35864. I assume the VS Code client would need to be adjusted accordingly. |
I think this branch need to be merged as well to work with the recent versions of godot |
If this can help anyone, I had this issue with the Godot version provided in the Ubuntu repositories ( |
@FabienSailliet The Godot version in the Ubuntu repositories is 3.2 (= 3.2.0, it's not 3.2.2). Its GDScript language server only supports WebSockets, not TCP. Linux distribution repositories are generally frozen, which means their packages don't receive updates (except for security updates which are manually backported). As an alternative, use the official binary, use the Flatpak, or build from source. |
Ok, but it is strange as it didn't work even when I switched to WebSockets in VSCode settings. Thanks for the information. |
so if i use apt, the gdscript server won't connect. if i use the flatpak, it won't launch vscode and i can manually run not sure what to do from here |
|
This is due to Flatpak's sandboxing. See a workaround here: https://github.com/flathub/org.godotengine.Godot#using-an-external-script-editor |
Bruh 4.0 on Arch linux this happen again |
4.0 alpha 6 on macOS has this issue too. |
The language server likely has had incompatible changes not taken into account by this extension yet. Edit: There's also a regression in 4.0alpha7 that broke the language server: godotengine/godot#60647 cc @Razoric480 |
arch (artix) godot v3.4.4.stable.arch_linux |
(Arch Linux) I've noticed if installed via Steam it won't connect, but if installed via the repos it does work. It also only works by opening a file in code from within Godot, rather than opening the entire project |
I'm facing this issue with Godot 3.2 on Manjaro, VS code 1.42.0
The text was updated successfully, but these errors were encountered: