-
Notifications
You must be signed in to change notification settings - Fork 30.5k
ffi plugin template ffigen command doesn't work on Windows #105513
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Seen behavior
lib\hello_bindings_generated.dartcontains no bindings.Expected behavior
lib\hello_bindings_generated.dartcontains bindings forsumandsum_long_running.Steps to reproduce
On Windows:
flutter create --template plugin_ffi hellocd helloflutter pub run ffigen --config ffigen.yamlRoot cause
Path separator on Windows not converted to backslash:
Fix
Bump
package:ffigento a new version after landing:include-directiveson Windows dart-archive/ffigen#397Testing
We should possibly also add a test exercising the run of the bindings generator on the bots, but this requires having
libclangavailable.On the
package:ffigenbots we use GitHub workflows.https://github.com/dart-lang/ffigen/blob/master/.github/workflows/test-package.yml#L51-L52
@stuartmorgan Do we have
libclangon the Flutter bots? Can we have this on the bots?