Kyle Gottfried

Results 99 comments of Kyle Gottfried
trafficstars

Yeah, running into issues here... ```xonsh 🐚 C:\TMP\xonsh-cacheWinPathPerma\src\xonsh cacheWinPathPerma xonsh-cacheWinPathPerma 24-12-14 10:29:55-05 @ git log -n 1 commit 2225ea3c154676d440c06cbaa7c66a1d9c6d1ef3 (HEAD -> cacheWinPathPerma, origin/cacheWinPathPerma) Author: Evgeny Date: Fri Dec 13 23:56:43...

```diff diff --git a/xonsh/procs/executables.py b/xonsh/procs/executables.py index ffbe41d4..cc7c4696 100644 --- a/xonsh/procs/executables.py +++ b/xonsh/procs/executables.py @@ -324,14 +324,16 @@ class PathCache: # Singleton lbl += "S" if pn in self.usr_dir_list_session else " "...

I wonder if non-existent dirs is impacting this? ```xonsh +1@ _ = [print(f"{pathlib.Path(i).resolve()}, {pathlib.Path(i).is_dir()}") for i in $PATH if pathlib.Path(i).is_dir() is False] C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn, False C:\Program Files...

> I see there is indeed some bug with the environment being set too early before your `$XONSH_DIR_PERMA_CACHE` is read Thanks a lot @eugenesvk; I'll wait on this before trying...

Performance still having a lot of issues, this is running a profile over typing the entire alphabet 3 times. ``` @ pstats.Stats('stats.profile').sort_stats(SortKey.CUMULATIVE).print_stats('executables.py:') Sun Dec 15 16:07:13 2024 stats.profile 12895477 function...

As a reference with what I'm working with here the following script completes in 42 seconds on my workstation, a recently modern Windows laptop with an on-access virus scanner. On...

That did the trick. On first launch it hung for ~15 seconds as it built the cache (presumably) then responded well. Then I re-launched and the hang did not reproduce....

I'll be using this in lieu of https://github.com/xonsh/xonsh/pull/5677 for awhile. What is the recommended way to refresh the PERM cache, manually delete the pickle file?

I'll see about leveraging other env vars but at the moment `$XONSH_DIR_PERMA_CACHE = list($PATH)` is the only thing I'm going to have set, then just delete the pickle file once...