Closed gutenfries closed 1 year ago
Looks quite reasonable, feel free to PR to bump that version!
@fzyzcjy Apologies for the dead ping (we've been seeing each other quite a bit in issues/PRs recently, yes lol?)
This exact same bug popped up in https://github.com/corrosion-rs/corrosion.git.
No big deal, I have a PR open on corrosion (https://github.com/corrosion-rs/corrosion/pull/429).
Just wanted you to be aware of this, as it will still affect FRB.
No worries!
as it will still affect FRB
Not very sure, do you mean it affects FRB for the people who are using corrosion? Get it, I will be aware of that
To my latest knowledge, corrosion is a (CMake) requirement for users to use FRB with flutter.
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
I recently downloaded a project from git to start hacking away at it again and after some basic version upgrading, finding out what versions play well with each other, etc, this issue kept popping up.
FRB will build all the generated files without error, but when I attempt to run my code (via
flutter run -d linux
) it gives me the following error:upon doing some more research (using google lol), I've found that this is an issue with
proc-macro
Basically, the Rust team pushed some changes to prod, and the proc-macro2 folks haven't been able to make the necessary changes to their codebase at the time of the release. (see https://github.com/rust-lang/rust/issues/113152 for more details)
This presents a breaking bug for FRB, as anyone with
>= nightly-2023-06-28
installed will run into the same (breaking) issue.Proposed fix(es):
the issue has recently (quite literally since I started typing this up lol) been resolved within
proc-macro2
, and versions>=1.0.60
appropriately address this. (see https://github.com/dtolnay/proc-macro2/pull/391 for additional context.)simply bumping this ASAP should be adequate to address this.
Codegen logs with
RUST_LOG=debug
environment variableTo Reproduce
run
flutter run
in a FRB project with rust versionnightly-2023-06-28
or newerExpected behavior
No response
Generated binding code
No response
OS
Zorin OS (highly modified XFCE Ubuntu LTS)
Version of
flutter_rust_bridge_codegen
flutter_rust_bridge_codegen 1.79.0
Flutter info
Version of
clang++
clang version 10.0.0-4ubuntu1
Version of
ffigen
8.0.2
Additional context
No response