如何全局安装 sbt ensime 插件?
How to install sbt ensime plugin globally?
我创建了 ~/.sbt/1.0/plugins/plugins.sbt
之后cd进入~/.sbt/1.0/plugins
我已经 运行 addSbtPlugin("org.ensime" % "sbt-ensime" % "2.5.1")
但是我有这个错误zsh: unknown sort specifier
有什么想法吗?
来自 sbt 文档。您应该使用该行创建一个 build.sbt (~/.sbt/1.0/plugins/build.sbt
) 文件:
addSbtPlugin("org.ensime" % "sbt-ensime" % "2.5.1")
您不需要运行这个命令。
这是一个 link 文档,您可以在其中查看它:
https://www.scala-sbt.org/1.x/docs/Using-Plugins.html#Global+plugins
You can create ~/.sbt/1.0/plugins//build.sbt and put addSbtPlugin() expressions in there to add plugins to all your projects at once. Because doing so would increase the dependency on the machine environment, this feature should be used sparingly.
我创建了 ~/.sbt/1.0/plugins/plugins.sbt
之后cd进入~/.sbt/1.0/plugins
我已经 运行 addSbtPlugin("org.ensime" % "sbt-ensime" % "2.5.1")
但是我有这个错误zsh: unknown sort specifier
有什么想法吗?
来自 sbt 文档。您应该使用该行创建一个 build.sbt (~/.sbt/1.0/plugins/build.sbt
) 文件:
addSbtPlugin("org.ensime" % "sbt-ensime" % "2.5.1")
您不需要运行这个命令。
这是一个 link 文档,您可以在其中查看它:
https://www.scala-sbt.org/1.x/docs/Using-Plugins.html#Global+plugins
You can create ~/.sbt/1.0/plugins//build.sbt and put addSbtPlugin() expressions in there to add plugins to all your projects at once. Because doing so would increase the dependency on the machine environment, this feature should be used sparingly.