-
Notifications
You must be signed in to change notification settings - Fork 598
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
IndexOutOfBoundsException during kapt (not sure which step) #1628
Comments
Just a note I have determined which table model it is during, it is this annotated declaration:
|
can you paste your fulll model here to see what the issue is ( thank you for the call stack) so I can try to repo the problem and see if its an issue on 5.0.0-alpha1 and how to rectify this. |
I found the piece of code: codeBuilder.addCode(references!![0].columnName, getDefaultValueBlock(), 0, modelBlock) it seems as though the references could not be found and it thinks that the column is not a model column. quick Q, is |
my mistake. it is a primitive column. looks like something else might be up. |
Attached that model source, the generated code as of the older dbflow version, and the source of the foreign key model |
in |
ISSUE_TEMPLATE
DBFlow Version: 4.2.4
Bug or Feature Request: Bug
Description: Updating DBflow dependency from 4.0.0 to current release as part of updateing Android targetSdk to 26. Kotlin is 1.2.61. After deleting build folder and starting a build I get this error during kapt.
Looking in disk folder generated/source/kapt/debug I see, compared to the last successful release, several table Java files are missing in debug. So it didn't finish. I looked at the first file alphabetically missing, the looked at the kt file for the @table, and uncommented out the @table declaration, so it should not longer be kapt processed for the table, but same error happened.
The text was updated successfully, but these errors were encountered: