Comments (2)
As I understand it, you fixed the issue in your code but Anvil is still trying to reference the old type name?
This sounds like a symptom of the incremental compilation issues that were addressed in the current beta release.
In order to enable the new behavior, you need to enable the trackSourceFiles
flag in the Gradle extension or in gradle.properties
via com.squareup.anvil.trackSourceFiles=true
.
from anvil.
Sorry to clarify, we have that already turned on. This is code from a stale branch merged from the main branch. The merged code referenced an annotation that moved packages but the code was not updated to use it. So hitting compile resulted in the error above.
from anvil.
Related Issues (20)
- `ContributesSubcomponent.Factory` doesn't support inherited functions HOT 1
- Anvil 2.5.0-beta09 gradle plugin does not add `build/anvil/main/generated` folder to main sourceSet. HOT 2
- What is the correct way to introduce custom code generator for anvil running in KSP mode? HOT 6
- Generics typealias codegen error
- Anvil KSP processors don't support multi-round processing
- Anvil causes Gradle tasks to be non-cacheable HOT 10
- Anvil fails to generate a MembersInjector for an inherited generic property
- `ContributesSubcomponent.Factory` validation fails when the function is inherited and returns a generic
- Anvil fails to compile for Provider<T>
- ContributesSubcomponent.Factory validation fails when the function is overridden
- `ir-merges.txt` causes configuration cache invalidation on next build
- Adopt new KSP moduleName API or better handle in KSP2
- `ContributesBinding` or `ContributesMultibinding` on an `object` declaration requires some sort of Dagger factory generation
- v2.5.0-beta05 breaks custom code generators HOT 2
- `RealAnvilModuleDescriptor.allFiles` only returns files with type declarations
- Kotlin 2.0.0-RC1 Gradle plugin incompatibility HOT 1
- The following Android dependencies are set to compileOnly which is not supported HOT 1
- Unresolved Reference in IDE For Bindings Added Via @ContributesTo HOT 3
- Experiencing IC issues with `com.squareup.anvil.trackSourceFiles=true` in embedded mode HOT 2
- Duplicate `ContributesMultibinding` check does not consider `ignoreQualifier` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anvil.