Files
openide/python/python-test-env
Vitaly Legchilkin 940d523390 PY-87191 Preserve tool paths configured by other extensions in RunOnEnvironmentsExtension
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
2026-02-26 12:50:58 +00:00
..
2026-01-31 17:03:42 +00:00
2026-01-31 17:03:42 +00:00
2026-01-31 17:03:42 +00:00
2026-01-31 17:03:42 +00:00
2026-02-05 09:01:00 +00:00