Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

databases: copyFile: does not exist #5

Open
nh2 opened this issue Nov 20, 2014 · 3 comments
Open

databases: copyFile: does not exist #5

nh2 opened this issue Nov 20, 2014 · 3 comments

Comments

@nh2
Copy link

nh2 commented Nov 20, 2014

I got this when running hoogle-index:

Converting /tmp/textbase19836.txt
Converting textbase19836... done
Skipped 1 warnings in textbase19836
Failed to build the following indexes:
  PackageName "rts" Can't build documentation for rts
  PackageName "ghc-prim"    Can't build documentation for ghc-prim
  PackageName "integer-gmp" Can't build documentation for integer-gmp
  PackageName "haskell2010" Can't build documentation for haskell2010
  PackageName "haskell98"   Can't build documentation for haskell98
  PackageName "bin-package-db"  Can't build documentation for bin-package-db
  PackageName "ghc" Can't build documentation for ghc

Combining 218 databases
hoogle-index: $HOME/.cabal/share/x86_64-linux-ghc-7.8.3/hoogle-4.2.36/databases: copyFile: does not exist (No such file or directory)

A mkdir $HOME/.cabal/share/x86_64-linux-ghc-7.8.3/hoogle-4.2.36/databases fixed it.

Maybe hoogle-index should check whether the dir exists, and create it if not?

@bgamari
Copy link
Owner

bgamari commented Nov 20, 2014

Maybe hoogle-index should check whether the dir exists, and create it if not?

@nh2, as of 0.3.2 hoogle-index does exactly this. Can you verify that you are running the latest version?

@acowley
Copy link

acowley commented Dec 31, 2014

I still see this error with 0.3.3. Creating the directory manually addressed that error.

Incidentally, printing the version of the executable with the help information would be useful.

bgamari added a commit that referenced this issue Dec 31, 2014
As suggested in #5.
@bgamari
Copy link
Owner

bgamari commented Dec 31, 2014

@acowley, the package version is now shown in the footer of the output of --help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants