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
Unknown constant pool type #1150
Comments
So this is a feature request to add more logging? Given the nature of that code, I'm not entirely sure logging the unknown byte will be useful, but I suppose it can't hurt. Do you have a stacktrace or minimal reproducer? |
I am afraid not and I don't have more detailed info. Every time I run |
Hm some logging that indicates the file this trips over might help. I'll add that. Or if you're comfortable debugging, you could do that right now; there are instructions in the wiki. |
Ok, latest commit adds additional logging so we can see the exact class file this trips over. |
Thank you very much. But the latest release version v1.31.0 does not include this enhancement. I will test it once it it available, thanks. |
@249106156 you could also test a snapshot. Not sure when the next release will be, but if you test a snapshot and provide more information on the issue, I might be able to resolve it for that next release 👍 |
@autonomousapps, I tested the snapshot and tried to fix errors by commenting out source code. But I don't understand why errors throw in my source code, even though they are just normal value assignments. I think we need to figure out the root cause instead of commenting out code. |
Can you share the code you commented out? I see that you're using Kotlin 1.9.0. Can you try Kotlin 1.9.22 or .23? |
I have the same issue. I updated Kotlin version to 1.9.22 but it didn't help.
|
@9tilov can you test with the latest snapshot and provide the logs from the error? |
I have released 1.32.0, which includes additional logging, so a snapshot is no longer needed. |
Build scan link
Plugin version
1.30.0
Gradle version
8.6
JDK version
17
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
1.9.0
(Optional) Android Gradle Plugin (AGP) version
8.2.0
(Optional)
reason
output for bugs relating to incorrect adviceDescribe the bug
When running the task
buildHealth
, an error throws withUnknown constant pool type
. I review the source code and find src/main/kotlin/com/autonomousapps/internal/ConstantPoolParser.kt throws exception. But the root cause cannot be located from my project. Is it possible to enhance the log with the location?To Reproduce
Steps to reproduce the behavior:
Expected behavior
Enhance the exception log with the cause location, like which class or constant causes the error.
Additional context
The text was updated successfully, but these errors were encountered: