Skip to content

ffi plugin template ffigen command doesn't work on Windows #105513

@dcharkes

Description

@dcharkes

Seen behavior

lib\hello_bindings_generated.dart contains no bindings.

Expected behavior

lib\hello_bindings_generated.dart contains bindings for sum and sum_long_running.

Steps to reproduce

On Windows:

  1. flutter create --template plugin_ffi hello
  2. cd hello
  3. flutter pub run ffigen --config ffigen.yaml

Root cause

Path separator on Windows not converted to backslash:

Fix

Bump package:ffigen to a new version after landing:

Testing

We should possibly also add a test exercising the run of the bindings generator on the bots, but this requires having libclang available.

On the package:ffigen bots we use GitHub workflows.

      - name: Install libclang-10-dev
        run: sudo apt-get install libclang-10-dev

https://github.com/dart-lang/ffigen/blob/master/.github/workflows/test-package.yml#L51-L52

@stuartmorgan Do we have libclang on the Flutter bots? Can we have this on the bots?

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listfound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions