[bug] mise breaks the environment when internet connection is offline #4598
Unanswered
dkarter
asked this question in
Troubleshooting and bug reports
Replies: 1 comment
-
Related issues/discussions: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I was recently on a plane and tried to work on a project in my terminal, before flying I had the project open for a couple of days, but haven't touched the terminal since.
When I opened the terminal on the plane which had no internet (transatlantic flight) - mise caused the shell to hang, threw a bunch of warnings and made all the shims stop working.
I've since seen this happen in other instances when my mac is offline or is on a really bad network, if I haven't touched it for a few days.
Unfortunately, when this happens there is no recourse or workaround, because mise will keep trying to fetch the versions and fail when the shell starts, and if you have no internet connection you will not be able to use your shell tools.
My suspicion is that the cache mise uses expires, and it tries to check for new versions when the shell loads - but when the check times out, instead of failing gracefully, it blocks the shell until all tools are checked, and eventually errors out and skips loading the shims.
Replication:
mise cache clear
(or wait a few days for expiration without touching your terminal at all)Expected:
Terminal opens immediately, with no delay, and all installed tools work - mise can try checking for new versions asynchronously and fail, then backoff until the next opportunity.
Actual:
Terminal hangs and prints a ton of warnings, none of the tools installed with mise work
Simulation of a really bad internet connection with Network Link Conditioner (by Apple)
CleanShot.2025-03-10.at.00.16.57.mp4
Offline repro:
CleanShot.2025-03-10.at.00.30.49.mp4
Errors / Warnings
Errors / Warnings
Beta Was this translation helpful? Give feedback.
All reactions