Madrapps / dagger-plugin

Plugin that supports easy usage of Dagger 2 library in IntelliJ iDEA or Android Studio
Apache License 2.0
30 stars 9 forks source link

Dagger window not displaying bindings #39

Open CC007 opened 2 years ago

CC007 commented 2 years ago

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:

None of these worked.

Versions:

thsaravana commented 2 years ago

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

CC007 commented 2 years ago

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

CC007 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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