Split dual purpose Cabal-7136 error #9533
Labels
attention: pr-welcome
re: error-message
Concerning error messages delivered to the user
re: user experience
User experience (UX) issue
type: enhancement
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I find this error message confusing. It describes two situations. Could we have a specific error message for each situation instead?
To Reproduce
Perform
cabal init
thentouch cabal.project
but keep the project empty.Now go to an empty directory and run the same command.
Notice the difference?
- Warning: There are no packages or optional-packages in the project Error: [Cabal-7136] There is no <pkgname>.cabal package file or cabal.project file. To build packages locally you need at minimum a <pkgname>.cabal file. You can use 'cabal init' to create one. For non-trivial projects you will also want a cabal.project file in the root directory of your project. This file lists the packages in your project and all other build configuration. See the Cabal user guide for full details.
Expected behavior
Error with one of these messages instead or something similar:
System information
I have
cabal-install
built from source at e3fd74c on ubuntu 23.10.The text was updated successfully, but these errors were encountered: