New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling annotation that does not exist throws NoSuchElementException
#881
Comments
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 |
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. |
in 2.5.0-beta1, kotlin 1.9.22
I have an annotation in code that was mistakenly using old package name from a merge conflict. I tried compiling the app and anvil crushes the compilation error:
Anvil fails with:
The text was updated successfully, but these errors were encountered: