Skip to content

Theme re-written when saving in freshly-opened project with no open files #1829

@wjt

Description

@wjt

Steps to reproduce:

  1. Open project
  2. Close all open scenes & script files
  3. Reload project
  4. Close default scene
  5. Monitor the filesystem for changes (e.g. watchman-wait -m 0 *)
  6. Press Ctrl+S to save

Expected results:

  • No files outside .godot are rewritten.

Actual result:

scenes/ui_elements/components/theme.tres-FRikAt
scenes/ui_elements/components/theme.tres
scenes/ui_elements/components

(The file with a 6-char random suffix is a temporary file used for the "save to temporary file then replace original file with rename()" pattern to atomically write to a file.)

The theme does not actually have any changes: git diff is (for me) clean after doing this.

XP Summary (total 825)

Subdomain Skill XP
Engineering: Optimization & Performance Problem Solving 150
Engineering: Optimization & Performance Creativity & Design Thinking 150
Engineering: Optimization & Performance Technical Literacy 150
Engineering: Gameplay & Systems Programming Problem Solving 150
Engineering: Gameplay & Systems Programming Creativity & Design Thinking 75
Engineering: Gameplay & Systems Programming Technical Literacy 150

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions