sbt icon indicating copy to clipboard operation
sbt copied to clipboard

whatDependsOn doesn't work without qualifying scala-version suffix AND subproject

Open hedefalk opened this issue 4 years ago • 3 comments

steps

sbt 1.5.5

whatDependsOn org artifactId

problem

sbt:RegReporting-backend> whatDependsOn rat cloudformation 0.0.1
[error] Expected whitespace character
[error] Expected 'com.regandtech'
…

expectation

Dependency tree output

notes

I've had problems with whatDependsOn before. Sometimes different quoting have been working, sometimes it worked on a first run but not again. No I can't get it to work at all on any internal dependencies. The parsing must be broken…

hedefalk avatar Sep 08 '21 07:09 hedefalk

Old issue, but seems to be something related: https://github.com/sbt/sbt-dependency-graph/issues/95

hedefalk avatar Sep 08 '21 07:09 hedefalk

Hm, I did get it working now by qualifying both with subproject AND scala-version-suffix:

Working:

migrationLambda / whatDependsOn rat cloudformation_2.13

Gives errors:


 whatDependsOn rat cloudformation_2.13
 migrationLambda / whatDependsOn rat cloudformation

hedefalk avatar Sep 08 '21 07:09 hedefalk

Can confirm this issue is still present in SBT 1.10.7

nsutcliffe avatar Apr 10 '25 09:04 nsutcliffe