我在 Ubuntu 12.04 上使用 Emacs 24 快照和 Scala 2.9.2 和ensime_2.9.2-RC1-0.9.3.RC4
.
基本上我做了与https://groups.google.com/forum/?hl=en&fromgroups#!topic/ensime/HvvvFr5gSwg中描述的相同的事情
- 我使用 sbt 生成 .ensime 文件
ensime generate
。 - 我在 Emacs 上使用
M-x ensime
. - 它正确解析所有库等(自动完成工作正常等)
但是,当我尝试在 Emacs 中使用 启动 SBT 控制台时C-c C-v s
,它会显示以下错误:
[info] Loading project definition from /home/ximyu/.sbt/plugins
[info] Updating {file:/home/ximyu/.sbt/plugins/}default-86f483...
[error] a module is not authorized to depend on itself: default#default-86f483;0.0
[error] {file:/home/ximyu/.sbt/plugins/}default-86f483/*:update:
java.lang.IllegalArgumentException: a module is not authorized to depend on itself: default#default-86f483;0.0
显然 ENSIME 正在寻找错误的项目定义目录。它实际上不是查看我的项目目录,而是查看~/.sbt
. 有什么解决办法吗?