-
Notifications
You must be signed in to change notification settings - Fork 843
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
Stop using system-ghc silently…or at all. #2221
Comments
Agreed, I'm tired of asking whether or not the user is using a custom ghc install. This inspired me to consider another source of reproduction difficulty is whether stack was built via stack or cabal - I've opened this ticket on that. |
For context, @mgsloan's comment from #1901:
|
I got bit by system-ghc being the default last week when I tried to switch to profiling libraries. Remembered I might accidentally be using system-ghc which was causing the dependency failures. Lost a half hour or more to that and I know Stack pretty well. Imagine it'd be a hard stop for a new person trying to profile their project. |
Ok, so I'm totally in favor of switching to I don't have a good idea of the breakage that could result from changing the default behaviour, and currently use stack-provided compilers exclusively, so I'd like to do the switch with sufficient time before a release, so it can be beta-tested thoroughly. This means that the switch can only happen once the |
This FAQ entry will need to be edited once the switch is done: https://docs.haskellstack.org/en/stable/faq/#i-already-have-ghc-installed-can-i-still-use-stack |
First attempt at profiling Haskell today. I've been digging around for hours now, and I've finally got something to compile (with --no-system-ghc). Until this is fixed, would somebody mind adding a note to the docs section on profiling? |
@shanemikel: What were the symptoms of using the wrong GHC? Feel free to make a PR (targeting the |
Just to add to this, I just got bitten by |
Address option compatibility issues around the new default setting: * Add notes to ghc-variant and setup --reinstall help texts * Add a check to catch uses of ghc-variant in combination with no-system-ghc
Address option compatibility issues around the new default setting: * Add notes to ghc-variant and setup --reinstall help texts * Add a check to catch uses of ghc-variant in combination with no-system-ghc
Address option compatibility issues around the new default setting: * Add notes to ghc-variant and setup --reinstall help texts * Add a check to catch uses of ghc-variant in combination with no-system-ghc
This happens a fair bit, and not just in connection with
ghc-mod
although it's the most common culprit. While doing the training at LambdaConf we had a beginner get very confused because their system installed GHC was pre-FTP and the Stack provided GHC was 7.10.3. From there, they didn't understandghci
andstack ghci
would be from substantially different versions of GHC.I'd really like Stack to stop implicitly using system-installed versions of GHC without explicit direction from the user.
The text was updated successfully, but these errors were encountered: