Open Lev135 opened 2 years ago
oof, good catch, thanks pr fixing it totally welcomed, it should not be too difficult but wuld be good to include a regression test for it
@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 space-consumers
based on the output and it looks like it is having trouble finding a benchmark. Can you share your .cabal
file so that I can replicate it for the regression test?
@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 benchmarks: False
in the config file or --disable-benchmarks
as a command line arg it uses this case and that's why I can't reproduce it. I think the solver has to run into some kind of problem before it gives that message. I'm just not sure what problem it is exactly.
@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 --disable-benchmarks
or benchmarks: False
in the config, but cabal failed to build my benchmark with that strange error. I tried to clean up project, but this didn't lead to any result. That's all I can say about it
@Lev135 No worries, the error came from some kind of configuration error in your .cabal
file. Let us know if it happens again.
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