mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-24 08:09:22 +07:00
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