-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
shellcheck not found on M1 Mac #244
Comments
Did try to add |
Yep, setting For reference, here's the issue for an M1 build of shellcheck: koalaman/shellcheck#2109. As I noted in a comment just now, it's installable natively with Homebrew (as of a couple days ago), so hopefully the shellcheck folks will release an official build. |
Did you try |
Ah, yes, that works too. Thanks! |
But your issue is still valid, the extension should properly find it automatically when the bundled one is not available. I'm going to check. |
When bundled binaries are not available. Fixes: #244
🎉 This issue has been resolved in version 0.14.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@bhrutledge when possible please test this new version to confirm it fixes your issue. |
Yep! Thank you! |
still met this issue of shellcheck 0.9, how to set "shellcheck.executablePath": "shellcheck", where should i put |
@lu-yanda what's this hook, man? Seems like the extension is trying to use this hook (check your vscode settings), and the hook can't find shellcheck installed. |
this is still an issue on Sonoma on apple silicon |
I'm getting this error when I open a shell script:
I have
shellcheck
installed via Homebrew:Poking around a bit, I found what looks like the relevant source:
https://github.com/timonwong/vscode-shellcheck/blob/3a803d31912b863985405da042339db98fda0c56/src/linter.ts#L136
https://github.com/timonwong/vscode-shellcheck/blob/3a803d31912b863985405da042339db98fda0c56/src/linter.ts#L199
From that, I can see that there isn't a binary for the M1 architecture:
Still, I would have expected the default of
shellcheck
to work. I thought it might be related to my runtimePATH
not being set properly, but looking atprocess.env.PATH
from the VS Code Developer Tools shows that it includes/opt/homebrew/bin
.Of course, this is a minor annoyance, because I can set it manually, but it'd be nice if it just worked. 😄
The text was updated successfully, but these errors were encountered: