IntelliJ无法解析build.sbt中的符号 [英] IntelliJ cannot resolve symbol in build.sbt

查看:696
本文介绍了IntelliJ无法解析build.sbt中的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ IDEA 15在我的 build.sbt 文件中报告了我的项目定义的未解析符号

IntelliJ IDEA 15 is reporting an unresolved symbol for my project definition in my build.sbt file

lazy val root = (project in file(".")).enablePlugins(PlayScala)

在中报告项目时出错。

It's reporting an error with project and in.

Cannot resolve symbol project.
Cannot resolve symbol in.

其他所有内容都完美解析,否则项目全部设置完毕,sbt构建正常,激活器运行良好。

Everything else resolves perfectly and the project is otherwise all set up, sbt builds fine, activator runs fine.

推荐答案

要解决此问题,我导入: import sbt .project 在我的 build.sbt之上

To fix this issue, I imported: import sbt.project on top of my build.sbt

我正在使用IntelliJ IDEA 16 EAP

I am working with IntelliJ IDEA 16 EAP

这篇关于IntelliJ无法解析build.sbt中的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆