
Hi, All these bugs are against the homeomorphic library I have written. To play along, you can do darcs get --partial http://www.cs.york.ac.uk/fp/darcs/homeomorphic Bug 1: cabal install worked the first time, running it a second time fails. $ cabal install .. works.. $ cabal install .. configuring ... setupWrapper in Nothing : ["build"] Preprocessing library homeomorphic-0.1... Building homeomorphic-0.1... E:\ghc\ghc-6.8.2\bin\ar.exe: creating dist\build\libHShomeomorphic-0.1.a setupWrapper in Nothing : ["install"] cabal: Error: some packages failed to install: homeomorphic-0.1 failed during the final install step. Bug 2: cabal haddock fails $ cabal haddock Preprocessing library homeomorphic-0.1... Running Haddock for homeomorphic-0.1... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: base-3.0.1.0, QuickCheck-1.1.0.0, mtl-1.1.0.0, containers-0.1.0.1 dist/build/tmp/Data/Homeomorphic/Hash1.hs:4:0: Include/Hash.hs: No such file or directory This one may well be my fault, if some extra magic is required for the haddock with CPP, but not the building - but that seems weird, if there is enough info to build the file, surely there is enough info to haddock it Bug 3: Cabal upload doesn't work: $ cabal upload Username: ... Password: .... Not even a "goodbye and thanks for your password, I'm off to raid your paypal". It should certainly say something $ cabal upload dist E:\Neil\homeomorphic>cabal upload dist\homeomorphic-0.1.tar.gz Hackage username: NeilMitchell Hackage password: yoda Uploading dist\homeomorphic-0.1.tar.gz... ERROR: dist\homeomorphic-0.1.tar.gz: 400 Error in upload 400 error in upload - not the worlds most helpful error message... Bug 4: Cabal upload asks for your password in plain text. That one is security related - you are asking for someones password, and giving the appearance that you aren't overly fussed about keeping it secret. Thanks Neil

On Thu, 2008-04-03 at 14:04 +0100, Neil Mitchell wrote:
Hi,
All these bugs are against the homeomorphic library I have written. To play along, you can do
Thanks Neil, I'll try this when I get a second. I presume this is on Windows. What version of Cabal were you using?
darcs get --partial http://www.cs.york.ac.uk/fp/darcs/homeomorphic
Bug 1: cabal install worked the first time, running it a second time fails.
Hmm. Nothing obvious from the log and it works for me on Linux. I'll have to try it on Windows.
Bug 2: cabal haddock fails
dist/build/tmp/Data/Homeomorphic/Hash1.hs:4:0: Include/Hash.hs: No such file or directory
This one may well be my fault, if some extra magic is required for the haddock with CPP, but not the building - but that seems weird, if there is enough info to build the file, surely there is enough info to haddock it
Right, there is no such guarantee at the moment. That's because ghc --make can find things by import chasing where Cabal needs more stuff specified explicitly. One day when Cabal does the import chasing they'll be consistent. In this case though it doesn't look like on of those problems. It seems to be because for haddock we're copying files to dist/ and then running cpp on them. That means of course that relative #includes do not work. It's not entirely clear to me why we are copying them before running cpp and not just running cpp on the files from their original locations. Please file a ticket for this one.
Bug 3: Cabal upload doesn't work:
$ cabal upload Username: ... Password: ....
You reported this one before and I fixed it: $ cabal upload cabal: the 'upload' command expects one or more .tar.gz packages.
$ cabal upload dist E:\Neil\homeomorphic>cabal upload dist\homeomorphic-0.1.tar.gz Hackage username: NeilMitchell Hackage password: yoda Uploading dist\homeomorphic-0.1.tar.gz... ERROR: dist\homeomorphic-0.1.tar.gz: 400 Error in upload
400 error in upload - not the worlds most helpful error message...
Indeed. There is an error message available but I'm not sure how we get at it. Any ideas Ross? Another ticket for this one.
Bug 4:
Cabal upload asks for your password in plain text. That one is security related - you are asking for someones password, and giving the appearance that you aren't overly fussed about keeping it secret.
I'm happy to add that if anyone can figure out the code to do it. It's presumably different on ANSI terminals and the Windows command console. So yet another ticket for that. Duncan

Hi
I presume this is on Windows. What version of Cabal were you using?
HEAD whenever the original message was sent. Windows is always a safe bet with me :-)
Bug 1: cabal install worked the first time, running it a second time fails.
Hmm. Nothing obvious from the log and it works for me on Linux. I'll have to try it on Windows.
Its entirely possible its a bug in ghc-pkg rather than cabal. Perhaps those pesky .manifest files are still floating around breaking something.
Bug 2: Please file a ticket for this one.
Done #266
Bug 3: Cabal upload doesn't work:
$ cabal upload Username: ... Password: ....
You reported this one before and I fixed it:
Yeah, but when I tried again it didn't work still. I wonder why - its possible one of the versions isn't as up to date as I think. Otherwise, it may still be an issue - did you push the patch?
$ cabal upload dist E:\Neil\homeomorphic>cabal upload dist\homeomorphic-0.1.tar.gz Hackage username: NeilMitchell Hackage password: yoda Uploading dist\homeomorphic-0.1.tar.gz... ERROR: dist\homeomorphic-0.1.tar.gz: 400 Error in upload
400 error in upload - not the worlds most helpful error message...
Indeed. There is an error message available but I'm not sure how we get at it. Any ideas Ross?
Another ticket for this one.
#267
Cabal upload asks for your password in plain text. That one is security related - you are asking for someones password, and giving the appearance that you aren't overly fussed about keeping it secret.
I'm happy to add that if anyone can figure out the code to do it. It's presumably different on ANSI terminals and the Windows command console.
getChar in a loop? You can always do: c <- getChar putChar '*' If you so feel like it. You can even use putStr "\b \b" to move back one character, even on Windows. #268 Thanks Neil

On Wed, 2008-04-09 at 22:55 +0100, Neil Mitchell wrote:
Hi
I presume this is on Windows. What version of Cabal were you using?
HEAD whenever the original message was sent.
Ok.
Windows is always a safe bet with me :-)
Of course :-)
Bug 1: cabal install worked the first time, running it a second time fails.
Hmm. Nothing obvious from the log and it works for me on Linux. I'll have to try it on Windows.
Its entirely possible its a bug in ghc-pkg rather than cabal. Perhaps those pesky .manifest files are still floating around breaking something.
When I get back from the hackathon I'll give it a go. Could you report it anyway so we don't forget and in case any other windows users can add any details.
Bug 2: Please file a ticket for this one.
Done #266
Thanks.
Bug 3: Cabal upload doesn't work:
$ cabal upload Username: ... Password: ....
You reported this one before and I fixed it:
Yeah, but when I tried again it didn't work still. I wonder why - its possible one of the versions isn't as up to date as I think. Otherwise, it may still be an issue - did you push the patch?
Definitely pushed. You're sure you rebuilt and installed cabal-install? $ cabal upload cabal: the 'upload' command expects one or more .tar.gz packages. $ cabal --version cabal-install version 0.4.6 using version 1.3.10 of the Cabal library
$ cabal upload dist E:\Neil\homeomorphic>cabal upload dist\homeomorphic-0.1.tar.gz Hackage username: NeilMitchell Hackage password: yoda Uploading dist\homeomorphic-0.1.tar.gz... ERROR: dist\homeomorphic-0.1.tar.gz: 400 Error in upload
400 error in upload - not the worlds most helpful error message...
Indeed. There is an error message available but I'm not sure how we get at it. Any ideas Ross?
Another ticket for this one.
#267
Thanks. Ross and Björn have been looking into it which is great.
Cabal upload asks for your password in plain text. That one is security related - you are asking for someones password, and giving the appearance that you aren't overly fussed about keeping it secret.
I'm happy to add that if anyone can figure out the code to do it. It's presumably different on ANSI terminals and the Windows command console.
getChar in a loop? You can always do:
c <- getChar putChar '*'
If you so feel like it. You can even use putStr "\b \b" to move back one character, even on Windows.
But not in emacs :-)
#268
Ta. Duncan

Hi
Definitely pushed. You're sure you rebuilt and installed cabal-install?
I just tried upgrading my work machine, cabal goes fine, but cabal-install: [21 of 21] Compiling Main ( ./Main.hs, dist\build\cabal\cabal-tmp/Ma in.o ) ./Main.hs:221:24: Couldn't match expected type `Distribution.Verbosity.Verbosity' against inferred type `Verbosity' In the first argument of `check', namely `(fromFlag verbosityFlag)' In a 'do' expression: allOk <- check (fromFlag verbosityFlag) In the expression: do (unless (null extraArgs)) $ (do die $ ("'check' doesn't take any extra arguments: " ++ (unwords extraArgs))) allOk <- check (fromFlag verbosityFlag) unless allOk exitFailure cabal: Error: some packages failed to install: cabal-install-0.4.6 failed during the building phase. Thanks Neil
participants (2)
-
Duncan Coutts
-
Neil Mitchell