[英]ghc-modi and cabal version
(Haskell newbie here) (此处为Haskell新手)
I'm trying to configure HaskForce plugin into IntelliJ IDEA, configured "ghc-mod" with "legacy-interactive" in "GHC Modi" Flags
. 我正在尝试将HaskForce插件配置为IntelliJ IDEA,并在“ GHC Modi”
Flags
中将“ ghc-mod”配置为“ legacy-interactive”。 The root problem seems to be related to cabal version, although when I try autocompleting on any Haskell symbol, I get this: 根本问题似乎与阴谋集团版本有关,尽管当我尝试对任何Haskell符号进行自动填充时,都会得到以下提示:
ghc-modi error
Unable to parse problems from ghc-modi: cabal-helper-wrapper.exe: ghc: readCreateProcess: does not exist (No such file or directory)
ghc-mod: readCreateProcess: C:\ACME\projects\htest\.cabal-sandbox\cabal-helper-0.5.3.0-553kah86RQN6BuDX6XLBiX\cabal-helper-wrapper.exe "C:\\ACME\\projects\\htest" "C:\\ACME\\projects\\htest\\dist" (exit 1): failed
When I run this last command ( C:\\ACME\\projects\\htest\\.cabal-sandbox\\cabal-helper-0.5.3.0-553kah86RQN6BuDX6XLBiX\\cabal-helper-wrapper.exe "C:\\\\ACME\\\\projects\\\\htest" "C:\\\\ACME\\\\projects\\\\htest\\\\dist"
), it tries to install cabal 1.18: 当我运行最后一个命令时(
C:\\ACME\\projects\\htest\\.cabal-sandbox\\cabal-helper-0.5.3.0-553kah86RQN6BuDX6XLBiX\\cabal-helper-wrapper.exe "C:\\\\ACME\\\\projects\\\\htest" "C:\\\\ACME\\\\projects\\\\htest\\\\dist"
),它将尝试安装cabal 1.18:
cabal-helper-wrapper.exe: Installing Cabal version 1.18.1.3 failed.
I already have cabal, of version 1.22 (installed via Haskell Platform v7.10.2-a, released recently in August). 我已经有了1.22版的Cabal(通过8月最近发布的Haskell Platform v7.10.2-a安装)。
Is there any way to work around this issue (ie still use ghc-mod
/ ghc-modi
)? 有什么办法可以解决此问题(即仍使用
ghc-mod
/ ghc-modi
)?
更新的Haskforce插件(0.3-beta24)可以与以下ghc-mod一起正常使用:
ghc-mod version 5.4.0.0 compiled by GHC 7.10.2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.