-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Haskell - ghcup not installing correctly #1692
Comments
Hm, ok, having tried the command after a while, I am now getting a different, much more descriptive error:
One quick and dirty fix I tried was to simply add a Result:
So now it looks to me that |
Hey @PiotrJustyna, I had a similar issue on my M1 mac, with "Both installation and setting the tool failed. Install error was: Process "gmake"". Below is some more log output:
The fix that worked for me was basically #1654, where we run the official ghcup installation. I think the error might have been pulling the
|
Thanks @joshuanianji, tried that with good results and would be happy to use that instead of the community script where all components are installed individually (ghc, cabal, hls, stack). Glad the issue is open. In the meantime, I think it would be worth discussing whether the current shape of the Haskell devcontainer makes sense these days... We have the ability to install/skip zsh but not to choose the ghcup version. What I ended up doing is I wrote my own devcontainer based on alpine where I only install:
Don't really need hls. That is good enough for me for the time being, but the state of Haskell in devcontainers community does need a bit of tlc... |
Hey @PiotrJustyna, glad it's working for you. I agree that the image would benefit from some more attention, although I think installing the latest ghcup version makes sense for most people since it's only an intermediary for installing other tools. Nonetheless, I'm not involved in this community too much, so I'll stick with that's working for me lol. |
@joshuanianji I think we have the new image :) It should work for more people now. See my PR. |
Hey @PiotrJustyna, great to see your PR! Hope to have it merged soon |
I am curious as to why @PiotrJustyna's Pull Request has not been merged yet. The official version does not function properly on my M2 Mac, while his version does. I believe all arm64 Mac users would greatly benefit from it. |
You maybe interested in devcontainers/features#470 I believe this repository is currently in maintenance mode and not actively maintained. vscode-dev-containers/README.md Lines 1 to 11 in c4c2225
|
Tried a |
Having problems using the Haskell community devcontainer. During the initial image build I'm getting the following error:
This command seems to be failing:
Where
"${GHC_VERSION}"
is"recommended"
. I tried experimenting with:but getting errors in all scenarios.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: