Avalonia editor crashes when reopening a solution
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: xplat-editor
Platform(s): Linux (but probably also Windows)
Describe the bug
When reopening a solution PluginService.EnsureInitialized is called again re-adding the already added template providers creating duplicates and throwing an exception.
To Reproduce
Steps to reproduce the behavior:
- Open up the Avalonia editor
- Open a solution (it can even be an empty one)
- Open the solution again
- Observe result
Expected behavior
The solution is reloaded with no problems.
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 PluginService.EnsureInitialized and trace the template-provider registration triggered when a solution is opened. Reproduce by opening the same solution twice in the Avalonia editor, then verify that reopening succeeds without duplicate providers or an exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100