mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Python: Do not break interpreter widget if certain python is broken.
`versionString` might be `null` if python in severe broken. Such pythons shouldn't be here, and we will fix it as soon as we introduce PythonInterpreterService (cherry picked from commit d4658e07833d6f886991e794f90e5a16f28e50c3) IJ-CR-150093 GitOrigin-RevId: e0fe53bdacbd014afa67115c9c9414a0cba9ba59
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4a71f151f5
commit
149ca9aa4c
@@ -157,7 +157,9 @@ internal fun SimpleColoredComponent.customizeForPythonInterpreter(interpreter: P
|
||||
}
|
||||
is ExistingSelectableInterpreter -> {
|
||||
icon = PythonPsiApiIcons.Python
|
||||
append(interpreter.sdk.versionString!!)
|
||||
// This is a dirty hack, but version string might be null for invalid pythons
|
||||
// We must fix it after PythonInterpreterService will make sdk needless
|
||||
append(interpreter.sdk.versionString ?: "broken interpreter")
|
||||
append(" " + replaceHomePathToTilde(interpreter.homePath), SimpleTextAttributes.GRAYED_SMALL_ATTRIBUTES)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user