-
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
cabal 3.6 does not accept a cabal-version of 3.4, 3.0 #7644
Comments
I just tested this and it works, there appears to be something wrong with your cabal file? Note that the error should specify what the version is, unless there is a parsing error. I.e.
|
Cabal check reports no errors. |
It gives no indication of the version number. There may be a parsing error, but it also shows no line-column, no indication of which versions it expects, or what it (thinks it) found. |
You’ll need to post a repro because, again, I just tested using a fresh
cabal install 3.6 via ghcup on a mac, and it worked just fine.
|
I would say it is a bug which needs to be reproduced and not a question (if we found it is not such a bug we could close it). |
I'd guess it shows line-column (0, 0) and it's correct if the problem is version number, which is always the first in the file. That it doesn't show what it got either indicates you had Anyway, @ivanperez-keera, given that you share in various places that 3.6 is buggy and should not replace 3.4, could we focus on reproducing this problem so that either we can quickly publish a fixed version or you can quickly revert your statement or, in the worst case, we can publicly announce that indeed, 3.6 should be avoided until we fix it? Edited: changed last 'you' to 'we'. Edit2: actually, I've ruled the first case out. With empty field I'm getting:
|
I'm working on giving you a minimal reproducible example (but I have a few things on today, just normal busy). I'll send it ASAP. This error was with cabal-install 3.6 (on a Mac). Files with EDIT: clarification of what works and what doesn't. |
BTW, @ivanperez-keera, it appears you were right 3.6 is not quit ready: #7649 (comment). All the more reason to try to reproduce ASAP to get the fix, if any, to 3.6.2. |
@Mikolaj this issue is on mac, so Windows issue is not related (that would be very very weird). |
Sure, I meant, given that quick 3.6.2 is almost guaranteed, we need to gather all unrelated quickfixes fast. |
I can't repro this on my MBP Big Sur. With
with
And with
Bonus with
|
@ivan-m can you give me an idea of what cabal is being used for this? I notice you didn't give a version, except what you think you're using, but the simplest explanation in this case is perhaps PATH shadowing. Maybe there's a stale old |
Hi @emilypi, Do you mean @ivanperez-keera ? |
Hi @ivan-m! Long time no see. :) Yes, I'm sure that's exactly the typo. |
ack yeah sorry @ivan-m i meant @ivanperez-keera |
@ivanperez-keera: I'm assuming you can't reproduce this either. If so, I'm going to close this. Thank you for the report. |
@ivanperez-keera feel free to reopen if you experience it again, thanks |
Describe the bug
I'm trying to install a package that uses bnfc as a build tool, declared using
build-tool-depends
. I want to depend on the executable spefically, so I use the syntaxBNFC:bnfc
. Consequently, I've bumped thecabal-version:
field to 3.0.With cabal-install 3.4, the above works. With cabal-install 3.6, that gives me an error message like this (see also #7154):
To Reproduce
cabal-version:
of 3.0 or greater. (I've tried 3.4, 3.0, 3.6).Expected behavior
I expected cabal to tell me:
System information
Additional context
Some of the packages have a custom setup. It's been detailed here:
#6726 (comment)
The text was updated successfully, but these errors were encountered: