mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-23 07:39:39 +07:00
[python]: PY-85709: Support Python facet for non-PyCharm IDEs. The following code doesn't work for anything but PyCharm. ```kotlin ModuleRootManager.getInstance(module).sdk ``` We now call `com.jetbrains.python.module.PyModuleService.findPythonSdk` which supports both Python SDK and Facet. [python]: PY-85711 : Do not touch non-python modules in `removeFakeModuleEntity` and do not set `inherited` for newly created modules. 1. We should never delete any module which isn't python. 2. No need to look for sdk in workspace as we already do that for all modules by reverting their SDK settings. Moreover, `InheritedSdkDependency` was wrong: it set project-level Java JDK as Python SDK [python]: PY-85711 : Make `PyActiveSdkModuleConfigurable` filter non-python modules. See `com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable.isSuitableForModule` comment [python]: PY-85711 : Move `isPythonModule` to `PyModuleService`. We are going to reuse it all over the code [python]: PY-85711 : Refactor `PyModuleService`. Drop unneeded class Merge-request: IJ-MR-183088 Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com> GitOrigin-RevId: 19f65ba65ea7ea8d8ff8698a64e6a3cbe6803cb0