Closed mouse07410 closed 4 years ago
@mouse07410 it is weird that enable docs caused a warning (that should not make the build fail) and an error trying to access/write the hie executable, previously symlinked (with no errors, right?)
Does is exists /Users/ur20980/.cabal/bin/hie
after the failing build? are you usins cabal-3.0.0.0
or higher?
I've reproduced the error in windows, or at least it is quite similar:
Copying 'hie.exe'
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).
D:\csd\ghc-8.8.3\haskell-ide-e_-1.2-859d42c4bdbc03eea12d889a1f96e6618bcfc994\bin\hie.exe: copyFile:atomicCopyFileContents:withReplacementFile:copyFileToHandle:openBinaryFile: does not exist (No such file or directory)
In my case D:\csd\ghc-8.8.3\haskell-ide-e_-1.2-859d42c4bdbc03eea12d889a1f96e6618bcfc994
does not exist after the build.
It seems a cabal bug but it is hard that it will get patched in the short/medium term. So maybe we could investigate why docs fail for hie-plugin-api
I am on it. Seems like function parameter documentation with -- |
is actually not allowed. E.g.
foo
-- | Int param
:: Int
-- | String param
-> String
-> Int
Should be turned into:
foo
:: Int
-- ^ Int param
-> String
-- ^ String param
-> Int
Good job, guys! Thank you - problem fixed (verified).
MacOS Catalina 10.15.3, GHC-8.8.3, current master.
./cabal-hie-install hie-8.8.3
fails if~/.cabal/config
include the lineHere's the log: cabal-build-8.8.3.txt
Commenting that line out makes the build succeed: cabal-good-build-8.8.3.txt