gpt4 book ai didi

scala - 'ensime generate' 不是有效的 sbt 命令

转载 作者:行者123 更新时间:2023-12-02 02:06:57 26 4
gpt4 key购买 nike

我正在尝试使用 sbt 生成一个 ensime 配置文件,如本教程中所述:

http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/

我遇到的问题是我无法让 sbt 生成配置文件,因为“ensime generate”命令似乎不是 sbt 命令集的一部分。

[输出]

[info] Building project ScalaTest 1.0 against Scala 2.9.2
[info] using sbt.DefaultProject with sbt 0.7.7 and Scala 2.7.7
[error] No method named 'ensime' exists.
[info] Execute 'help' for a list of commands or 'actions' for a list of available project actions and methods.
[info]
[info] Total time: 0 s, completed 26-Jan-2013 12:53:48
[info]
[info] Total session time: 0 s, completed 26-Jan-2013 12:53:48
[error] Error during build.

[遵循的步骤]

cd <project directory> (sbt project root)
sbt 'ensime generate'

[版本信息]

sbt 0.7.7
ensime 2.9.2-0.9.8.1
scala 2.9.2

[emacs 配置]

(add-to-list 'load-path "~/.emacs.d/scala-emacs")
(require 'scala-mode-auto)
(add-hook 'scala-mode-hook
'(lambda ()
(scala-mode-feature-electric-mode)
))
(require 'scala-mode)
(add-to-list 'auto-mode-alist '("\\.scala$" . scala-mode))
(add-to-list 'load-path "~/.emacs.d/ensime/elisp/")
(require 'ensime)
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)

(push "/media/xxx/Development/Runtimes/scala-2.9.2/bin/" exec-path)
(push "/media/xxx/Development/Tools/sbt/" exec-path)

感谢任何帮助(我已经检查了所有路径,所以请不要对此发表评论)

干杯,

我爱

最佳答案

您是否已将 ensime-sbt-cmd 插件添加到您的 sbt 构建中? http://aemoncannon.github.com/ensime/index.html#tth_sEc3.1

关于scala - 'ensime generate' 不是有效的 sbt 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14537187/

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