Dagger noob question. I find myself always hitting...
# squarelibraries
c
Dagger noob question. I find myself always hitting a case where I see a provides method written by a teammate and I try to find where it's actually being provided. Is there a way to easily find where that's being used? I always find myself wanting something like the Otto IntelliJ Plugin, but for Dagger.
z
c
@Zach Klippenstein (he/him) [MOD] looks pretty close to what I want! Just for the sake of asking, is there a technique people used before scabbard? I see that it's only about 6 months old? I was also hoping there's some trick to find usages that way.
z
is there a technique people used before scabbard?
None that I know of, other than text search for “provides*”
c
Thanks! Still learning so I didn't know if there were any protips around this. I find myself just searching for @Inject Type and didn't know if there was a better way.
t
comment out the provides function and run the build. you will be greeted with an error message listing the points of use
c
Now there's a pro tip!! 😬 🤦 why didn't I think of that
t
lol because you must go through what you are going through first
can't say I have not been lost for a few hours before I had the "oh duh" moment
j
Btw we built literally what you asked for once: https://github.com/square/dagger-intellij-plugin
👍 3
c
@jw oof. Should have figured. Thanks
t
It's for dagger 1.* and has pretty poor support for dagger2 as of years ago. Today, all bets are off. Last commit 12/2016
j
Yes that's why I mentioned it in the past tense
💯 1
c
Damn. Okay! Missed that part.
t
a quick poke around, and I love it