[python] (PY-84251) check for invalid executable

GitOrigin-RevId: 1f530f9b03058bdf9997f68aeeb34c06c3785bea
This commit is contained in:
Vitaly Legchilkin
2025-10-14 23:12:31 +00:00
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)