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

whatDependsOn fails with "Expected ';'" #191

Closed leozilla closed 4 years ago

leozilla commented 4 years ago

I hope I am not duplicating a known issue here cos I am using sbt 1.3.x

I am trying the whatDependsOn command and it fails with the error output shown below. I tried it both from bash and from the sbt shell.

Versions: sbt: 1.3.10 plugin version: 0.10.0-RC1

Actual behaviour:

$ sbt "whatDependsOn global.bright test-kit"
[info] Loading global plugins from /home/david/.sbt/1.0/plugins
[info] Loading settings for project eventworld-backend1-build from plugins.sbt ...
[info] Loading project definition from /home/david/work/eventworld/eventworld-backend1/project
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Loading settings for project eventworld from build.sbt ...
[info] Resolving key references (49279 settings) ...
[info] Set current project to eventworld (in build file:/home/david/work/eventworld/eventworld-backend1/)
[error] Expected ';'
[error] Expected 'test-kit_2.13'
[error] Expected whitespace character
[error] Expected 'jdbc-utils_2.13'
[error] Expected 'amazon-ses-utils_2.13'
[error] Expected 'amazon-lambda-utils_2.13'
[error] Expected 'eventworld_2.13'
[error] whatDependsOn global.bright test-kit
[error]                                     ^

I also tried running another command before whatDependsOn and I also tried to run sbt dependencyTree "whatDependsOn xxx xxx"

jatcwang commented 4 years ago

What if you try whatDependsOn global.bright test-kit_2.13? :)

leozilla commented 4 years ago

Thanks, this worked.