mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
When RunOnEnvironmentsExtension.createPythonEnvironment() initializes a new Python environment (e.g. CONDA), it runs checkAndGetToolPath() for poetry and pipenv. On CI, conda's bin directory contains a poetry binary (inherited from the base Miniconda installation), so the check succeeds and returns the conda env's poetry path — even though poetry isn't actually functional there. This overwrites the valid poetryPath previously set by @RequiresPoetry's extension during beforeAll(). The subsequent createNewPoetrySdk() call then fails because it uses the broken conda poetry path instead of the one from the dedicated poetry environment. Fix: skip tool path detection entirely when the path is already configured by another extension (non-null in PropertiesComponent). This way @RequiresPoetry's beforeAll() sets the path first, and createPythonEnvironment(CONDA) leaves it alone. (cherry picked from commit 428706ca937077badf29a0e6278eb2e30f8eae34) IJ-MR-193218 GitOrigin-RevId: 973e8f0f35d975fc988bada61a4dac7fb854dfa6