SBT + 创意 13 =>无法解析符号 [英] SBT + Idea 13 => Cannot resolve symbol

查看:15
本文介绍了SBT + 创意 13 =>无法解析符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SBT + Idea 13.1.1,我的所有 SBT 文件都是红色的:

I'm using SBT + Idea 13.1.1 and I have all my SBT file in red:

name := "Transformer"

version := "1.0"

libraryDependencies ++= Seq(
  "com.github.scopt" %% "scopt" % "3.2.0",
  "org.scalatest" % "scalatest_2.10" % "2.1.0" % "test"
)

这是说

无法解析符号名称/版本

Cannot resolve symbol name/version

但是 Seq 没问题.但是从 SBT cmd 甚至从 Idea 直接运行 main 或 scalatest 运行应用程序都很好.我知道要排除故障的信息不多,但我不知道还要检查什么.如果您有想法,请告诉我,我会提供一切.

But Seq is ok. But it's all good to run the app from SBT cmd or even from Idea directly running the main or scalatests. I know it's not a lot information to troubleshoot but I don't know what to check else. Tell me if you have an idea I'll provide everything.

干杯

推荐答案

要解决此问题,请删除文件夹 .idea 并重新导入项目.

To fix this, remove the folder .idea and reimport the project.

根本原因仍然是个谜......

The root cause remains a mystery...

这篇关于SBT + 创意 13 =>无法解析符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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