Skip to content

Errors due to temporary copies of scripts in .patchwork #32

@wjt

Description

@wjt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions