godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.18k stars 20.22k forks source link

External editor not opening file from Stack Frames #95198

Open p10tr3k opened 1 month ago

p10tr3k commented 1 month ago

Tested versions

System information

MacOS 14.5 (23F79)

Issue description

When using an external editor (VSCode) in Godot, clicking on a file name in the Stack Frames window does not open the file in the external editor. Nothing happens. However, when using the default built-in editor, clicking on a file name in the Stack Frames window correctly opens the file and navigates to the specific line of code.

Expected Behavior:

Clicking on the file name should open VSCode and navigate to the specific line of code with the error.

Actual Behavior:

Nothing happens when clicking on the file name.

Steps to reproduce

Set VSCode as the external editor in Godot. Create a script with an intentional error. Run the project to trigger the error. In the Stack Frames window, click on the file name where the error is located.

Minimal reproduction project (MRP)

BugGodotExternalEditor.zip

EnderMaster77 commented 1 month ago

Instead of opening the file in the external editor, it seems to be opening it in godot's built in editor. This behavior also happens when opening something like a text file with an external editor configured, which is probably related.

This was tested on Godot 4.3 stable with Linux using Wayland and Windows on a virtual machine.