With Anvil's `generateDaggerFactories.set(true)` ,...
# squarelibraries
d
With Anvil's
generateDaggerFactories.set(true)
, IDEA Ultimate doesn't seem to know where the module classes are and can't navigate to them from the generated component (even though they're there and everything works...), whereas when using dagger generated modules it does. Is there any way to get intellij to know where these files are (and not make all my components red...)?
r
There was a PR for that, but it didn’t work well: https://github.com/square/anvil/pull/207
Sources are generated in
build/anvil/...
. You can add this folder manually in IJ as a source folder.
d
Oh... thanks! I wonder how dagger2 does it? Is it some kind of intellij plugin?
How should I add that as a source folder, in IDEA project settings or in Gradle? Also, if I don't will this cause problems with Intellij's support for jumping links on the editor's gutter?
r
We don’t see any issues and didn’t add the folder as source directory anywhere.