我一直在尝试使用subime的ensime来使用Scala。为了安装ensime,我在这个位置创建了一个plugin.sbt
〜/ .sbt / 1.0 / plugins / plugins.sbt
here is the screen shot 我还添加了" addSbtPlugin(" org.ensime"%" sbt-ensime"%" 2.0.1")"在plugin.sbt中。但是当我运行sbt并运行命令" ensimeConfig"创建.ensime文件我收到错误
C:\Users\Mahadi>sbt
"C:\Users\Mahadi\.sbt\preloaded\org.scala-sbt\sbt\"1.0.1"\jars\sbt.jar"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
[info] Loading global plugins from C:\Users\Mahadi\.sbt\1.0\plugins\project
[info] Loading settings from plugins.sbt ...
[info] Loading global plugins from C:\Users\Mahadi\.sbt\1.0\plugins
[info] Loading project definition from C:\Users\Mahadi\project
[info] Set current project to mahadi (in build file:/C:/Users/Mahadi/)
[info] sbt server started at 127.0.0.1:5547
sbt:mahadi> ensimeConfig
[error] Not a valid command: ensimeConfig
[error] Not a valid project ID: ensimeConfig
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: ensimeConfig
[error] ensimeConfig
[error] ^
sbt:mahadi>
所以我正在寻找你的帮助。
答案 0 :(得分:0)
你应该在你的sbt项目的根目录中运行 sbt ,因为ensime配置文件是基于它构建的。