fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
4.29k stars 301 forks source link

Fix call toolchain version with fvm support #2395

Closed SirKrlos closed 2 weeks ago

SirKrlos commented 2 weeks ago

Changes

Fix call dart/flutter toolchain --version with fvm support.

Checklist

Remark for PR creator

welcome[bot] commented 2 weeks ago

Hi! Thanks for opening this pull request! :smile:

SirKrlos commented 2 weeks ago

Test performed in an environment with only the installed fvm, without the global version of the Flutter in the system.

Preview of error before the correction below: $ flutter_rust_bridge_codegen generate [2024-11-06T07: 52: 38.764Z WARN /home/usertest/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.6.0/src/library/commands/command_runner.rs:153] command="sh" "-c" "\"flutter\" \"--version\"" stdout= stderr=sh: linha 1: flutter: command not found Error: Dart/Flutter Toolchain Not Available

Preview of the result after correction: $ flutter_rust_bridge_codegen generate [2.0s] Parse ⠂ └── [2.1s] Cargo expand & syn parse ⠄

fzyzcjy commented 2 weeks ago

Great job!

welcome[bot] commented 2 weeks ago

Hi! Congrats on merging your first pull request! :tada:

fzyzcjy commented 2 weeks ago

@all-contributors please add @SirKrlos for code

allcontributors[bot] commented 2 weeks ago

@fzyzcjy

I've put up a pull request to add @SirKrlos! :tada: