Eclipse与PHP的问题

时间:2014-10-31 15:45:51

标签: eclipse haskell eclipse-fp

已安装EclipseFP,看起来没有任何可观察到的问题。但是,当我启动Eclipse时,我得到了这个:

The Hoogle database is empty. Do you want to download the required information?

无论是单击是还是否,下次重启时都会发生同样的事情。

此外,在Hoogle视图中,我看到了这一点:

TNo database loaded or Hoogle not present

即使我在workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs中看到数据库似乎没问题:

hackage.db  123.71 MB   31.10.2014 09:42:18 Data Base File  A
local.db    3.06 MB 31.10.2014 10:20:53 Data Base File  A

在接穗浏览器控制台中,我在启动时有这个:

>> {"rebuild":true,"filepath":"C:\\eclipse\\workspace\\.metadata\\.plugins\\net.sf.eclipsefp.haskell.browser\\scion-browser-0.2-dbs\\local.db","command":"load-local-db"}
Local database loaded
"ok"
>> {"module":"","command":"get-modules","db":"_all"}
>> {"rebuild":false,"filepath":"C:\\eclipse\\workspace\\.metadata\\.plugins\\net.sf.eclipsefp.haskell.browser\\scion-browser-0.2-dbs\\hackage.db","command":"load-hackage-db"}
Hackage databas"ok"
e loaded
>> {"module":"Prelude","command":"get-declarations","db":"_all"}
>> {"path":"C:\\eclipse\\workspace\\.metadata\\.plugins\\net.sf.eclipsefp.haskell.ui\\sandbox\\.cabal-sandbox\\bin\\hoogle.exe","command":"extra-hoogle-path"}
"ok"
>> {"command":"hoogle-check"}
C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\bin\hoogle.exe

"Error"

看起来hoogle无法在命令行中运行:

C:\>cd C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\bin\

C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\bin>hoogle fmap
Could not find some databases: default
Searching in:
  .
  C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\x86_64-windows-ghc-7.8.3\hoogle-4.2.36\databases

There are no available databases, generate them with: hoogle data

C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\bin>

这里有什么想法吗?我会根据需要添加其他信息,不知道什么是有用的,让我知道,我会编辑。

1 个答案:

答案 0 :(得分:2)

由于某种原因,似乎hoogle也无法从命令行运行。可能与此有关:

C:\eclipse\workspace\.metadata\.plugins\net.sf.eclipsefp.haskell.ui\sandbox\.cabal-sandbox\bin>hoogle data
Downloading downloads/platform.cabal
WARNING: Could not find command line program wget.
  You may be able to install it from:
  http://gnuwin32.sourceforge.net/packages/wget.htm
WARNING: Could not find command line program curl.
  You may be able to install it from:
  http://curl.haxx.se/download.html
hoogle: Error when running Shake build system:
* default.hoo
* platform.hoo
* platform.txt
* downloads/platform.cabal.cache
* downloads/platform.cabal
Could not find downloader, neither curl nor wget are on the $PATH.

我安装了Cygwin,所以我通过在Cygwin终端上运行hoogle data来修复此问题,该终端在路径中有wget可用,但似乎解决了这个问题。