sbt / sbt-eclipse

Plugin for sbt to create Eclipse project definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't see managedSources unless explicitly invoked

jypma opened this issue · comments

I'm using the SBT protobuf plugin together with sbteclipse, on SBT 1.0.1.

addSbtPlugin("com.github.gseitz" % "sbt-protobuf" % "0.6.3")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.2")

Now it seems that sbteclipse doesn't "see" the extra managedSources that .enablePlugins(ProtobufPlugin) puts into a project configuration, unless that's explicitly invoked before running eclipse.

In other words, in a clean workspace, sbt eclipse will generate a correct .classpath. But running it again will not have the src_managed generated protobuf sources in it. Touching a .proto file, opening the SBT console, and typing compile and then eclipse will once more yield the correct result.

I stumbled onto this when doing an SBT 1.0 upgrade... I'm unsure whether this worked before, or whether I'm just missing something extra in my project. I'd expect that managedSources is interrogated by sbt eclipse before generating the .classpath though, so I don't know what's up.