Closed cipherchabon closed 2 years ago
The only option I see here is to allow devs to override the FFIGEN_RUNNER
via a config.
Let's keep this open, but I don't think it makes much sense to invest much work for now since you found a workaround.
When creating the rid cli tool I'll make sure to make this configurable.
If you're running it on Linux and you don't mind making some alias
es, you can add alias dart=fvm dart
, which IMHO fvm
should've done.
Scripts should work without a hitch after.
Closing since this is an edge case and a workaround exists. Will be addressed for the CLI tool via a config option.
When trying to run the flutter examples, it throws the following error:
In my case the problem turned out to be that I use a version manager (FVM). Then I was able to solve it by simply modifying the
FFIGEN_RUNNER
value fromdart
tofvm dart
in the file:id-build/src/ffigen/run_ffigen.rs
I wonder if there is a way to include this case to avoid having to modify the code by hand.