Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

toFile is not recognized as a key #167

Closed
joychugh opened this issue Sep 17, 2018 · 7 comments
Closed

toFile is not recognized as a key #167

joychugh opened this issue Sep 17, 2018 · 7 comments

Comments

@joychugh
Copy link

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
Copy link
Member

jrudolph commented Sep 17, 2018

The feature has not been released yet ;)

@jaceklaskowski
Copy link

jaceklaskowski commented Feb 12, 2019

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
Copy link

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

@jrudolph
Copy link
Member

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
Copy link

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
Copy link

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
Copy link
Member

Released with 0.10.0-RC1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants