godot-vscode-plugin icon indicating copy to clipboard operation
godot-vscode-plugin copied to clipboard

LSP server won't start for current official Godot Server builds

Open turbohz opened this issue 2 years ago • 4 comments

Godot version

3.6.beta3.official.21ab700f2

VS Code version

1.83.1

Godot Tools VS Code extension version

1.3.1 (master)

System information

Linux

Issue description

This issue is related to: https://github.com/godotengine/godot-vscode-plugin/issues/516

I found an issue with current Godot Server builds, which causes --version (also --help) command to return an error status code (255). This is caught by the plugin check for a valid Godot executable, which then refuses to start the LSP.

This is clearly an issue with Godot, and I will report it as such (if it's not a known issue).

Steps to reproduce

Download a current Godot Server build (platform is listed as "Linux Server").

Run it to obtain the version: Godot_v3.6-beta3_linux_headless.64 --version

You'll see the version printed. However, the status code will be error (255)

turbohz avatar Oct 20 '23 06:10 turbohz

Here's where the issue was introduced:

https://github.com/godotengine/godot/pull/62618

turbohz avatar Oct 20 '23 06:10 turbohz

Thanks for tracking down the cause of this. I'll see if I can rearrange the version check to get around this false-negative.

DaelonSuzuka avatar Oct 20 '23 13:10 DaelonSuzuka

Thanks for tracking down the cause of this. I'll see if I can rearrange the version check to get around this false-negative.

I don't know if it's worth fixing. I don't expect many people to try to use the godot server build to run the LSP server, instead of the editor.

In any case, I submitted a fix and it's been approved (https://github.com/godotengine/godot/pull/83664).

turbohz avatar Oct 20 '23 16:10 turbohz

https://github.com/godotengine/godot/pull/83664 has been merged, so it seems this issue will be fixed in the next Godot 3.x release.

turbohz avatar Nov 14 '23 17:11 turbohz