在 Mac OS X 上安裝 EclipseFP

在 Mac OS X 上安裝 EclipseFP

我正在嘗試安裝 EclipseFP。我正在運行 OS X Mavericks。

我試過遵循這兩個官方安裝說明以及中的建議這個答案SU,但我仍然遇到同樣的問題。

我可以使用 輕鬆安裝插件本身Help -> Install New Software...,但是當我重新啟動並切換到 Haskell 視角時,事情開始出錯。

安裝說明告訴我,我應該會收到安裝 BuildWrapper 和 Scion Browser 的提示。我沒有收到此提示。此外,如果我建立一個新的 Haskell 項目,我的程式碼沒有語法突出顯示,而且 Hoogle 搜尋功能似乎沒有執行任何操作。很明顯該插件尚未正確設定。

我嘗試cabal update在終端中運行,但這不會改變任何東西。

在 Eclipse Juno 上進行了多次嘗試後,我卸載了 Eclispe 和 Haskell Platform,並執行了 Eclipse Luna 和最新 Haskell Platform 的全新安裝。然而,問題仍然存在。

我嘗試進入“首選項”,看看是否可以手動解決這些問題。我首先應該指出,我的 GHC 安裝似乎是正確引用的Preferences -> Haskell Implementations

在 下Haskell -> Helper executables,有用於配置 BuildWrapper 和 Scion Browser 選項的區域。目前,兩者都是空白。我嘗試點擊Install from Hackage...每個按鈕旁邊的按鈕,但沒有成功;我收到一條錯誤訊息說

Expected executable <workspace>/.metadata/.plugins/net.sf.eclipsefp.haskell.ui/sandbox/.cabal-sandbox/bin/buildwrapper not found!`

(將 buildwrapper 替換為 scion-browser,訊息是相同的)

使用 BuildWrapper 執行上述操作後,Eclipse 控制台顯示下列異常:

src/Language/Haskell/BuildWrapper/GHCStorage.hs:313:32:
Not in scope: data constructor ‘MatchGroup’
cabal.real: Error: some packages failed to install:
buildwrapper-0.7.4 failed during the building phase. The exception was:
ExitFailure 1

在為 Scion-Browser 執行此操作後:

zip-archive-0.2.3.4 (reinstall) changes: text-1.1.0.0 -> 0.11.3.1
pandoc-1.12.3.3 (latest: 1.13) -http-conduit (new version)
Graphalyze-0.14.1.0 (reinstall) changes: pandoc-1.12.4.2 -> 1.12.3.3,
text-1.1.0.0 -> 0.11.3.1
cabal.real: The following packages are likely to be broken by the reinstalls:
pandoc-1.12.4.2
unordered-containers-0.2.4.0
aeson-0.7.0.4
scientific-0.2.0.2
case-insensitive-1.1.0.3
HTTP-4000.2.10
Use --force-reinstalls if you want to install anyway.

在之前的嘗試中收到與上述類似的結果後,我嘗試使用強制重新安裝,但最終陷入了更多死胡同。

我不知道出了什麼問題以及如何解決這個問題。我應該指出,我的 GHC 安裝似乎在Preferences -> Haskell -> Haskell Implementations.

如果這些訊息中有任何無關緊要的訊息,我深表歉意,我只是不確定目前什麼是重要的,什麼是不重要的。

任何人能為我提供的任何幫助將不勝感激。

答案1

我最終使用安裝了 BuildWrapper cabal install buildwrapper --force-reinstalls,並且它起作用了 - 我檢查了 EclipseFP 首選項的 Helper Executables 部分,BuildWrapper 和 Scion-Browser 現在都在那裡。我不知道為什麼這次有效,而不是我上次嘗試的時候,但如果其他人遇到過這個問題,我的建議是全新安裝 Haskell 平台,然後重試,因為似乎已經修復了它我。

相關內容