You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the src directory does not exist, then cabal-fmt gives the error message:
cabal-fmt: ./src: getDirectoryContents:openDirStream: does not exist (No such file or directory)
This error message is confusing for the user, because it is not clear what the reason for it is. A better error message would be to tell the user the relevant line of code in the .cabal file, with a clearer explanation that the directory does not exist (or is not readable). Even better would be to just treat non-existent directory as empty, and proceed to format the file.
Thank you
The text was updated successfully, but these errors were encountered:
If the cabal file has a line such as:
but the
src
directory does not exist, thencabal-fmt
gives the error message:This error message is confusing for the user, because it is not clear what the reason for it is. A better error message would be to tell the user the relevant line of code in the .cabal file, with a clearer explanation that the directory does not exist (or is not readable). Even better would be to just treat non-existent directory as empty, and proceed to format the file.
Thank you
The text was updated successfully, but these errors were encountered: