-
Notifications
You must be signed in to change notification settings - Fork 680
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
config section in ~/.cabal/config for the init workflow crashes when specifying newer cabal versions #7300
Comments
cabal-version 3.2 doesn't exist. the error could be nicer though ( Did cabal generate that section? That would be a bug |
Nope. I wanted to specify a version in the 3.x series and made one up.
What version values does this config suport?
…On Wed, Feb 24, 2021 at 11:29 AM Francesco Gazzetta < ***@***.***> wrote:
cabal-version 3.2 doesn't exist
<https://cabal.readthedocs.io/en/3.4/file-format-changelog.html>. the
error could be nicer though (Cannot parse Cabal specification version:
3.2, this version doesn't exist, check this url...).
Did cabal generate that section? That would be a bug
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQVRMENY7AHE3AVAOOTTAUSNFANCNFSM4YEYB7ZQ>
.
|
Just to reiterate my suggestion here:
It is a rough edge as is. If it's tripping up power users like Carter, it's tripping up everyone else too. |
Even simply an enumeration of allowed spec versions and url for further
reading would be helpful
…On Wed, Feb 24, 2021 at 12:26 PM Emily Pillmore ***@***.***> wrote:
Just to reiterate my suggestion here:
cabal-version describes a version *spec*, which makes the flag slightly
misleading. I would propose two possible solutions:
1. we look at calling this cabal-spec in the future, so as not to
avoid confusion. This is a bit of a deep change, I"m not sure if i want to
go down this route.
2. we change the parser to locate a least upper spec bound for valid
cabal versions. No code really has to change besides the additional parsing
cases.
It is a rough edge as is. If it's tripping up power users like Carter,
it's tripping up everyone else too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQU2NCT2AXED6LOJADDTAUZFPANCNFSM4YEYB7ZQ>
.
|
Yeah, I think this is one of those cases where just a better error message goes a long way. @emilypi's second option is clever though |
In the latter case, a warning and the change suggestion/ reading ref would
still be nice.
…On Wed, Feb 24, 2021 at 3:06 PM Francesco Gazzetta ***@***.***> wrote:
Yeah, I think this is one of those cases where just a better error message
goes a long way. @emilypi <https://github.com/emilypi>'s second option is
clever though
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQRGX4YYTSGCH53GPXTTAVL55ANCNFSM4YEYB7ZQ>
.
|
Yeah, a warning blurb e.g. like
Or something. I'm not a writer :) |
config section in ~/.cabal/config for the init workflow crashes when specifying newer cabal versions
this is fine
this is not
yields this error
The text was updated successfully, but these errors were encountered: