godotengine / godotengine/godot

Running project after opening .gd file in VSCode crashes Godot.app when located in /Applications/

Open
#88,751 5 comments 2 reactions 0 assignees View on GitHub
bug platform:macos topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in: v4.2.1.stable.official [b09f793f5], 4.2.stable.official, v4.1.3.stable.official.f06b6836a, v3.5.3.stable.official [6c814135b]

### System information

Godot v4.2.1.stable - macOS 14.2.0 - Vulkan (Forward+) - integrated Apple M2 - Apple M2 (8 Threads)

### Issue description

Screenshot 2024-02-23 at 9 28 08 PM

macOS alert: "The application "Godot" can't be opened."
Godot alert: "Could not start subprocess(es)!"
Godot output: "editor/editor_run.cpp:325 - Condition "err" is true. Returning: err"

### Steps to reproduce

1. Ensure Godot.app is located in your Mac's /Applications/ directory.
1. Configure Godot's Text Editor > External > Exec Path (I'm using `/Applications/Visual Studio Code.app/Contents/MacOS/Electron`).
1. Create a new project, add a Sprite2D (`icon.svg` is fine), and attach a script.
1. Run the project and everything should work.
1. Now open the created .gd file listed in FileSystem in your external editor (VSCode).
1. No need to do anything else except run the project again and now the issue occurs.

Observe that if you close Godot, move the .app to your e.g. `$HOME/Applications/` folder and follow the above steps again, the issue disappears.

VSCode version: 1.86.2 [903b1e9d8990623e3d7da1df3d33db3e42d80eda]

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.