-
Notifications
You must be signed in to change notification settings - Fork 300
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
There are still multiple objects with same key after merging warning #2082
Comments
The warning appears because that: In HIR stage (first stage of parsing), we have to scan structs in the whole crate even if it is I agree this may be confusing to users. One way may be not to show these unless user specify a flag to print out more details. A more complicated way may be to only warn if this type is really used in a later stage. This may not be of highest priority since it does not cause real errors, but I will try to find some time to work on it. Alternatively, feel free to PR! |
@fzyzcjy Does it mean that I can just ignore the warnings? |
If you do not use those types, then yes just ignore it currently. |
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. |
Describe the bug
After update from dev.37 to dev.39 I began to receive warnings
There are still multiple objects with same key after merging, thus randomly pick one
My application features a layered structure, comprising
network
andservice
layers. Theservice
layer employsnetwork
andstorage
as dependencies, and the application utilizes solely theservice
layer. To avoid verbosity, I elected for succinct naming conventions, where the "type" (be it network, storage, or service) of an object is indicated by the module name.All of this code is housed within the
internal
folder, which is situated on the same hierarchical level asapi
, not within it. Additionally, I usepub(crate)
instead of simplypub
to avoid generating code for the code.My
flutter_rust_bridge.yaml
containsso
flutter_rust_bridge_codegen generate
probably should to ignore all code ininternal
.Steps to reproduce
Logs
Expected behavior
I would like to
flutter_rust_bridge_codegen generate
ignoreinternal
package or to have documentation about naming conventions.Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: