You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple fbs source files. Some of these have tables, some others have enums, which are included and used in those tables.
When I run flatc --kotlin-kmp schema/*.fbs I see that MyEnum.kt is always "empty": the file doesn't have any enum, just the "head":
// automatically generated by the FlatBuffers compiler, do not modifypackagecom.openmeteo.flatbuffers.forecastimportcom.google.flatbuffers.kotlin.*importkotlin.jvm.JvmInline
But (!), when I run flatc --kotlin-kmp schema/model.fbs everything is fixed.
"Actually, you could just run a loop as workaround" - strangely, looping over each single file doesn't fix the issue: I suspect there's some async/caching stuff not getting properly set/cleaned-up, or at the very least something time-related.
Can anyone else replicate the issue with the latest repo source code?
I have multiple fbs source files. Some of these have tables, some others have enums, which are included and used in those tables.
When I run
flatc --kotlin-kmp schema/*.fbs
I see thatMyEnum.kt
is always "empty": the file doesn't have any enum, just the "head":But (!), when I run
flatc --kotlin-kmp schema/model.fbs
everything is fixed."Actually, you could just run a loop as workaround" - strangely, looping over each single file doesn't fix the issue: I suspect there's some async/caching stuff not getting properly set/cleaned-up, or at the very least something time-related.
Can anyone else replicate the issue with the latest repo source code?
If needed, I can share my fbs files.
My finds so far:
Perhaps fix: kotlin-kmp start/end method names don't match #8147 could be related, idk
I'm trying to find a fix in
flatbuffers/src/idl_gen_kotlin_kmp.cpp
Line 98 in 129ef42
Kind regards 😄
The text was updated successfully, but these errors were encountered: