gpt4 book ai didi

Hoogle 的 EclipseFP 问题

转载 作者:行者123 更新时间:2023-12-02 01:44:10 25 4
gpt4 key购买 nike

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

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

无论我点击"is"还是“否”,下次重启时都会发生同样的事情。

另外,在 Hoogle View 中,我看到了这个:

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

在 scion-browser 控制台中,我在启动时有这个:

>> {"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>

这里有什么想法吗?我会根据需要添加其他信息,只是不确定哪些信息有用,请告诉我,我会进行编辑。

最佳答案

出于某种原因,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 可用,这似乎已经解决了这个问题。

关于Hoogle 的 EclipseFP 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26678574/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com