diff --git a/rider-fsharp/build.gradle.kts b/rider-fsharp/build.gradle.kts index e0cccfe7a8..4a8866184a 100644 --- a/rider-fsharp/build.gradle.kts +++ b/rider-fsharp/build.gradle.kts @@ -290,7 +290,8 @@ tasks { ) } - getByName("buildSearchableOptions") { + buildSearchableOptions { + jvmArgs("-Djava.security.manager=com.intellij.platform.core.nio.fs.CoreBootstrapSecurityManager") enabled = buildConfiguration == "Release" } } diff --git a/rider-fsharp/src/main/java/com/jetbrains/rider/plugins/fsharp/services/fsi/FsiHost.kt b/rider-fsharp/src/main/java/com/jetbrains/rider/plugins/fsharp/services/fsi/FsiHost.kt index 75b8aaa5ef..a6f3efa749 100644 --- a/rider-fsharp/src/main/java/com/jetbrains/rider/plugins/fsharp/services/fsi/FsiHost.kt +++ b/rider-fsharp/src/main/java/com/jetbrains/rider/plugins/fsharp/services/fsi/FsiHost.kt @@ -106,7 +106,7 @@ suspend fun getFsiRunOptions( runtimeArguments = "" ) - val dotNetExecutable = parameters.toDotNetExecutable() + val dotNetExecutable = parameters.toDotNetExecutableSuspending() val dotNetRuntime = DotNetRuntime.detectRuntimeForExeOrThrow( project, runtimeHost,