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
In hindsight, I probably should have tested #319 a bit more thoroughly 😅
I'm running codegen on a larger test project with enums, and flutter_rust_bridge is not generating a freezed file.
I'm early in investigating this, but I think this is happening because distinct_types() in api_types.rs doesn't know how to find imported types. I have no idea why this isn't causing more things to break, so it might be a red herring.
If all goes well I'll have a fix for this soon. @fzyzcjy This issue shouldn't cause any existing code to break, so it's up to you if you want to wait for the fix.
The text was updated successfully, but these errors were encountered:
SecondFlight
changed the title
[Bug] Freezed file is not generated if you only have enums in imported files
[Bug] Freezed file is sometimes not generated when it should be
Feb 11, 2022
Hmm maybe I will wait for the fix. Since this bug is related to #319, and the next release is mainly about #319 as well. But don't worry, take your time!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
In hindsight, I probably should have tested #319 a bit more thoroughly 😅
I'm running codegen on a larger test project with enums, and flutter_rust_bridge is not generating a freezed file.
I'm early in investigating this, but I think this is happening because
distinct_types()
inapi_types.rs
doesn't know how to find imported types. I have no idea why this isn't causing more things to break, so it might be a red herring.If all goes well I'll have a fix for this soon. @fzyzcjy This issue shouldn't cause any existing code to break, so it's up to you if you want to wait for the fix.
The text was updated successfully, but these errors were encountered: