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

Not working with Flatpak VS-Code #743

Open
CardiJey opened this issue Oct 26, 2024 · 0 comments
Open

Not working with Flatpak VS-Code #743

CardiJey opened this issue Oct 26, 2024 · 0 comments
Labels

Comments

@CardiJey
Copy link

Godot version

v3.2.3.stable

VS Code version

1.94.2 Flatpak

Godot Tools VS Code extension version

v2.3.0

System information

Debian Stable

Issue description

The Plugin always reports

Cannot launch debug session: '/home/.../my_game/godot3' is not a valid Godot executable

now, this is to be expected, as godot3 is not on the path of the sandboxed vs code, so i tried fixing this by setting the executable path to:

/usr/bin/flatpak-spawn --host godot3

but it still reports:

Cannot launch debug session: '/usr/bin/flatpak-spawn --host godot3' is not a valid Godot executable

but i assumed the way the executable is set with the --host flag and such might interfer with the way the plugin checks for the correct version, so i wrote a wrapper script

#!/bin/bash
/usr/bin/flatpak-spawn --host godot3 "$@"

and set this wrapper script as the executable, which still didn't work. I got it to work though by adding an echo "" to my wrapper script.

Now everything works fine. Debugging with breakpoints etc.
By naming the script "godot3" and putting it in the project root it even works with the default settings out of the box.

Of course, I don't think that should be the recommended way of getting the godot plugin to work with flatpak vs code, thus I#m still reporting this as a bug.

Steps to reproduce

Should happen always if you have flatpak vs code, this plugin and try Run and Debug

@CardiJey CardiJey added the bug label Oct 26, 2024
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

1 participant