Closed jodinathan closed 1 year ago
I'm encountering the same issue with compilation error when running $ pub global activate get_cli
. The error message is as follows:
../.pub-cache/hosted/pub.dev/posix-4.1.0/lib/src/string/string.dart:885:35: Error: Field '_unique___names_item_12' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<ffi.Int8>? _unique___names_item_12;
$ flutter --version
Flutter 3.9.0-0.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 0df8557c56 (9 days ago) • 2023-03-23 22:02:01 -0500
Engine • revision 1cc4b2d280
Tools • Dart 3.0.0 (build 3.0.0-290.3.beta) • DevTools 2.22.2
I use MBP m1
$ sw_vers
ProductName: macOS
ProductVersion: 12.6
BuildVersion: 21G115
I'm seeing these errors also, +1
The 4.2.0 tag seems to work when directly referencing it as git tag. Why has it not been released on pub.dev yet?
So the problem was layered 1) I had a circular dependency issue with dcli. So I started on breaking dcli into multiple smaller package to remove this sort of problem. 2) my laptop died so my evening work on dcli halted until I came to the realization that I need to buy a new laptop as my old one wasn't retrievable. 3) By the time I got the new lap top I got distracted by the dcli work and completely forgot that I hadn't released this version.
:<
I will try to get a release happening over the weekend.
Great, thanks
dart_posix 5.0.0 has now being published. This appears to resolve the problem.
Please take it for a spin and let me know how it goes.
Works for me, thank you :)
And me, thanks
when trying to run a console app:
dart version
Dart SDK version: 3.0.0-263.0.dev (dev) (Tue Feb 21 17:59:38 2023 -0800) on "macos_x64"