MakovWait / godots

🚀Ultimate go-to hub for managing your Godot versions and projects! 🚀
MIT License
322 stars 25 forks source link

Can't open project in external code editor on Linux #60

Closed Wichamir closed 5 months ago

Wichamir commented 8 months ago

I use the following settings to open VSCode:

image

This works fine with vanilla Godot, but not with the one run by Godots.

image

wokeraccoon commented 7 months ago

Are you using the Flatpak version of Godots? I've noticed that I was having similar issues when trying to use VSCode with Godot Editors that were installed using Godots, and noticed that the Editor was having similar behavior as if I was using the Flatpak version of Godot, so I used the instructions here to make VSCode work with Godot

tl;dr: try using these exec path and exec flags if you're using the Flatpak version:

Exec Path: flatpak-spawn Exec Flags: --host code --reuse-window {project} --goto {file}:{line}:{col}

MakovWait commented 6 months ago

Have you resolved the issue using the @wokeraccoon solution?

Wichamir commented 5 months ago

Yes, it was in fact a problem with the Flatpak version. Using flatpak-spawn fixes the issue.