-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Crash of dagger.lint.DaggerKotlinIssueDetector using AGP 8.1.0 #3980
Comments
It's odd that Line 207 would fail to find the static annotation that the class claimed to have only a couple lines above 🤔 |
Agree with the above that it seems really weird that it couldn't find the annotation after checking it. For the code that is failing, is it possible you're missing a dependency on the Kotlin stdlib? We've seen cases in other contexts where checking if something has an annotation may not use the dependency, but then trying to get the annotation fails because of that. If that isn't it though, I think we'd need a repro example to investigate if you can make one. |
Update:
|
This is caused by https://github.com/JetBrains/intellij-community/blob/0af2e7b5c59e57c3a0080d736d5a6732a540407e/plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/declarations/KotlinUMethod.kt#L66 which drops to convert I left code review: #4023 (comment), along with a correct workaround. |
Made an upstream issue: https://youtrack.jetbrains.com/issue/KTIJ-26803 |
…ull/4023/files#r1308159525 for details. Fixes #3980. RELNOTES=Fixes #3980. PiperOrigin-RevId: 563594875
I have a crash after upgrading to AGP 8.1.0.
Stacktrace:
The text was updated successfully, but these errors were encountered: