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
When I ran cabal v2-build, it started running for a while, and then I got the error:
C:\Users\bitc\projects\myproject\dist-newstyle\tmp\src-1777\basement-0.0.11\dist\build: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:RemoveDirectory "\\\\?\\C:\\Users\\bitc\\projects\\myproject\\dist-newstyle\\tmp\\src-1777\\basement-0.0.11\\dist\\build": unsatisfied constraints (The directory is not empty.)
The Full log is below.
When I checked the directory, it was actually empty.
When I ran cabal v2-build again, the build resumed, and this time completed successfully.
To Reproduce
I was able to Reproduce! I completely deleted dist-newstyle and my user's cabal directory, and ran again cabal v2-update and cabal v2-build. This time it failed on a different package:
C:\Users\bitc\projects\myproject\dist-newstyle\tmp\src-4000\hashable-1.3.0.0\benchmarks: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:RemoveDirectory "\\\\?\\C:\\Users\\bitc\\projects\\myproject\\dist-newstyle\\tmp\\src-4000\\hashable-1.3.0.0\\benchmarks": unsatisfied constraints (The directory is not empty.)
System information
Windows 7 Professional
cabal 3.2.0.0
ghc 8.10.3
This looks similar to #4144 but I am opening a new issue since that one is very old and closed.
Thanks for reporting it, I am experiencing it too. It would be great to confirm that merged pr fixes it, trying cabal-3.4 (or 3.2 with the patch, it needs be built from source)
Btw, are you on windows 7? or is it reproduced in newer versions too?
Describe the bug
I did a clean install of
When I ran
cabal v2-build
, it started running for a while, and then I got the error:The Full log is below.
When I checked the directory, it was actually empty.
When I ran
cabal v2-build
again, the build resumed, and this time completed successfully.To Reproduce
I was able to Reproduce! I completely deleted
dist-newstyle
and my user's cabal directory, and ran againcabal v2-update
andcabal v2-build
. This time it failed on a different package:System information
This looks similar to #4144 but I am opening a new issue since that one is very old and closed.
Appendix: Full Log
The text was updated successfully, but these errors were encountered: