Skip to content

fix: Correct component instantiation level for thread safety - #274

Merged
MO2k4 merged 2 commits into
masterfrom
fix/plugin-install-finding
Jul 17, 2025
Merged

fix: Correct component instantiation level for thread safety#274
MO2k4 merged 2 commits into
masterfrom
fix/plugin-install-finding

Conversation

@MO2k4

@MO2k4 MO2k4 commented Jul 17, 2025

Copy link
Copy Markdown
Owner

Changed InvalidateOnSettingsChange component instantiation level from DemandAnyThreadSafe to ContainerAsyncPrimaryThread to match the thread safety level of its RiderDaemonImpl dependency.

This resolves the plugin installation error:
"Component CleanCode.InvalidateOnSettingsChange is DeadlockSafe (DemandAnyThreadSafe), but it requires JetBrains.Rider.Backend.Features.Daemon.RiderDaemonImpl which is not DeadlockSafe"

Components with different thread safety requirements were causing deadlock issues during plugin initialization.

MO2k4 added 2 commits July 17, 2025 10:17
Changed InvalidateOnSettingsChange component instantiation level from
DemandAnyThreadSafe to ContainerAsyncPrimaryThread to match the thread
safety level of its RiderDaemonImpl dependency.

This resolves the plugin installation error:
"Component CleanCode.InvalidateOnSettingsChange is DeadlockSafe (DemandAnyThreadSafe),
but it requires JetBrains.Rider.Backend.Features.Daemon.RiderDaemonImpl which is not DeadlockSafe"

Components with different thread safety requirements were causing deadlock
issues during plugin initialization.
@MO2k4
MO2k4 force-pushed the fix/plugin-install-finding branch from 85a71f4 to f65c999 Compare July 17, 2025 08:30
@sonarqubecloud

Copy link
Copy Markdown

@MO2k4
MO2k4 merged commit 6d249cd into master Jul 17, 2025
3 checks passed
@MO2k4
MO2k4 deleted the fix/plugin-install-finding branch July 17, 2025 09:18
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