Closed Zaitam closed 1 year ago
Hi! Thanks for opening this pull request! :smile:
@fzyzcjy If you can review the changes. They are basic (+6 lines, which aren't even lines) but I think this is what you meant to do
Good job.
- [ ] New tests are added to ensure new features are working (probably by modifying the frb_example/pure_dart example).
Seems that this task has not been finished :)
CI fails 👀
Maybe you need to run the code generator locally and commit changes here
Thanks for the help Zaitam!
Yeah sorry I took a few days off and can't fix it atm. I'll do it as soon as I can
Take your time!
/cc @lattice0 for reviews as well - since he made the previous fix :)
@fzyzcjy, so I fixed the merge conflicts. I think the changes are done. Sorry if it took me long to update it, had other stuff. I skipped the 'add changes to book' bc this is already explained (Not this particular use case) But in vectors and arrays
Good job and take your time! I will review it in a minute.
@all-contributors please add @Zaitam for code
@fzyzcjy
I've put up a pull request to add @Zaitam! :tada:
Hey so I don't get the errors for the:
The ones of the code linting are clear and easy. If u could explain any of them so I can fix it
for "run codegen" -- run code generator locally, and commit them.
for valgrind, check its log output
So... The 3 issues (macos-11, windows-2019, ubuntu-20.04) are bc I need to run all of these folders test's locally?
Look at its log (e.g. https://github.com/fzyzcjy/flutter_rust_bridge/runs/8104588993?check_suite_focus=true) to see what is happening :)
Wait a bit... https://github.com/fzyzcjy/flutter_rust_bridge/runs/8107781203?check_suite_focus=true CI is failing even for master branch, which was working well!
So, no worries about the CI before #655 is fixed :)
Sadly I cannot merge this PR until #655 is fixed, because as is widely recognized, we should merge when CI goes green.
👀 What happened @Zaitam
I was too behind in the commits so decided to delete the fork and start from 0. There were too many edits to the src/generator/dart/mod.rs
that I got lost just by looking at it... Btw, how can I use the just
cli to test the bridge?
I see, totally agree :)
Btw, how can I use the just cli to test the bridge?
Run codegen? just gen-bridge
just refresh_all
may also help
error[E0658]: use of unstable library feature 'bool_to_option' it is in .then_some any ideas? (Clean copy of latest master version)
https://github.com/fzyzcjy/flutter_rust_bridge/commit/bdb7f11b5c8a5487355daac078d1166f657558f3
/cc @Desdaemon maybe your recent PR introduces non-stable feature?
I think it was the recently stabilized then_some
method in 1.64.
@fzyzcjy I didn't have much time to do it in the last days. I do confirm it was a rust problem, but I am also getting some flutter issues bc of I am unable to downgrade... Anyhow, i've been looking at the ty_something.rs
files and say that the self
class contained ir
, context
, etc. But couldn't find how to use ty.dart_param_type()
similar to the use in the generate_wire2api_func
function. Is it included in the self?
@Zaitam Maybe dig a bit into the source code and mimic other usages? This may help as well: http://cjycode.com/flutter_rust_bridge/contributing/design.html
Related to #587
Close #585
Previous discussions: #585
Checklist
frb_example/pure_dart
example).book
folder) are modified as well.