defold / defold/defold

Undo history is cleared when a text file is created during game launch

Open
#11,408 1 comment 0 reactions 1 assignee Claimed by @matgis View on GitHub
bug editor
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

Describe the bug (REQUIRED)
The Defold Editor clears the Undo/Redo history if a new text file is created in the project folder while running the game from the editor.

To Reproduce (REQUIRED)
Steps to reproduce the behavior:
1. Use a library such as imgui, which creates an imgui.ini file when the game runs.
2. Launch the game from the editor (Cmd+B / Ctrl+B).
3. Stop the game.
4. Observe that the Undo/Redo history is completely cleared.

Expected behavior (REQUIRED)
The Undo/Redo history should remain intact even if a temporary or configuration file (like imgui.ini) is created during runtime.

Defold version (REQUIRED):
• Version: 1.11.1

Platforms (REQUIRED):
• Platforms: macOS, Windows (probably all)
• OS: macOS
• Device: Desktop

Workaround (OPTIONAL):
Create a .defignore file in the project root and add the following line:

`/imgui.ini`

Additional context (OPTIONAL):
This issue reproduces consistently every time the game is launched from the editor while imgui.ini is not listed in .defignore.

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.