inkandswitch / inkandswitch/backstitch

Resource diffs can only load the current copies of existing files

Open
#68 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.