mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] (PY-84251) check for invalid executable
GitOrigin-RevId: 1f530f9b03058bdf9997f68aeeb34c06c3785bea
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d649cdf8e9
commit
e7dc78c95f
@@ -45,7 +45,7 @@ import kotlin.io.path.exists
|
||||
import kotlin.io.path.readText
|
||||
|
||||
|
||||
internal class EnvironmentCreatorUv<P: PathHolder>(
|
||||
internal class EnvironmentCreatorUv<P : PathHolder>(
|
||||
model: PythonMutableTargetAddInterpreterModel<P>,
|
||||
private val module: Module?,
|
||||
errorSink: ErrorSink,
|
||||
@@ -120,14 +120,14 @@ internal class EnvironmentCreatorUv<P: PathHolder>(
|
||||
)
|
||||
}
|
||||
|
||||
if (executable == null) {
|
||||
return@onEach
|
||||
}
|
||||
|
||||
versionComboBox.removeAllItems()
|
||||
versionComboBox.addItem(null)
|
||||
versionComboBox.selectedItem = null
|
||||
|
||||
if (executable?.validationResult?.successOrNull == null) {
|
||||
return@onEach
|
||||
}
|
||||
|
||||
try {
|
||||
loading.set(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user