Skip to content
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

Improve messages when test suites were not solvable #4421

Open
ezyang opened this issue Mar 23, 2017 · 2 comments
Open

Improve messages when test suites were not solvable #4421

ezyang opened this issue Mar 23, 2017 · 2 comments

Comments

@ezyang
Copy link
Contributor

ezyang commented Mar 23, 2017

I recently wrote a test suite, but typoed one of its dependencies, rendering it unbuildable. Despite there being a completely bogus test suite, the dependency solver happily passed the package, simply opting to disable test suites to make things work.

When I asked new-build to subsequently build the test, I got this message.

ezyang@sabre:~/Dev/backpack-str$ cabal new-build str-undefined:tests
cabal: Cannot build the test suites in the package str-undefined-0.1.0.0
because none of the components are available to build: the test suite
'implements' is not available because the solver did not find a plan that
included the test suites

This message is OK, but a better message would say how to find out what the solver error for test suites was. I think the correct way to do this is to rerun the command with --enable-tests.

@grayjay
Copy link
Collaborator

grayjay commented Mar 25, 2017

The discussion in #3923 is related.

@refaelsh
Copy link

refaelsh commented Dec 7, 2022

@ezyang Exact same thing happened to me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants