From 5357b984f98348be2f23c5a931545c99fc061d5d Mon Sep 17 00:00:00 2001 From: Martin Oehlert Date: Thu, 17 Jul 2025 10:14:07 +0200 Subject: [PATCH 1/2] fix: Correct component instantiation level for thread safety 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. --- src/dotnet/MO.CleanCode/InvalidateOnSettingsChange.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/MO.CleanCode/InvalidateOnSettingsChange.cs b/src/dotnet/MO.CleanCode/InvalidateOnSettingsChange.cs index 191a9de..d7613a2 100644 --- a/src/dotnet/MO.CleanCode/InvalidateOnSettingsChange.cs +++ b/src/dotnet/MO.CleanCode/InvalidateOnSettingsChange.cs @@ -6,7 +6,7 @@ namespace CleanCode { - [SolutionComponent(JetBrains.Application.Parts.Instantiation.DemandAnyThreadSafe)] + [SolutionComponent(JetBrains.Application.Parts.Instantiation.ContainerAsyncPrimaryThread)] public class InvalidateOnSettingsChange { public InvalidateOnSettingsChange( From f65c999c2ab242302e077e4b68edf23e61e8c626 Mon Sep 17 00:00:00 2001 From: Martin Oehlert Date: Thu, 17 Jul 2025 10:18:13 +0200 Subject: [PATCH 2/2] adjust version number --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index aff06bf..c67a7df 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ PublishToken="_PLACEHOLDER_" # EAP: 2020.3-EAP2-SNAPSHOT # Nightly: 2020.3-SNAPSHOT ProductVersion=2025.1 -PluginVersion=2025.1.2 +PluginVersion=2025.1.3 # Kotlin 1.4 will bundle the stdlib dependency by default, causing problems with the version bundled with the IDE # https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/#stdlib-default