Hi all, has anyone got across a weird quirk where IntelliJ won't recognize the generated code from Komapper? My code currently works but IntelliJ errors with "unresolved reference" on the
Meta
object, and subsequent code is highlighted with errors, making it quite hard to work as the autocomplete goes kaboom. Any idea what the problem could be?
stefano
01/09/2024, 3:40 PM
or it could rather be a problem of slow indexing? I see one entity got recognized now... Everything else is fast though, so it's not a general speed problem
d
dave08
01/09/2024, 4:20 PM
Probably an indexing problem... I don't really have such problems... maybe try gradle clean and then gradle kspKotlin again if it still doesn't work after waiting for indexing.
dave08
01/09/2024, 4:21 PM
You don't need to do a full build to generate the ksp classes, just run the ksp gradle task even if there's some errors in other classes in the project
s
stefano
01/09/2024, 7:20 PM
thanks @dave08 that's a good shortcut to know
stefano
01/09/2024, 7:20 PM
for the record, the problem is gone for now, it might have been just too many projects open and intellij starting to struggle