user3225028
user3225028

Reputation: 15

DefaultParsers : Cannot resolve symbol import sbt.complete.DefaultParsers._

I would like to use DefaultParsers from Scala with idea. I would like to test to do this : http://www.scala-sbt.org/0.13.1/docs/Detailed-Topics/Parsing-Input.html

But my import doesn't work.

In my file.scala :

import sbt._ import sbt.complete.DefaultParsers._

These two line doesn't work : first line : sbt isn't known second line : Cannot resolve symbol import sbt.complete.DefaultParsers._

In my build.sbt

libraryDependencies ++= Seq( "org.scala-sbt" % "command"
% "0.13.1"

I think my build.sbt is not good (sbt update ok).

Someone can help me ?

Upvotes: 0

Views: 562

Answers (1)

mpilquist
mpilquist

Reputation: 3855

The sbt.complete package is provided by the org.scala-sbt % completion JAR. So add this line to youd build.sbt:

libraryDependencies += "org.scala-sbt" % "completion" % "0.13.1"

For a full example of using SBT's completion library, see https://github.com/cjmx/cjmx.

Upvotes: 0

Related Questions