Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove conflict with Char in dart:ffi #349

Closed
dcharkes opened this issue Jan 21, 2022 · 3 comments · Fixed by #350
Closed

Remove conflict with Char in dart:ffi #349

dcharkes opened this issue Jan 21, 2022 · 3 comments · Fixed by #350
Assignees

Comments

@dcharkes
Copy link

https://dart-review.googlesource.com/c/sdk/+/228541 added a Char type to dart:ffi.

Unfortunately that breaks package:win32 and in turn the Flutter build: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8824468064587445729/+/u/Android_Views_Integration_Tests/stdout

The easiest fix would be to just import 'dart:ffi' hide Char; in https://github.com/timsneath/win32/blob/main/lib/src/structs.g.dart.

(And then release a new version, and roll that into Flutter, and any packages that are used in Flutter and roll those into Flutter.)

@timsneath timsneath linked a pull request Jan 21, 2022 that will close this issue
@timsneath timsneath self-assigned this Jan 21, 2022
@timsneath
Copy link
Contributor

@dcharkes This is fixed in win32 v2.3.8.

copybara-service bot pushed a commit to dart-lang/sdk that referenced this issue Mar 28, 2022
The diff from
https://dart-review.googlesource.com/c/sdk/+/229156/1..3

This was blocked by halildurmus/win32#349
earlier. Now that that has been resolved, we should be able to land
this.

We should land this to make package:ffigen be able to bind to `char` in
Dart 2.17.
dart-archive/ffigen#287 (comment)

TEST=tests/ffi/c_types_test.dart

Change-Id: Ia3bc3785a3d5c0c9f7475106eb77f944f2d0a838
Cq-Include-Trybots: luci.dart.try:vm-kernel-linux-debug-ia32-try,vm-kernel-win-debug-ia32-try,vm-kernel-nnbd-mac-debug-arm64-try,vm-kernel-nnbd-mac-debug-x64-try,vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64c-try,vm-precomp-ffi-qemu-linux-release-arm-try,vm-precomp-ffi-qemu-linux-release-riscv64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239020
Auto-Submit: Daco Harkes <[email protected]>
Reviewed-by: Jens Johansen <[email protected]>
Reviewed-by: Martin Kustermann <[email protected]>
@a-siva
Copy link

a-siva commented May 13, 2022

Can we close this issue ?

@timsneath
Copy link
Contributor

It's closed, no?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants