Skip to content

fix: PkmFileEntity key conflict errors - #148

Merged
Chnapy merged 1 commit into
mainfrom
fix/pkm-file-entity-conflict-error
May 1, 2026
Merged

fix: PkmFileEntity key conflict errors#148
Chnapy merged 1 commit into
mainfrom
fix/pkm-file-entity-conflict-error

Conversation

@Chnapy

@Chnapy Chnapy commented May 1, 2026

Copy link
Copy Markdown
Owner

Fix error throwing from this reproduce steps:

Given these actions:

  • Move: (pkm) main -> save
  • Move attached: (same pkm) save -> main
  • Evolve: (same pkm) save
  • Remove action: Evolve

Triggers this kind of error:

System.InvalidOperationException:
The instance of entity type 'PkmFileEntity' cannot be tracked because another instance with the key value '{Filepath: ./tmp/storage/foobar.xk3}' is already being tracked.
When attaching existing entities, ensure that only one entity instance with a given key value is attached.

@Chnapy
Chnapy merged commit ddec625 into main May 1, 2026
1 check passed
@Chnapy
Chnapy deleted the fix/pkm-file-entity-conflict-error branch May 1, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant