-
Notifications
You must be signed in to change notification settings - Fork 704
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 bench
suggests to add tests: True
instead of benchmarks: True
to cabal.project.local file
#8537
Comments
oof, good catch, thanks |
@Lev135 I'm having trouble reproducing this because it's a solver issue and not a configuration issue. I assume the project you are working on is called |
@cbclemmer very good call, thanks! I guess even without a reproducer, it should still be possible to grep through the source for this message, and see how it's used. It should be more or less clear where it's misused. |
@ulysses4ever It's used in this error handler. Whenever you explicitly set |
@cbclemmer makes sense, thank you for checking. Over to @Lev135 for a reproducer. |
Unfortunatly, I haven't preserved the repository at that stage. Now, I also fail to reproduce a bug. I'm sure I didn't use |
@Lev135 No worries, the error came from some kind of configuration error in your |
I've just ran into this issue. Though I unfortunately can't share the repo then cabal-install version 3.10.3.0. The package has a library, an executable and a test component. Running |
The confusing line was added in 0ce6ba9 by @erikd: cabal/cabal-install/src/Distribution/Client/CmdErrorMessages.hs Lines 405 to 406 in eda072d
I guess the assumption was that Possible ways forward:
Dear all, please, submit a PR fixing the issue as you like! It'd be great to have a regression test for this too but it may be less trivial than the actual fix, so this shouldn't be a requirement, I think. |
Would it be against some broader principle for |
This is a duplicate of #7524 |
Describe the bug
Running
cabal bench
for project withoutbenchmarks: True
provides the following hint:however, only adding
benchmarks: True
, but nottests: True
solves this problemTo Reproduce
Steps to reproduce the behavior:
bechmarks: True
in cabal.project filecabal bench
Expected behavior
Hint should contain correct suggestion (to add
benchmarks: True
)System information
cabal-install version 3.6.2.0
The text was updated successfully, but these errors were encountered: