-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto calling hook-env breaks zsh integration on new terminal session #3391
Comments
I can't seem to reproduce. Can you enable file trace logging so we can see what it's doing? |
Thanks for the quick feedback. Here you go |
I think there is something else that might be going on specific to node:
other than that it seems to be calling |
I saw that, too. Interestingly Dunno if it helps, but using shims does work properly. |
you didn't answer my question, what's PATH when you start the shell? If other things are there this is something with node, and it appears to be that you're using If you can confirm that is the case, I'll have more steps for you to figure out why |
I am suspicious that #3373 broke anything. All that should do is call Here's some other things to try:
|
Sorry, that's the path immdiately after starting the shell
And that's the output after re-sourcing
|
sorry I read this again:
given that, I really don't think #3373 can possibly have affected this, it didn't make any change to hook-env, only activate |
are you certain that |
I wonder if possibly this is happening because |
frankly with what you've told me and what I see in the logs I'm at a loss |
idk maybe try adding Beyond that, you could do this: |
I think I found a way to reproduce it. I have a
And the
As I understand from the latest readme, that shouldn't be an issue and the When I remove the activation from the Seems that the first run removes the shims from PATH and the second adds the actual paths to PATH. |
ah I see the problem. We run |
Describe the bug
After the last update to
v2024.12.1
mise is no longer working when starting a new terminal session. After runningsource ~/.zshrc
it starts to work properly again. Same applies if I manually runeval $("mise hook-env")
.To Reproduce
Create a .zshrc file with
Open a new shell, try to run any tool (e.g.
node --version
). The version of mise would not be used.Expected behavior
It should work direclty when opening up a new session as it did in previous versions.
mise doctor
outputAdditional context
IMO that's what broke it for me: #3373
I am running Arch Linux.
The text was updated successfully, but these errors were encountered: