inkandswitch / inkandswitch/backstitch
Errors due to temporary copies of scripts in .patchwork
Open
- Dominant language
- Rust
- Stars
- 250
- Forks
- 8
- Avg merge
- 46m
- Merged PRs (30d)
- 1
Description
I often see errors like the following, where (IIUC) a temporary copy of a script I am editing is created in the `.patchwork` directory, and then Godot notices it, and complains about the duplicate `class_name`:
```
ERROR: res://.patchwork/temp_8b3a57e/scripts/coin.gd:2 - Parse Error: Class "Coin" hides a global script class.
ERROR: modules/gdscript/gdscript.cpp:3022 - Failed to load script "res://.patchwork/temp_8b3a57e/scripts/coin.gd" with error "Parse error".
```
I wonder if it would be enough to drop a `.gdignore` file into `.patchwork` to tell Godot to ignore that whole directory?
Contributor guide
Assessment
This issue has not been assessed yet.