@vilkris I’m trying to build this encrypted message PoC
However I get this error. I have installed the necessary dependency as outlined in the original post.
Dart SDK version: 3.4.0 (stable) (Mon May 6 07:59:58 2024 -0700) on "macos_arm64"
environment:
sdk: '>=2.14.0 <3.0.0'
dependencies:
dcli: ^1.7.1
znn_sdk_dart:
git:
url: https://github.com/zenon-network/znn_sdk_dart.git
ref: 367ddc7fbfefb6484d7553d9ac7e4532003a7008 # v0.0.4
Could this be a Dart version issue? Looks like the SDK is fixed.
mkdir -p build
dart compile exe cli_handler.dart -o build/znn-cli
../../.pub-cache/hosted/pub.dev/dcli-1.12.4/lib/src/script/runner.dart:34:21: Error: The method 'waitFor' isn't defined for the class 'ScriptRunner'.
- 'ScriptRunner' is from 'package:dcli/src/script/runner.dart' ('../../.pub-cache/hosted/pub.dev/dcli-1.12.4/lib/src/script/runner.dart').
Try correcting the name to the name of an existing method, or defining a method named 'waitFor'.
final process = waitFor<Process>(
^^^^^^^
../../.pub-cache/hosted/pub.dev/dcli-1.12.4/lib/src/util/wait_for_ex.dart:25:17: Error: Method not found: 'waitFor'.
value = cli.waitFor<T>(future);
^^^^^^^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/grp.dart:296:35: Error: Field 'gr_name' 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>? gr_name;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/grp.dart:299:35: Error: Field 'gr_passwd' 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>? gr_passwd;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/grp.dart:303:17: Error: Field 'gr_gid' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external int? gr_gid;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/grp.dart:306:48: Error: Field 'gr_mem' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<ffi.Pointer<ffi.Int8>>? gr_mem;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:291:35: Error: Field 'pw_name' 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>? pw_name;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:295:35: Error: Field 'pw_passwd' 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>? pw_passwd;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:299:17: Error: Field 'pw_uid' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external int? pw_uid;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:303:17: Error: Field 'pw_gid' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external int? pw_gid;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:306:35: Error: Field 'pw_gecos' 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>? pw_gecos;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:309:35: Error: Field 'pw_dir' 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>? pw_dir;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/pwd.dart:312:35: Error: Field 'pw_shell' 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>? pw_shell;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:723:40: Error: Field '_unique___locales_item_0' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_0;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:724:40: Error: Field '_unique___locales_item_1' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_1;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:725:40: Error: Field '_unique___locales_item_2' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_2;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:726:40: Error: Field '_unique___locales_item_3' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_3;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:727:40: Error: Field '_unique___locales_item_4' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_4;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:728:40: Error: Field '_unique___locales_item_5' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_5;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:729:40: Error: Field '_unique___locales_item_6' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_6;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:730:40: Error: Field '_unique___locales_item_7' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_7;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:731:40: Error: Field '_unique___locales_item_8' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_8;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:732:40: Error: Field '_unique___locales_item_9' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_9;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:733:40: Error: Field '_unique___locales_item_10' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_10;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:734:40: Error: Field '_unique___locales_item_11' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
external ffi.Pointer<__locale_data>? _unique___locales_item_11;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:735:40: Error: Field '_unique___locales_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<__locale_data>? _unique___locales_item_12;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:741:35: Error: Field '_unique___names_item_0' 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_0;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:742:35: Error: Field '_unique___names_item_1' 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_1;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:743:35: Error: Field '_unique___names_item_2' 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_2;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:744:35: Error: Field '_unique___names_item_3' 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_3;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:745:35: Error: Field '_unique___names_item_4' 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_4;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:746:35: Error: Field '_unique___names_item_5' 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_5;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:747:35: Error: Field '_unique___names_item_6' 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_6;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:748:35: Error: Field '_unique___names_item_7' 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_7;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:749:35: Error: Field '_unique___names_item_8' 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_8;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:750:35: Error: Field '_unique___names_item_9' 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_9;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:751:35: Error: Field '_unique___names_item_10' 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_10;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:752:35: Error: Field '_unique___names_item_11' 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_11;
^
../../.pub-cache/hosted/pub.dev/posix-2.2.3/lib/src/string/string.dart:753: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;
^
Error: AOT compilation failed
Bad state: Generating AOT kernel dill failed!
make: *** [all] Error 64