dagger-plugin icon indicating copy to clipboard operation
dagger-plugin copied to clipboard

Dagger window not displaying bindings

Open CC007 opened this issue 4 years ago • 5 comments

I have a maven project using dagger. I can see and use the dagger binding navigation in the margins of my code, but the Dagger window doesn't show any bindings.

I tried multiple things:

  • do a normal clean/install build with maven (using a run configuration);
  • build with IntelliJ itself (the hammer button);
  • generate sources with IntelliJ itself;
  • Enable/disable the "Generate Graph on Every Build" in the Dagger window with all the above;
  • Click the refresh button in the Dagger window;
  • Downgrading to Dagger 2.31 with all of the above.

None of these worked.

Versions:

  • IntelliJ: 2021.1.3
  • Maven: 3.6.3
  • Dagger: 2.38.1
  • Dagger IntelliJ Plugin: 0.3.2021.1.1

CC007 avatar Aug 02 '21 18:08 CC007

Haven't tested with a maven project. Will test it out. Meanwhile, could you test this project and see if you are able to see the bindings? https://github.com/thsaravana/dagger-playground

thsaravana avatar Aug 20 '21 00:08 thsaravana

Can't right now. I just updated to 2021.2, so I'll have to wait until the updated version is available.

CC007 avatar Aug 20 '21 00:08 CC007

Btw, my project is a multimodule maven project. Could this have an effect on it? Or does it create the graph on a module-by-module basis? All my Dagger code and the Dagger dependency is in a single submodule (with dependency management in one of the parent submodules)

CC007 avatar Aug 20 '21 00:08 CC007

Ok, the updated plugin is available now. I tried the dagger-playground project. It seems to be able to find the dagger bindings there.

So in that case it either is a maven related issue, or a multi-module related issue.

Sidenote: it only found a subset of all bindings until I clicked Gradle -> Update All Gradle Projects. Maybe you want to run this automatically whenever Dagger -> Refresh is clicked.

CC007 avatar Aug 20 '21 17:08 CC007

Any progress on this issue? Just curious, no pressure :)

CC007 avatar Dec 18 '21 10:12 CC007