This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 206
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Cabal build fails if documentation is enabled #1693
Copy link
Copy link
Closed
Labels
Description
MacOS Catalina 10.15.3, GHC-8.8.3, current master.
./cabal-hie-install hie-8.8.3
fails if ~/.cabal/config
include the line
documentation: True
Here's the log: cabal-build-8.8.3.txt
$ ./cabal-hie-install hie-8.8.3
. . . . .
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
- hie-plugin-api-1.2 (lib) (requires build)
- haskell-ide-engine-1.2 (lib) (requires build)
- haskell-ide-engine-1.2 (exe:hie-wrapper) (requires build)
- haskell-ide-engine-1.2 (exe:hie) (requires build)
Starting hie-plugin-api-1.2 (lib)
Building hie-plugin-api-1.2 (lib)
Haddock hie-plugin-api-1.2 (lib)
Warning: Failed to build documentation for hie-plugin-api-1.2 (which is
required by exe:hie-wrapper from haskell-ide-engine-1.2 and exe:hie from
haskell-ide-engine-1.2).
Symlinking 'hie'
Symlinking 'hie-wrapper'
Error when running Shake build system:
at want, called at src/Development/Shake/Internal/Args.hs:83:69 in shk-0.18.5-78bc9188:Development.Shake.Internal.Args
* Depends on: hie-8.8.3
* Raised the exception:
/Users/ur20980/.cabal/bin/hie: copyFile:atomicCopyFileContents:withReplacementFile:copyFileToHandle:openBinaryFile: does not exist (No such file or directory)
Commenting that line out makes the build succeed: cabal-good-build-8.8.3.txt
$ ./cabal-hie-install hie-8.8.3
. . . . .
Installing haskell-ide-engine-1.2 (exe:hie-wrapper)
Completed haskell-ide-engine-1.2 (exe:hie-wrapper)
Installing haskell-ide-engine-1.2 (exe:hie)
Completed haskell-ide-engine-1.2 (exe:hie)
Symlinking 'hie-wrapper'
Symlinking 'hie'
Copied executables hie-wrapper, hie, hie-8.8 and hie-8.8.3 to /Users/ur20980/.cabal/bin
Build completed in 1m30s
fendor