inkandswitch / inkandswitch/backstitch

Errors due to temporary copies of scripts in .patchwork

Open
#32 3 comments 0 reactions 0 assignees View on GitHub
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

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.