0
votes

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 ?

1

1 Answers

0
votes

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.