-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withSources
only works for library deps
#336
Comments
From an sbt session in a test project:
Downloads plugin sources and correctly generates Beyond manually attaching plugin sources in Eclipse is there a way to do this via sbt-eclipse? |
Why do you need the plugin or it's sources on the project classpath? |
@benmccann so I can browse the plugin sources in Eclipse? In sbt when I define This does not happen, for some reason, with dependencies defined in Maybe I'm not explaining this properly. Basically, somehow, I'd like the |
Worked around with Does the trick but would be nice if sbteclipse did this out of the box when plugins defined in |
@godenji Can you share the workaround? Thanks! |
@mkurz sure, here's a stripped down version (have more rewrites to deal with in my implementation). Hacky, but better than manually attaching sources in Eclipse, no thanks ;-) Add this to your settings once you have the below in place:
|
@mkurz you'll need this as well
|
@godenji Thanks, but I am getting:
|
Create a Transformers.scala file in your
then in your build.sbt: |
Would you mind also pasting here a full example of what is added to the |
In the case of Play framework the plugin is split up into several different jars. Here's the original classpath entry for one of them, play-server:
and now with sourcepath appended:
|
When I
eclipse
generate my projects none of the plugins inproject/plugins.sbt
have corresponding<classpathentry sourcepath="...">
entries in the project's generated.classpath
file. For library dependencies, no problem, sourcepath entries are generated correctly.Running
coursier
the target plugins and their sources are downloaded so the sources are available on the file system.// example /project/plugins.sbt
"com.typesafe.play" % "sbt-plugin" % "2.6.0-M4" withSources
sbt 0.13.15
scala 2.12.2
sbteclipse 5.1.0
The text was updated successfully, but these errors were encountered: