godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.54k stars 153 forks source link

Stuck connecting to language server #447

Closed goopii closed 1 year ago

goopii commented 1 year ago

Godot version

3.5.1 stable

VS Code version

1.74.3

Godot Tools VS Code extension version

1.3.1

System information

Windows 10

Issue description

The extension get stuck initializing. It dosen't ever give an error that it couldn't connect either. image

Steps to reproduce

-

atirut-w commented 1 year ago

That's.... not a lot of information to go by.

Does the extension complain about not being able to connect to Godot?

goopii commented 1 year ago

That's.... not a lot of information to go by.

Does the extension complain about not being able to connect to Godot?

Where would I check that?

atirut-w commented 1 year ago

On the bottom right, there will be some text that says "Connecting (number of retries)" and if you click on it or wait long enough, this will pop up: image

goopii commented 1 year ago

I see now that it is stuck initializing, I can't connect to one of your servers: image

goopii commented 1 year ago

I edited the thread to be about the connection issue now that I figured out that was the problem.

atirut-w commented 1 year ago

Do you have Godot open when trying to use the extension? It doesn't connect to other people's LSP server, it connect to yours(127.0.0.1 is localhost a.k.a. the computer it's on).

goopii commented 1 year ago

Do you have Godot open when trying to use the extension? It doesn't connect to other people's LSP server, it connect to yours(127.0.0.1 is localhost a.k.a. the computer it's on).

Yes I have godot open, I tired changing the port in godot and the extension but to no avail.

edziegle commented 1 year ago

I am hitting this too. The extension gives no feedback on whats happening, just says Initializing. I open Godot first, set VS code as my editor and open a .gd file from inside the FileSystem pane in Godot. I checked lsof -i tcp:6008 and can see the server is there.

Godot: v3.5.1 stable macOS Godot-tools: v1.3.1 VSCode: 1.74.3

This also happens on VSCodium 1.68.1, which is where I initially hit it. I switched to VSCode to verify.

goopii commented 1 year ago

I am hitting this too. The extension gives no feedback on whats happening, just says Initializing. I open Godot first, set VS code as my editor and open a .gd file from inside the FileSystem pane in Godot. I checked lsof -i tcp:6008 and can see the server is there.

Godot: v3.5.1 stable macOS Godot-tools: v1.3.1 VSCode: 1.74.3

This also happens on VSCodium 1.68.1, which is where I initially hit it. I switched to VSCode to verify.

I found this thread containing this comment which linked to this version which works for me.