sbt / sbt-dependency-graph

sbt plugin to create a dependency graph for your project
Apache License 2.0
1.24k stars 113 forks source link

toFile is not recognized as a key #167

Closed joychugh closed 5 years ago

joychugh commented 5 years ago
sbt:podcast-realtime-subject-extraction-parent> dependencyTree:toFile
[error] Not a valid key: toFile (similar: testFilter, compile, compilers)
[error] dependencyTree:toFile
[error]                      ^
sbt:podcast-realtime-subject-extraction-parent> dependencyTree::toFile
[error] Not a valid key: toFile (similar: testFilter, compile, compilers)
[error] dependencyTree::toFile
[error] 

sbt version 1.1.0 dependency graph version 0.9.2 scala version 2.11.11 os: Mac OS 10.13.6 Plugin installed in ~/.sbt/1.0/plugins/plugins.sbt addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")

jrudolph commented 5 years ago

The feature has not been released yet ;)

jaceklaskowski commented 5 years ago

A solution is to tag the repo (e.g. v0.9.2-local) and sbt publishLocal. That will publish a local build of the plugin with the version that matches the tag (as sbt-dependency-graph uses sbt-dynver sbt plugin).

> about
[info] This is sbt 1.2.8
[info] The current project is ProjectRef(uri("file:/Users/jacek/..."), "...") 0.1
[info] The current project is built against Scala 2.11.12
[info] Available Plugins
[info]  - com.timushev.sbt.updates.UpdatesPlugin
[info]  - coursier.sbtcoursier.CoursierPlugin
[info]  - coursier.sbtcoursiershared.SbtCoursierShared
[info]  - net.virtualvoid.sbt.graph.DependencyGraphPlugin
[info]  - sbt.ScriptedPlugin
[info]  - sbt.plugins.CorePlugin
[info]  - sbt.plugins.Giter8TemplatePlugin
[info]  - sbt.plugins.IvyPlugin
[info]  - sbt.plugins.JUnitXmlReportPlugin
[info]  - sbt.plugins.JvmPlugin
[info]  - sbt.plugins.SbtPlugin
[info]  - sbtassembly.AssemblyPlugin
[info]  - sbtprojectgraph.SbtProjectGraphPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.12.7

> compile:dependencyTree::toFile target/compile-depstats.txt -f
[info] Wrote dependencyTree to 'target/compile-depstats.txt'

A much better solution would be to have an official release.

shijinkui commented 5 years ago

:( Why the non-released feature show in readme. Waste time for debug

jrudolph commented 5 years ago

Yeah, sorry, that's really painful. I had a bit more time/energy in last summer and started preparing the new release before other things took over again. I try to get a release out soon.

nivekastoreth commented 5 years ago

Any idea when a version including this will be released? I sadly just realized I ran into this ticket when I got to the point I was debugging decompiled sbt code (I didn't think I'd be getting that far when I started, otherwise I'd have set up a proper debugging env) and realized the code that was running didn't match what I was expecting to see based on this master repo =/

anilkumarmyla commented 5 years ago

Looking for this feature as well, seems the code in master has the feature ready and just needs a release. Let us know if you need any help pushing a new release out

jrudolph commented 5 years ago

Released with 0.10.0-RC1.