godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.52k stars 149 forks source link

Godot executable version check excludes custom builds #516

Closed turbohz closed 10 months ago

turbohz commented 10 months ago

Godot version

3.6.beta.custom_build.773df2d58

VS Code version

1.83.1

Godot Tools VS Code extension version

1.3.1 (built from source)

System information

Linux

Issue description

When selecting the Godot executable, to launch it as language server, I get the error:

Cannot launch headless LSP: editorPath.godot3 of [editor path] is not a valid Godot executable

I use a custom build, which returns a version number such as:

godot --version
3.6.beta.custom_build.773df2d58

Steps to reproduce

Self explanatory.

turbohz commented 10 months ago

Weird, the regex pattern seems to work fine with that version string... it's actually catching some kind of error. Error: Command failed: /home/turbohz/bin/godot-headless --version

Perhaps is user error.

Closing for now.

Edit: The problem is my headless build, for some reason, returns an error exit code (255) when doing --version.