-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Git not working with fish + MacOS 12.4 #9052
Comments
Error 86 appears to be an architecture mismatch (bad CPU type in executable), but I'm not sure what the story with zsh vs fish is in this regard. What does |
That's apparently errno 86 on macOS, and it's triggered when the architecture is wrong. I'll leave other macOS errors to the macOS users. See #9052.
Hrm:
(and for good measure)
Without a great understanding of the difference between supported file types on Apple Silicon vs. Intel Macs, a bit of googling indicates that arm64 is the native file format for Apple Silicon. Maybe it's possible that zsh (or perhaps some configuration of zsh on Apple Silicon MacOS) is doing some magic to invoke Rosetta "under the hood" when it recognizes an x86_64 executable that isn't replicated in fish? Edit: Also, thank you so much for the quick response and corresponding CL! Both are greatly appreciated😀 |
That does not seem likely to me, but who knows. Can I ask what terminal you are using, and how your prompt is set up? I am a bit suspicious that running fish with |
I'm just using the standard MacOS terminal Version 2.12.7 (445), here's the output of
I did some more research online, and supposedly I still don't understand how zsh was running this executable without me ever installing Rosetta; perhaps there's a "system" Rosetta install that only "system" applications (which maybe zsh falls under?) have access to, and as a user-installed shell fish could only access the user-installed Rosetta? I don't fully understand, and I'm not sure there's any action the fish team needs to take here - mayyybe if you're already doing OS+architecture detection, you could have an error message along the lines of |
No, this did not affect the behavior I am reporting
I recently obtained a new M1 MacBook Pro
In the process of setting up my dev environment, I set up HomeBrew, downloaded fish and set it as my default shell, and updated my MacOS to Monterey (12.4). After updating, I noticed that for every command I ran, I got a
line after the command output. I suspected the
fish_prompt
function was the issue, and after digging in, it became clear that thefish_git_prompt
was the thing trying to executegit
at every prompt. More concerningly, trying to justgit
from the prompt displayed the same error.I'm hesitant to even file this bug against
fish
, but I only do so because I'm not seeing the same problems with the defaultzsh
install on the Macbook, per the following shell transactions:If you need anything else from me please ask, or if you feel confident this is not a fish issue I won't be offended if you close out.
The text was updated successfully, but these errors were encountered: