简体   繁体   中英

How to attach sources to scala sbt project at Intellij Idea?

I am new at scala. And for start I want to use Intellij 13.1.5 IDE .

However IDE can't attach sources. Here is how it looks for AnyVal :

在此处输入图片说明

Search at internet can't find any source.

I tried Attach sources and attach unpacked scala archive. It doesn't work either.

UPDATE:

Here is sbt configuration:

name := "scalatest-selenium"

version := "1.0"

scalaVersion := "2.11.1"

libraryDependencies ++= Seq(
  "net.sourceforge.htmlunit" % "htmlunit" % "2.14",
  "org.seleniumhq.selenium" % "selenium-java" % "2.42.2",
  "org.scalacheck" % "scalacheck_2.10" % "1.11.4" % "test",
  "org.scalatest" % "scalatest_2.11" % "2.2.0" % "test"
)

testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-u", "target/test-reports")

How to solve this trouble?

I get rid of this trouble at the following way:

removed the .sbt directory in your Home Folder .

When you run sbt again, the new folder is created in the correct format and the error goes away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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