AddReferenceViewModel duplicate key exception when viewing entity
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Github
Version: 6183210a2ba67f82fe3c3321fcf8ba89009e31d1 (latest as of now)
Platform(s): Windows, editor.
Describe the bug
Viewing entities is impossible because of a ArgumentException thrown in PropertyContainer.SetObject.
To Reproduce
Unknown. At the moment this was done with a plain Spot light entity.
Expected behavior
Being able to see entity properties.
Screenshots
Log and callstacks
None at the moment, will add later.
Workarounds
A possible fix is here: https://github.com/Ionized-Interactive/stride/tree/property-fix but I will not create a PR since I don't know what is causing the duplicate key.
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 at the ArgumentException in PropertyContainer.SetObject and trace how AddReferenceViewModel creates properties while viewing a plain Spot light entity. Compare the behavior with the proposed property-fix branch mentioned in the issue. Done means the editor can display entity properties without the duplicate-key exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100