jfeltz / dash-haskell

dash docset builder for Haskell packages and cabal project dependencies
GNU Lesser General Public License v3.0
79 stars 12 forks source link

doesn't recognize hidden packages in package databases #4

Closed nurpax closed 9 years ago

nurpax commented 9 years ago

I tried running dash-haskell on Mac OS X. I built the latest from Github, but when I try to run it on dash-haskell itself, I get this:

janne ~/dev/dash-haskell $ ./.cabal-sandbox/bin/dash-haskell -c dash-haskell.cabal -o docsets
db provider:
  lookup strategy: cabal sandbox db index
  cmd: cabal
  args: sandbox hc-pkg list

fatal error:

The following packages were not found in searched package db's:
ghc
Please be sure to provide exact package versions.

I built my sandbox with --enable-documentation.

My Cabal version is as follows:

janne ~/dev/dash-haskell $ cabal --version
cabal-install version 1.20.0.3
using version 1.20.0.1 of the Cabal library 

The output of cabal sandbox hc-pkg list is:

janne ~/dev/dash-haskell $ cabal sandbox hc-pkg list|grep ghc
/Applications/ghc-7.8.3.app/Contents/lib/ghc-7.8.3/package.conf.d:
    (ghc-7.8.3)
    ghc-prim-0.3.1.0
/Users/janne/dev/dash-haskell/.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d:
    ghc-paths-0.1.0.9

My GHC 7.8.3 is from http://ghcformacosx.github.io/.

nurpax commented 9 years ago

This works though:

janne ~/dev/dash-haskell $ ./.cabal-sandbox/bin/dash-haskell sqlite-simple-0.4.8.0
db provider:
  lookup strategy: cabal sandbox db index
  cmd: cabal
  args: sandbox hc-pkg list

processing: sqlite-simple-0.4.8.0
  writing files..
  writing plist..
  populating database..
  finished populating sqlite database..
jfeltz commented 9 years ago

It looks like I've failed to handle the hidden package case. A patch should be coming in the next few days.

jfeltz commented 9 years ago

Attempted fix is now on master: 77feed49256fca3b73eee5636edc7d95c293e5b8 Let me know if that works for you.

nurpax commented 9 years ago

Seems to be working, thanks!