Skip to content
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

Closed
rodrigofbm opened this issue Mar 1, 2020 · 15 comments
Closed

Couldn't connect to the GDScript language server. #154

rodrigofbm opened this issue Mar 1, 2020 · 15 comments
Labels

Comments

@rodrigofbm
Copy link

I'm facing this issue with Godot 3.2 on Manjaro, VS code 1.42.0

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=19.0.1
DISTRIB_CODENAME=Kyria
DISTRIB_DESCRIPTION="Manjaro Linux"
@aaronfranke
Copy link
Member

aaronfranke commented Mar 3, 2020

What happens if you click the reconnect button?

Do you have multiple instances of Godot open? That messes up the plugin in my experience.

@rodrigofbm
Copy link
Author

@aaronfranke the error come back when I click retry.
Only one Godot open

@Bromeon
Copy link
Contributor

Bromeon commented Apr 12, 2020

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.

@rafaeldelboni
Copy link

I think this branch need to be merged as well to work with the recent versions of godot
#141

@Calinou Calinou added the bug label Apr 13, 2020
@FabienSailliet
Copy link

If this can help anyone, I had this issue with the Godot version provided in the Ubuntu repositories (3.2.stable.custom_build, indicated in apt as 3.2-stable-2), downloading the engine from the website fixed it (version 3.2.2.stable.official).

@Calinou
Copy link
Member

Calinou commented Sep 12, 2020

@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.

@FabienSailliet
Copy link

Ok, but it is strange as it didn't work even when I switched to WebSockets in VSCode settings.

Thanks for the information.

@thejacer87
Copy link

@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.

so if i use apt, the gdscript server won't connect. if i use the flatpak, it won't launch vscode

same settings:
image

and i can manually run $ code ~/project_dir --goto Scripts/State.gd:3 and it launched vscode just fine

not sure what to do from here

@capnm
Copy link

capnm commented Sep 20, 2020

not sure what to do from here

$ which code shows you the code path ... or download and run Godot from https://godotengine.org/download/linux
¯\_(-_-)_/¯

@Calinou
Copy link
Member

Calinou commented Sep 20, 2020

if i use the flatpak, it won't launch vscode

This is due to Flatpak's sandboxing. See a workaround here: https://github.com/flathub/org.godotengine.Godot#using-an-external-script-editor

@lockious
Copy link

Bruh 4.0 on Arch linux this happen again

@Richard74Huang
Copy link

4.0 alpha 6 on macOS has this issue too.

@Calinou
Copy link
Member

Calinou commented Apr 28, 2022

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

@oEjk
Copy link

oEjk commented Apr 30, 2022

arch (artix) godot v3.4.4.stable.arch_linux
is bug

@LimePotato
Copy link

LimePotato commented Sep 5, 2023

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests