-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
PWSH explecit error #764
Comments
Faced same issue, why is that such a hard requirement for this specific package, can we not use the older version. I also faced the same issue on shellcheck and lemminx. |
The same issue for me |
Facing the same issue here. Can't this just support the legacy version so us boomers don't have to install a brand new Powershell? It's an extra thing to keep in mind. This has to be documented either way, because as mentioned above, the default powershell version is still not |
Not only that, but this kind of completely borks support for win10 and even win11 by default which imo is bad idea. What was wrong with maybe checking which shell is available and use that instead, the more fallback options the better. |
Hey! Ah that's interesting, I was under the impression that the old iteration of powershell had been phased out completely by now, seeing as the initial announcement was in 2017 IIRC. There's no particular reason to use |
I believe #769 fixes this by reverting the change. If it does not let's reopen. |
@williamboman , it is possible to do like this:
|
I've wanted to avoid doing this, but it seems like it's the only option. I was hoping Windows environments would be more predictable haha. Mason doesn't really call into Powershell that much, and all cmdlet invocations should be fully cross-compatible between Powershell versions (for now..). edit: Done in #782 |
Just for documentation purposes: powershell "$@" Wanted to create an issue for this, but found it was just fixed 😄 Thank you |
I've searched open issues for similar requests
Yes
Is your feature request related to a problem? Please describe.
#706
Is it possible to add a hint during an error related to
pwsh
?Windows 11 has powershell (legacy version) installed by default, but
Mason
requires a newer version ofpwsh
. I could not immediately understand where exactly the error was, and after installing the powershell 7.3 version, everything workedCode: https://github.com/williamboman/mason.nvim/pull/706/files#diff-1243700016801fd3c68dbc2d65f32bd9e12ae30b09e45031248e6e49065cf168R224-R233
Describe the solution you'd like
Describe potential alternatives you've considered
Additional context
No response
The text was updated successfully, but these errors were encountered: