-
Notifications
You must be signed in to change notification settings - Fork 90
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
ghcup run
is broken on Windows
#1106
Comments
Yeah, I think we did change something in the PATH handling recently on windows. |
I can confirm. CCing @fendor since this may likely break VSCode haskell extension for windows users. |
Notice that this works: ghcup run -m --ghc 8.10.7 -- sh -c 'ghc --version' |
|
Thanks for the ping! Do you think we should add the provided fix to vscode-haskell or will there be a point release soonish? |
From what I see we don't use |
Also found the historical bug: https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/375 lolz |
Apparently this was wrong and the comment from the historical issue still applies: https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/375#note_435793 I am not sure why I never fixed it. |
Regarding the Copy pasted (see the comment): commandToProcess
:: CmdSpec
-> IO (FilePath, String)
commandToProcess (ShellCommand string) = do
cmd <- findCommandInterpreter
return (cmd, translateInternal cmd ++ " /c " ++ string)
-- We don't want to put the cmd into a single
-- argument, because cmd.exe will not try to split it up. Instead,
-- we just tack the command on the end of the cmd.exe command line,
-- which partly works. There seem to be some quoting issues, but
-- I don't have the energy to find+fix them right now (ToDo). --SDM
-- (later) Now I don't know what the above comment means. sigh.
commandToProcess (RawCommand cmd args)
| map toLower (takeExtension cmd) `elem` [".bat", ".cmd"]
= return (cmd, translateInternal cmd ++ concatMap ((' ':) . translateCmdExeArg) args)
| otherwise
= return (cmd, translateInternal cmd ++ concatMap ((' ':) . translateInternal) args) |
merged: #1108 |
The system is Windows 11, MSYS2, MINGW64_NT-10.0-22631, in CLANG64 environment, GHCup version 0.1.30.0
The text was updated successfully, but these errors were encountered: