Files
openide/python/openapi
Ilya Kazakevich bb1ccaf504 PY-86605: Do not access IO from interpreterType.
This property violates kotlin ideology: properties must be fast, `O(1)`, and thread agnostic.

This one is used all over the system including plugins (unfortunately) and we can't force callers to use BG. So we have to make it thread-agnostic. We sacrifice accuracy in favor of speed. Most people use `.pyenv` as a dir name, and those who do not, will be excluded from the statistics. Note, that this function was never intended to be used for anything but statistics.

`LOG.error` throws exception in tests (but not in prod) so we use it to make sure we do not access IO from this function.


Merge-request: IJ-MR-191539
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: a92a233bcce22d47e522034c04ba2c93d2efb33b
2026-02-13 15:15:05 +00:00
..