Importing classes from plugins supported?

Is importing classes from plugins supported? I've referenced a plugin (scrooge) in ./project/plugins.sbt:

addSbtPlugin("com.twitter" % "scrooge-sbt-plugin" % "3.7.0")

but now in my ./build.sbt, it says both references to ScroogeSBT (in the import and the seq(...)) is an unrecognized symbol. I also get "Expression type (Project.SettingsDefinition) must conform to Setting[_] in      SBT file" underneath the seq(...), but I assume that's because ScroogeSBT isn't recognized:

import com.twitter.scrooge.ScroogeSBT

name := "whatever"

version := "1.0.0-SNAPSHOT"

scalaVersion := "2.10.2"

seq(ScroogeSBT.newSettings: _*)


This project builds fine in sbt on the command line, but refuses to build in intellij with the most recent nightly build (0.1.50) with this project otherwise successfully loaded as an SBT project, because of these errors.

It doesn't help to move the addSbtPlugin line anywhere in build.sbt.

Thanks,
-Daniel

3 comments

I should have mentioned that this is a question about the sbt-intellij nightly build plugin, which has otherwise been working very well for me.

0

Hi Daniel,

SBT file imports in editor are currently hard-coded, correct import importing :) is on the way.

I've created an issue in YouTrack so you can monitor the progress on this.

0

Thanks Pavel. Keep up the great work. :)

0

Please sign in to leave a comment.