-
Notifications
You must be signed in to change notification settings - Fork 303
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
Support parsing arbitrarily complex pub-use statement chains #2302
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hmm that's weird. Could you please firstly make a minimal reproducible sample? For example,
|
Wild guess: is it possible snafu somehow notice To check this, try to firstly rename everything into unrelated names, such as "DatabaseError -> OneError", "Database -> Two", etc |
Yeah, Another solution is to putting the snafu's my example: https://github.com/Zhou-Pixel/test_error.git |
One thing that confuses me is that when I write them in the same file, it works, but when I separate them, it doesn't work |
Currently this is not implemented, because it is nontrivial to correctly understand all those prefixes. For example, you need to understand |
But the Database snafu generated is |
Due to compatibility reasons, first-party |
Describe the bug
error.rs
profile.rs
Steps to reproduce
It is OK to write two pieces of code in the same file, but it is not OK to write them separately.
Logs
Expected behavior
No response
Generated binding code
No response
OS
Linux zhou-ser 6.10.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 x86_64 GNU/Linux
Version of
flutter_rust_bridge_codegen
flutter_rust_bridge_codegen 2.4.0
Flutter info
Version of
clang++
clang version 18.1.8
Additional context
No response
The text was updated successfully, but these errors were encountered: