-
Notifications
You must be signed in to change notification settings - Fork 701
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
--ghc-option -freverse-errors
is not passed to GHC
#10401
Comments
No matter how I try, I can't reproduce it :-(
|
@ulysses4ever, are you on Linux too? Maybe I don't know what other part of the environment might affect this. |
@toonn I am on Linux, and, more specifically, NixOS. My GHC and cabal-install (in this experiment) also come from nxpkgs. It does work with I'm lost too. Could you perhaps give it another try using my little reproducer (with |
Ah, that's where the confusion is! My reproducer command is the following:
If you pass |
You may be a little off with the terminology here: "the Cabal file" is
I updated the repo (https://github.com/ulysses4ever/cabal-issue-10401) to not use the flag in the project file, so you should be able to repro it as shown above. Please, try it locally yourself and show me the output. |
I don't think I mixed up the terminology, I do mean This works as expected:
But these don't:
So what seems to be happening is cabal-install respects whatever options are passed to the first build but then maintains those? Re-cloning the repo does corroborate this a bit:
This is a lot more confusing than I expected TBH. And technically it's not true that cabal-install doesn't respect the option. However, there's clearly something screwy going on here. |
You can inspect the last commit (ulysses4ever/cabal-issue-10401@610a3f5) to make sure that
Yes, this is a caching issue known as #7816, so I'll close this as a dup if you don't mind. A workaround is to do |
You're right, I saw the common stanza with a ghc-options key and did not look any closer. I'll start following that issue, thanks. |
Ah, that's alright. The stanza is a product of |
Describe the bug
I'm doing some iterative development, things are stubbed out and I'm filling things in a couple definitions at a time. Later definitions often depend on earlier ones so I prefer working through compilation errors in order but without scrolling up through all the output every time.
-freverse-errors
should be good enough for now. But I'm unable to make it work with cabal-install,cabal --ghc-option -freverse-errors run test:Course
has no effect.To Reproduce
Steps to reproduce the behavior:
I ran
cabal init
and stuck with defaults as much as possible to set up a minimally reproducing example (I think these two are the only necessary files, let me know if you need more, I have acabal.project
because I nested this inside another project and otherwise cabal-install picks that up):Expected behavior
I expected similar output to GHC when this option is passed:
However, cabal-install seems to ignore the option altogether:
System information
cabal
,ghc
versions:Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: