mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DS-4370: Always upload helpers to WSL and run em there
Any file access (especially ``openat(2)``) is very slow on Win11, see ``WSL/issues/9430`` Merge-request: IJ-MR-101792 Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com> GitOrigin-RevId: 524fa21d08611965bf03ae7f981be2ad12b32e49
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c37a4a94e7
commit
03adfecf20
@@ -51,4 +51,10 @@ interface AbstractWslDistribution {
|
||||
@ApiStatus.Experimental
|
||||
fun getUNCRootPath(): Path
|
||||
|
||||
/**
|
||||
* Unique distrib id
|
||||
*/
|
||||
@get:NlsSafe
|
||||
val msId: String
|
||||
|
||||
}
|
||||
@@ -509,6 +509,7 @@ public class WSLDistribution implements AbstractWslDistribution {
|
||||
return myDescriptor.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull @NlsSafe String getMsId() {
|
||||
return myDescriptor.getMsId();
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.jetbrains.python.run.target
|
||||
|
||||
import com.intellij.execution.target.FullPathOnTarget
|
||||
import com.intellij.execution.target.TargetEnvironmentRequest
|
||||
import com.intellij.execution.target.local.LocalTargetEnvironmentRequest
|
||||
import com.intellij.execution.target.value.TargetEnvironmentFunction
|
||||
@@ -10,5 +11,5 @@ import com.jetbrains.python.PythonHelpersLocator
|
||||
class HelpersAwareLocalTargetEnvironmentRequest : HelpersAwareTargetEnvironmentRequest {
|
||||
override val targetEnvironmentRequest: TargetEnvironmentRequest = LocalTargetEnvironmentRequest()
|
||||
|
||||
override fun preparePyCharmHelpers(): TargetEnvironmentFunction<String> = constant(PythonHelpersLocator.getHelpersRoot().path)
|
||||
override fun preparePyCharmHelpers(): TargetEnvironmentFunction<FullPathOnTarget> = constant(PythonHelpersLocator.getHelpersRoot().path)
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.jetbrains.python.run.target
|
||||
|
||||
import com.intellij.execution.target.FullPathOnTarget
|
||||
import com.intellij.execution.target.TargetEnvironmentRequest
|
||||
import com.intellij.execution.target.value.TargetEnvironmentFunction
|
||||
import com.intellij.util.concurrency.annotations.RequiresBackgroundThread
|
||||
|
||||
/**
|
||||
* The target request for Python interpreter configured in PyCharm on a
|
||||
@@ -15,5 +17,6 @@ interface HelpersAwareTargetEnvironmentRequest {
|
||||
* The value that could be resolved to the path to the root of PyCharm
|
||||
* helpers scripts.
|
||||
*/
|
||||
fun preparePyCharmHelpers(): TargetEnvironmentFunction<String>
|
||||
@RequiresBackgroundThread
|
||||
fun preparePyCharmHelpers(): TargetEnvironmentFunction<FullPathOnTarget>
|
||||
}
|
||||
Reference in New Issue
Block a user