dagger-plugin
dagger-plugin copied to clipboard
Dagger window not displaying bindings
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
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
Can't right now. I just updated to 2021.2, so I'll have to wait until the updated version is available.
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)
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.
Any progress on this issue? Just curious, no pressure :)