bitlap / intellij-sbt-dependency-analyzer

:chart_with_upwards_trend: SBT Dependency Analyzer for IntelliJ IDEA(IntelliJ IDEA的SBT依赖分析插件)
https://plugins.jetbrains.com/plugin/22427-sbt-dependency-analyzer
GNU General Public License v3.0
26 stars 3 forks source link

Cannot find button named `Go to sbt Dependency` #20

Closed jxnu-liguobin closed 1 month ago

jxnu-liguobin commented 1 year ago

I cannot find button named Go to sbt Dependency, but my module already defines that dependency image

The reason for this is that the method does not pick up the declared dependencies:

SbtDependencyUtils.getLibraryDependenciesOrPlaces(getSbtFileOpt(module), module.getProject, module, GetDep)

Guess the reason for this is because of the use of other methods in ModuleID, such as exclude:

  val _starProtocol = ("fc.xuanwu.star" %% "star-protocol" % _engineVersion)
    .exclude("fc.xuanwu.star", "fusion-core_3")

Another declared dependencies related question: A dependency declared by SettingKey also fails to fetch the declared dependency

libraryDependencies ++= libScalax.`http4s-Release`.value

So, I can't find the button called Go to sbt Dependency either

jxnu-liguobin commented 1 year ago

There are also issues with scalajs, and there should be issues with scala native. We need to consider rewriting SbtDependencyUtils.getLibraryDependenciesOrPlaces