Closed nikita-volkov closed 9 years ago
The issue was that my command assumed my conventions for writing name/version pairs (although I think most shell scripts I saw to do this task assumed roughly similar conventions). In particular, the version and name must be on one line, but you write:
name:
stm-containers
I've generalised my code to cope with that, and I was able to generate docs for your package. New version released, neil-0.4, which should work.
I've tried your package again.
The 0.4 and 0.5 releases simply fail to build with the following:
Failed to install neil-0.4
Last 10 lines of the build log ( /Users/mojojojo/.cabal/logs/neil-0.4.log ):
[25 of 33] Compiling Paper.Graph ( src/Paper/Graph.hs, dist/build/neil/neil-tmp/Paper/Graph.o )
[26 of 33] Compiling Paper.Util.FileData ( src/Paper/Util/FileData.hs, dist/build/neil/neil-tmp/Paper/Util/FileData.o )
[27 of 33] Compiling Paper.Haskell ( src/Paper/Haskell.hs, dist/build/neil/neil-tmp/Paper/Haskell.o )
[28 of 33] Compiling Paper.Main ( src/Paper/Main.hs, dist/build/neil/neil-tmp/Paper/Main.o )
[29 of 33] Compiling Arguments ( src/Arguments.hs, dist/build/neil/neil-tmp/Arguments.o )
[30 of 33] Compiling Cabal ( src/Cabal.hs, dist/build/neil/neil-tmp/Cabal.o )
src/Cabal.hs:43:12: Not in scope: ‘getDirectoryContentsRecursive’
src/Cabal.hs:97:18: Not in scope: ‘getDirectoryContentsRecursive’
cabal: Error: some packages failed to install:
neil-0.4 failed during the building phase. The exception was:
ExitFailure 1
The 0.6 builds fine, but the docs it uploads generate a "Page not found" error on Hackage.
Yes, I put out 0.6 to fix the change in the extra package - use that and you should be fine. Have you uploaded the package to Hackage already? And made sure you haven't changed the version number in the .cabal file? You can only upload docs after uploading the package, or you get a page not found error.
Sure I did. For information, an alternative script uploaded the docs just fine.
Weird. If it happens again, can you give me the full details of Page not found, including any URL it prints out. Can you also clarify if it's a case of uploading giving an error, or after uploading when viewing through the browser you've got an error.
Note that uploading docs again shouldn't be harmful, so if you want to give it a go, do let me know the results.
Please reopen if you can reproduce it, otherwise marking closed for now.
Didn't notice your previous message.
I have just tried it again and it worked fine. I'll reopen if it pops up again.
Tried on Mac and Linux - same thing.