-
Notifications
You must be signed in to change notification settings - Fork 305
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
Geneartion of async
functions when default_dart_async: false
#2178
Comments
Totally agree! We should detect when seeing Feel free to PR, or alternatively I will work on it in the next batch! |
I am going to look to the frb code. Don’t do anything on this issue until I declare that it is too complicated for me and that I need your help. |
Sure! If you need any hints (e.g. where to look at / how to fix) just ping me. |
Please, how can I start FRB under debugger ? Can I use |
frb code generator ( |
You may need to add several command line flags: |
I did something to fix this issue, but I had many problems because we diverged. |
This is stupid. Better for me to cancel my PR. |
I guess you meant #2181? No it is unrelated to this issue! Firstly it was started (i.e. the first code commit time) before you mentioned wanting to work on this issue. Secondly it was done to fix the scenario that someone chooses In other words, there are 3 scenarios when
|
No problem, @fzyzcjy . I was very glad to have a preview of the frb code. ‘Thanks for your tremendous work. 👍 . |
I guess not solved since I do not touch anything related to
Yes - you can have a look at the commit history. But not only me - there are many people who contribute to this project (view https://github.com/fzyzcjy/flutter_rust_bridge#-acknowledgments-and-contributors for a full list and details). Many of them contribute something small like fixing a typo, but there are some people who contribute a lot to the project, making it grow from a tiny project into a much bigger one. On the other hand, v2's overhaul and new features are mostly done by me (again check the list/commit history for details). |
Fixed by PR [#2187]. (I hope) |
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
When I set the parameter
default_dart_async: false
I get after, 10 errors.Most of them are in class
Context
andContextOffline
.For example :
The
await
almost at the end of the fn is NOK, because the function is notasync
.I think the problem is tied with the declaration of
suspend()
in the WebAudioApi-RS :Probably that our generated fn should be
async
tooSteps to reproduce
Logs
Expected behavior
No response
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: