JPMoresmau / scion-class-browser

Scion part for EclipseFP Class Browser
16 stars 6 forks source link

No database loaded or Hoogle not present #17

Open 0rzech opened 9 years ago

0rzech commented 9 years ago

When I launch EclipseFP (2.6.3.201501121809), I get the "No database loaded or Hoogle not present" message in Hoogle view. Helper executable setting is properly set to Hoogle binary (custom sandbox, outside workspace). This is what I get from scion-browser console (I've replaced real paths with <workspace> and <home>):

>> {"filepath":"<workspace>/.metadata/.plugins/net.sf.eclipsefp.haskell.browser/scion-browser-0.2-dbs/local.db","command":"load-local-db","rebuild":true}
"ok"
>> {"db":"_all","module":"","command":"get-modules"}
>> {"filepath":"<workspace>/.metadata/.plugins/net.sf.eclipsefp.haskell.browser/scion-browser-0.2-dbs/hackage.db","command":"load-hackage-db","rebuild":false}
"ok"
>> {"db":"_all","module":"Prelude","command":"get-declarations"}
>> {"filepath":"<workspace>/.metadata/.plugins/net.sf.eclipsefp.haskell.browser/scion-browser-0.2-dbs/local.db","addToDB":false,"sandbox":"<home>/.eclipsefp/sandbox","command":"hoogle-init"}
"Missing"

Adding Hoogle binary to PATH variable does not help. The operating system is Linux Mint 17.1 64-bit, Eclipse version is 4.4.1. Scion-browser version is 0.4.3. Both <home>/.eclipsefp/sandbox and <home>/.eclipsefp/hoogle directories are empty.

JPMoresmau commented 9 years ago

The bug is on the EclipseFP side. We don't pass the preference path to Hoogle to scion-browser. However, we should look into /.eclipsefp/sandbox/bin, maybe copy your hoogle executable there as a workaround..

0rzech commented 9 years ago

Copying binaries to .eclipsefp/sandbox/bin did not help. Initializing sandbox in .eclipsefp/sandbox and installing Hoogle in it with cabal-install did. Thanks!

JPMoresmau commented 9 years ago

Hoogle may need other files than just the binary. Hopefully the issue will be fixed in the next release of EclipseFP, it's a regression (the code that passes the path to Hoogle if non standard was commented out by mistake).

0rzech commented 9 years ago

Yeah, it was my bad to copy just executables.