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
The issue is that File-C doesn't import File-A and it won't complain as we're using super.someEnum.
but the generated file will include SomeEnumMapper as InvalidType and it needs manual import.
This is hard to spot if we're ignoring analyzing generate files and will throw at runtime.
It'd be helpful if we can auto-add imports for the needed mappers of the parent class if it's not included.
The text was updated successfully, but these errors were encountered:
Unfortunately automatically adding imports to a source file is not possible with using build_runner. I understand the problem, but I don't know if or how I could fix it.
We are running in to this issue as well and it adds quite a lot of extra work, especially since it won't be caught before compiling. I'm not sure what a good generic solution could be yet, though.
The issue is that
File-C
doesn't importFile-A
and it won't complain as we're usingsuper.someEnum
.but the generated file will include SomeEnumMapper as
InvalidType
and it needs manual import.This is hard to spot if we're ignoring analyzing generate files and will throw at runtime.
It'd be helpful if we can auto-add imports for the needed mappers of the parent class if it's not included.
The text was updated successfully, but these errors were encountered: