inkandswitch / inkandswitch/backstitch
Resource diffs can only load the current copies of existing files
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 253
- Forks
- 8
- Avg merge
- 46m
- Merged PRs (30d)
- 1
Description
While using the editor, resource diffs for an edited .png work just fine. I can add, edit, and delete files, and they all work as expected.
However, once the editor is restarted, the diffs mostly stop working. Occasionally, a current file will be shown, but rarely.
Printed to the log is:
linked file "res://assets/something.png" not found
I've ensured that the arguments sent to get_files_on_branch_at from the diff system are always correct, so the issue is likely with that function and/or with the underlying data storage.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the diff system's calls to get_files_on_branch_at and the underlying persisted data storage, using the "linked file ... not found" log as the symptom to reproduce after restarting the editor. Verify the behavior for edited, added, and deleted PNG resources before and after restart; done means resource diffs continue loading the correct files without the missing-linked-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- godot, rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100