简体   繁体   English

Emacs ENSIME找不到依赖项

[英]Emacs ENSIME cannot find dependency

I'm pretty new with both Scala and ENSIME. 我对Scala和ENSIME都很陌生。 I have a project and the first setup is ok with ENSIME that seems to work fine (auto-completion working, jump to definition working, error highlighting working, etc.). 我有一个项目,并且ENSIME的第一个设置似乎可以正常运行(自动完成工作,跳转到定义工作,错误突出显示工作等)。 Anyway I've added a dependency in build.sbt (in particular I've added circe ). 无论如何,我已经在build.sbt添加了一个依赖build.sbt (特别是我添加了circe )。 ENSIME in Emacs keeps complaining object circe is not a member of package io . Emacs中的ENSIME一直抱怨object circe is not a member of package io

I initially recompile the project in a separate shell. 我最初在单独的外壳中重新编译该项目。 Nothing changed. 没有改变。 After that I tried to recompile the project from Emacs with Cc Cb c . 之后,我尝试使用Cc Cb c从Emacs重新编译该项目。 Nothing changed again. 一切都没有改变。

What am I missing? 我想念什么?

You need to re-generate the ensime configuration if you change anything in your .sbt files. 如果更改.sbt文件中的任何内容,则需要重新生成ensime配置。 Run sbt ensimeConfig in your project folder and restart Ensime inside Emacs. 在您的项目文件夹中运行sbt ensimeConfig ,然后在Emacs中重新启动Ensime。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM