We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
when running widget book on Linux I get the following errors:
widgetbook started with:
❯ cd qaul_ui/widgetbook ❯ flutter start
error:
Launching lib/main.dart on Chrome in debug mode... ../packages/qaul_rpc/lib/src/libqaul/libqaul.dart:19:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ Context: The unavailable library 'dart:ffi' is imported through these packages: web_entrypoint.dart => package:widgetbook_workspace => package:qaul_ui => package:qaul_rpc => dart:ffi web_entrypoint.dart => package:widgetbook_workspace => package:qaul_ui => package:qaul_rpc => package:ffi => dart:ffi Detailed import paths for (some of) the these imports: web_entrypoint.dart => package:widgetbook_workspace/main.dart => package:widgetbook_workspace/main.directories.g.dart => package:widgetbook_workspace/force_update_dialog.dart => package:qaul_ui/force_update_overlay.dart => package:qaul_rpc/qaul_rpc.dart => package:qaul_rpc/src/libqaul_worker.dart => package:qaul_rpc/src/libqaul/libqaul.dart => dart:ffi web_entrypoint.dart => package:widgetbook_workspace/main.dart => package:widgetbook_workspace/main.directories.g.dart => package:widgetbook_workspace/force_update_dialog.dart => package:qaul_ui/force_update_overlay.dart => package:qaul_rpc/qaul_rpc.dart => package:qaul_rpc/src/libqaul_worker.dart => package:qaul_rpc/src/libqaul/libqaul.dart => package:ffi/ffi.dart => package:ffi/src/allocation.dart => dart:ffi web_entrypoint.dart => package:widgetbook_workspace/main.dart => package:widgetbook_workspace/main.directories.g.dart => package:widgetbook_workspace/force_update_dialog.dart => package:qaul_ui/force_update_overlay.dart => package:qaul_rpc/qaul_rpc.dart => package:qaul_rpc/src/libqaul_worker.dart => package:qaul_rpc/src/libqaul/libqaul.dart => package:ffi/ffi.dart => package:ffi/src/arena.dart => dart:ffi web_entrypoint.dart => package:widgetbook_workspace/main.dart => package:widgetbook_workspace/main.directories.g.dart => package:widgetbook_workspace/force_update_dialog.dart => package:qaul_ui/force_update_overlay.dart => package:qaul_rpc/qaul_rpc.dart => package:qaul_rpc/src/libqaul_worker.dart => package:qaul_rpc/src/libqaul/libqaul.dart => package:ffi/ffi.dart => package:ffi/src/utf8.dart => dart:ffi web_entrypoint.dart => package:widgetbook_workspace/main.dart => package:widgetbook_workspace/main.directories.g.dart => package:widgetbook_workspace/force_update_dialog.dart => package:qaul_ui/force_update_overlay.dart => package:qaul_rpc/qaul_rpc.dart => package:qaul_rpc/src/libqaul_worker.dart => package:qaul_rpc/src/libqaul/libqaul.dart => package:ffi/ffi.dart => package:ffi/src/utf16.dart => dart:ffi ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:8:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:6:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:11:10: Error: Type 'DynamicLibrary' not found. static DynamicLibrary? _lib; ^^^^^^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:9:29: Error: Type 'Void' not found. typedef StartFunctionRust = Void Function(Pointer<Uint8>); ^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:9:51: Error: Type 'Uint8' not found. typedef StartFunctionRust = Void Function(Pointer<Uint8>); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:9:43: Error: Type 'Pointer' not found. typedef StartFunctionRust = Void Function(Pointer<Uint8>); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:10:51: Error: Type 'Uint8' not found. typedef StartFunctionDart = void Function(Pointer<Uint8>); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:10:43: Error: Type 'Pointer' not found. typedef StartFunctionDart = void Function(Pointer<Uint8>); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:15:36: Error: Type 'Void' not found. typedef StartDesktopFunctionRust = Void Function(); ^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:21:38: Error: Type 'Int32' not found. typedef InitializationFinishedRust = Int32 Function(); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:28:29: Error: Type 'Pointer' not found. typedef HelloFunctionRust = Pointer<Utf8> Function(); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:29:29: Error: Type 'Pointer' not found. typedef HelloFunctionDart = Pointer<Utf8> Function(); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:34:30: Error: Type 'Int32' not found. typedef SendRpcCounterRust = Int32 Function(); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:40:32: Error: Type 'Int32' not found. typedef ReceiveRpcQueuedRust = Int32 Function(); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:46:40: Error: Type 'Int32' not found. typedef SendRpcToLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:46:63: Error: Type 'Uint8' not found. typedef SendRpcToLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:46:55: Error: Type 'Pointer' not found. typedef SendRpcToLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:46:71: Error: Type 'Uint32' not found. typedef SendRpcToLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:47:61: Error: Type 'Uint8' not found. typedef SendRpcToLibqaulFunctionDart = int Function(Pointer<Uint8>, int); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:47:53: Error: Type 'Pointer' not found. typedef SendRpcToLibqaulFunctionDart = int Function(Pointer<Uint8>, int); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:52:45: Error: Type 'Int32' not found. typedef ReceiveRpcFromLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:52:68: Error: Type 'Uint8' not found. typedef ReceiveRpcFromLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:52:60: Error: Type 'Pointer' not found. typedef ReceiveRpcFromLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:52:76: Error: Type 'Uint32' not found. typedef ReceiveRpcFromLibqaulFunctionRust = Int32 Function(Pointer<Uint8>, Uint32); ^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:53:66: Error: Type 'Uint8' not found. typedef ReceiveRpcFromLibqaulFunctionDart = int Function(Pointer<Uint8>, int); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/fii_function_types.dart:53:58: Error: Type 'Pointer' not found. typedef ReceiveRpcFromLibqaulFunctionDart = int Function(Pointer<Uint8>, int); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:9:7: Error: Type 'DynamicLibrary' not found. final DynamicLibrary stdlib = Platform.isWindows ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:13:29: Error: Type 'Pointer' not found. typedef PosixMallocNative = Pointer Function(IntPtr); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:13:46: Error: Type 'IntPtr' not found. typedef PosixMallocNative = Pointer Function(IntPtr); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:14:23: Error: Type 'Pointer' not found. typedef PosixMalloc = Pointer Function(int); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:18:29: Error: Type 'Pointer' not found. typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:18:46: Error: Type 'IntPtr' not found. typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:18:58: Error: Type 'IntPtr' not found. typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:19:23: Error: Type 'Pointer' not found. typedef PosixCalloc = Pointer Function(int num, int size); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:23:27: Error: Type 'Void' not found. typedef PosixFreeNative = Void Function(Pointer); ^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:23:41: Error: Type 'Pointer' not found. typedef PosixFreeNative = Void Function(Pointer); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:24:35: Error: Type 'Pointer' not found. typedef PosixFree = void Function(Pointer); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:25:15: Error: Type 'NativeFunction' not found. final Pointer<NativeFunction<PosixFreeNative>> posixFreePointer = ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:25:7: Error: Type 'Pointer' not found. final Pointer<NativeFunction<PosixFreeNative>> posixFreePointer = ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:29:35: Error: Type 'Pointer' not found. typedef WinCoTaskMemAllocNative = Pointer Function(Size); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:29:52: Error: Type 'Size' not found. typedef WinCoTaskMemAllocNative = Pointer Function(Size); ^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:30:29: Error: Type 'Pointer' not found. typedef WinCoTaskMemAlloc = Pointer Function(int); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:35:34: Error: Type 'Void' not found. typedef WinCoTaskMemFreeNative = Void Function(Pointer); ^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:35:48: Error: Type 'Pointer' not found. typedef WinCoTaskMemFreeNative = Void Function(Pointer); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:36:42: Error: Type 'Pointer' not found. typedef WinCoTaskMemFree = void Function(Pointer); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:37:15: Error: Type 'NativeFunction' not found. final Pointer<NativeFunction<WinCoTaskMemFreeNative>> winCoTaskMemFreePointer = ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:37:7: Error: Type 'Pointer' not found. final Pointer<NativeFunction<WinCoTaskMemFreeNative>> winCoTaskMemFreePointer = ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:48:40: Error: Type 'Allocator' not found. final class MallocAllocator implements Allocator { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:60:3: Error: Type 'Pointer' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:60:33: Error: Type 'NativeType' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:79:13: Error: Type 'Pointer' not found. void free(Pointer pointer) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:115:11: Error: Type 'NativeFinalizerFunction' not found. Pointer<NativeFinalizerFunction> get nativeFree => ^^^^^^^^^^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:115:3: Error: Type 'Pointer' not found. Pointer<NativeFinalizerFunction> get nativeFree => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:134:40: Error: Type 'Allocator' not found. final class CallocAllocator implements Allocator { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:138:20: Error: Type 'Pointer' not found. void _fillMemory(Pointer destination, int length, int fill) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:147:20: Error: Type 'Pointer' not found. void _zeroMemory(Pointer destination, int length) => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:160:3: Error: Type 'Pointer' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:160:33: Error: Type 'NativeType' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:182:13: Error: Type 'Pointer' not found. void free(Pointer pointer) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:218:11: Error: Type 'NativeFinalizerFunction' not found. Pointer<NativeFinalizerFunction> get nativeFree => ^^^^^^^^^^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:218:3: Error: Type 'Pointer' not found. Pointer<NativeFinalizerFunction> get nativeFree => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:24:24: Error: Type 'Allocator' not found. class Arena implements Allocator { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:26:9: Error: Type 'Allocator' not found. final Allocator _wrappedAllocator; ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:29:22: Error: Type 'NativeType' not found. final List<Pointer<NativeType>> _managedMemoryPointers = []; ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:29:14: Error: Type 'Pointer' not found. final List<Pointer<NativeType>> _managedMemoryPointers = []; ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:40:10: Error: Type 'Allocator' not found. Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator; ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:50:3: Error: Type 'Pointer' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:50:33: Error: Type 'NativeType' not found. Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) { ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:101:21: Error: Type 'NativeType' not found. void free(Pointer<NativeType> pointer) {} ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:101:13: Error: Type 'Pointer' not found. void free(Pointer<NativeType> pointer) {} ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:120:6: Error: Type 'Allocator' not found. [Allocator wrappedAllocator = calloc]) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:144:6: Error: Type 'Allocator' not found. [Allocator wrappedAllocator = calloc]) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:16:26: Error: Type 'Opaque' not found. final class Utf8 extends Opaque {} ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:19:26: Error: Type 'Pointer' not found. extension Utf8Pointer on Pointer<Utf8> { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:52:30: Error: Type 'Uint8' not found. static int _length(Pointer<Uint8> codeUnits) { ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:52:22: Error: Type 'Pointer' not found. static int _length(Pointer<Uint8> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:81:3: Error: Type 'Pointer' not found. Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:81:31: Error: Type 'Allocator' not found. Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:16:27: Error: Type 'Opaque' not found. final class Utf16 extends Opaque {} ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:19:27: Error: Type 'Pointer' not found. extension Utf16Pointer on Pointer<Utf16> { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:52:46: Error: Type 'Uint16' not found. static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) => ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:52:38: Error: Type 'Pointer' not found. static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:55:48: Error: Type 'Uint16' not found. static String _toUnknownLengthString(Pointer<Uint16> codeUnits) { ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:55:40: Error: Type 'Pointer' not found. static String _toUnknownLengthString(Pointer<Uint16> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:68:30: Error: Type 'Uint16' not found. static int _length(Pointer<Uint16> codeUnits) { ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:68:22: Error: Type 'Pointer' not found. static int _length(Pointer<Uint16> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:93:3: Error: Type 'Pointer' not found. Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:93:33: Error: Type 'Allocator' not found. Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) { ^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:11:10: Error: 'DynamicLibrary' isn't a type. static DynamicLibrary? _lib; ^^^^^^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:32:16: Error: The getter 'DynamicLibrary' isn't defined for the class 'LibqaulFFI'. - 'LibqaulFFI' is from 'package:qaul_rpc/src/libqaul/libqaul.dart' ('../packages/qaul_rpc/lib/src/libqaul/libqaul.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'DynamicLibrary'. _lib = DynamicLibrary.open('../rust/target/$mode/liblibqaul.so'); ^^^^^^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:38:14: Error: The getter 'DynamicLibrary' isn't defined for the class 'LibqaulFFI'. - 'LibqaulFFI' is from 'package:qaul_rpc/src/libqaul/libqaul.dart' ('../packages/qaul_rpc/lib/src/libqaul/libqaul.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'DynamicLibrary'. _lib = DynamicLibrary.open('libqaul.dylib'); ^^^^^^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:42:14: Error: The getter 'DynamicLibrary' isn't defined for the class 'LibqaulFFI'. - 'LibqaulFFI' is from 'package:qaul_rpc/src/libqaul/libqaul.dart' ('../packages/qaul_rpc/lib/src/libqaul/libqaul.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'DynamicLibrary'. _lib = DynamicLibrary.open(lib); ^^^^^^^^^^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:66:29: Error: 'Uint8' isn't a type. final buffer = malloc<Uint8>(pathBytes.length); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:66:28: Error: The method 'call' isn't defined for the class 'MallocAllocator'. - 'MallocAllocator' is from 'package:ffi/src/allocation.dart' ('../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart'). Try correcting the name to the name of an existing method, or defining a method named 'call'. final buffer = malloc<Uint8>(pathBytes.length); ^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:133:27: Error: 'Uint8' isn't a type. final buffer = malloc<Uint8>(message.length); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:133:26: Error: The method 'call' isn't defined for the class 'MallocAllocator'. - 'MallocAllocator' is from 'package:ffi/src/allocation.dart' ('../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart'). Try correcting the name to the name of an existing method, or defining a method named 'call'. final buffer = malloc<Uint8>(message.length); ^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:173:27: Error: 'Uint8' isn't a type. final buffer = malloc<Uint8>(bufferSize); ^^^^^ ../packages/qaul_rpc/lib/src/libqaul/ffi.dart:173:26: Error: The method 'call' isn't defined for the class 'MallocAllocator'. - 'MallocAllocator' is from 'package:ffi/src/allocation.dart' ('../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart'). Try correcting the name to the name of an existing method, or defining a method named 'call'. final buffer = malloc<Uint8>(bufferSize); ^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:9:7: Error: 'DynamicLibrary' isn't a type. final DynamicLibrary stdlib = Platform.isWindows ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:10:7: Error: Undefined name 'DynamicLibrary'. ? DynamicLibrary.open('ole32.dll') ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:11:7: Error: Undefined name 'DynamicLibrary'. : DynamicLibrary.process(); ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:25:15: Error: 'NativeFunction' isn't a type. final Pointer<NativeFunction<PosixFreeNative>> posixFreePointer = ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:25:7: Error: 'Pointer' isn't a type. final Pointer<NativeFunction<PosixFreeNative>> posixFreePointer = ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:37:15: Error: 'NativeFunction' isn't a type. final Pointer<NativeFunction<WinCoTaskMemFreeNative>> winCoTaskMemFreePointer = ^^^^^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:37:7: Error: 'Pointer' isn't a type. final Pointer<NativeFunction<WinCoTaskMemFreeNative>> winCoTaskMemFreePointer = ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:61:5: Error: 'Pointer' isn't a type. Pointer<T> result; ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:79:13: Error: 'Pointer' isn't a type. void free(Pointer pointer) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:138:20: Error: 'Pointer' isn't a type. void _fillMemory(Pointer destination, int length, int fill) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:139:34: Error: 'Uint8' isn't a type. final ptr = destination.cast<Uint8>(); ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:147:20: Error: 'Pointer' isn't a type. void _zeroMemory(Pointer destination, int length) => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:161:5: Error: 'Pointer' isn't a type. Pointer<T> result; ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:182:13: Error: 'Pointer' isn't a type. void free(Pointer pointer) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:26:9: Error: 'Allocator' isn't a type. final Allocator _wrappedAllocator; ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:29:22: Error: 'NativeType' isn't a type. final List<Pointer<NativeType>> _managedMemoryPointers = []; ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:29:14: Error: 'Pointer' isn't a type. final List<Pointer<NativeType>> _managedMemoryPointers = []; ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:40:10: Error: 'Allocator' isn't a type. Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator; ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:101:21: Error: 'NativeType' isn't a type. void free(Pointer<NativeType> pointer) {} ^^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:101:13: Error: 'Pointer' isn't a type. void free(Pointer<NativeType> pointer) {} ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:120:6: Error: 'Allocator' isn't a type. [Allocator wrappedAllocator = calloc]) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:144:6: Error: 'Allocator' isn't a type. [Allocator wrappedAllocator = calloc]) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:26:28: Error: 'Uint8' isn't a type. final codeUnits = cast<Uint8>(); ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:43:28: Error: 'Uint8' isn't a type. final codeUnits = cast<Uint8>(); ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:52:30: Error: 'Uint8' isn't a type. static int _length(Pointer<Uint8> codeUnits) { ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:52:22: Error: 'Pointer' isn't a type. static int _length(Pointer<Uint8> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:81:31: Error: 'Allocator' isn't a type. Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:83:19: Error: 'Uint8' isn't a type. final Pointer<Uint8> result = allocator<Uint8>(units.length + 1); ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:83:11: Error: 'Pointer' isn't a type. final Pointer<Uint8> result = allocator<Uint8>(units.length + 1); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf8.dart:83:45: Error: 'Uint8' isn't a type. final Pointer<Uint8> result = allocator<Uint8>(units.length + 1); ^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:26:28: Error: 'Uint16' isn't a type. final codeUnits = cast<Uint16>(); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:43:28: Error: 'Uint16' isn't a type. final codeUnits = cast<Uint16>(); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:52:46: Error: 'Uint16' isn't a type. static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) => ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:52:38: Error: 'Pointer' isn't a type. static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) => ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:55:48: Error: 'Uint16' isn't a type. static String _toUnknownLengthString(Pointer<Uint16> codeUnits) { ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:55:40: Error: 'Pointer' isn't a type. static String _toUnknownLengthString(Pointer<Uint16> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:68:30: Error: 'Uint16' isn't a type. static int _length(Pointer<Uint16> codeUnits) { ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:68:22: Error: 'Pointer' isn't a type. static int _length(Pointer<Uint16> codeUnits) { ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:93:33: Error: 'Allocator' isn't a type. Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) { ^^^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:95:19: Error: 'Uint16' isn't a type. final Pointer<Uint16> result = allocator<Uint16>(units.length + 1); ^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:95:11: Error: 'Pointer' isn't a type. final Pointer<Uint16> result = allocator<Uint16>(units.length + 1); ^^^^^^^ ../../../../../.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:95:46: Error: 'Uint16' isn't a type. final Pointer<Uint16> result = allocator<Uint16>(units.length + 1); ^^^^^^ Unhandled exception: Unsupported operation: Unsupported invalid type InvalidType(<invalid>) (InvalidType). Encountered while compiling file:///home/sojus/src/qaul/qaul-libp2p_clean/qaul_ui/packages/qaul_rpc/lib/src/libqaul/libqaul.dart, which contains the type: FunctionType(<invalid> Function(<invalid>)). #0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3678) #1 ProgramCompiler._newEmitType (package:dev_compiler/src/kernel/compiler.dart:3471) #2 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3379) #3 ProgramCompiler._emitArgumentList (package:dev_compiler/src/kernel/compiler.dart:6825) #4 ProgramCompiler._emitMethodCall (package:dev_compiler/src/kernel/compiler.dart:5774) #5 ProgramCompiler.visitDynamicInvocation (package:dev_compiler/src/kernel/compiler.dart:5678) #6 DynamicInvocation.accept (package:kernel/ast.dart:5571) #7 ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:4611) #8 ProgramCompiler._visitInitializer (package:dev_compiler/src/kernel/compiler.dart:2204) #9 ProgramCompiler.visitVariableDeclaration (package:dev_compiler/src/kernel/compiler.dart:5314) #10 VariableDeclaration.accept (package:kernel/ast.dart:10744) #11 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:4520) #12 MappedListIterable.elementAt (dart:_internal/iterable.dart:425) #13 ListIterator.moveNext (dart:_internal/iterable.dart:354) #14 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189) #15 new _GrowableList.of (dart:core-patch/growable_array.dart:150) #16 new List.of (dart:core-patch/array_patch.dart:39) #17 SetBase.toList (dart:collection/set.dart:119) #18 ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:4701) #19 Block.accept (package:kernel/ast.dart:9195) #20 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:4520) #21 ProgramCompiler._visitScope (package:dev_compiler/src/kernel/compiler.dart:5171) #22 ProgramCompiler.visitIfStatement (package:dev_compiler/src/kernel/compiler.dart:5160) #23 IfStatement.accept (package:kernel/ast.dart:10096) #24 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:4520) #25 MappedListIterable.elementAt (dart:_internal/iterable.dart:425) #26 ListIterator.moveNext (dart:_internal/iterable.dart:354) #27 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189) #28 new _GrowableList.of (dart:core-patch/growable_array.dart:150) #29 new List.of (dart:core-patch/array_patch.dart:39) #30 SetBase.toList (dart:collection/set.dart:119) #31 ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:4701) #32 Block.accept (package:kernel/ast.dart:9195) #33 ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:4520) #34 ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:4553) #35 ProgramCompiler._emitGeneratorFunctionExpression.emitGeneratorFn.<anonymous closure>.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:4129) #36 ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2829) #37 ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:4296) #38 ProgramCompiler._emitGeneratorFunctionExpression.emitGeneratorFn.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:4128) #39 ProgramCompiler._superDisallowed (package:dev_compiler/src/kernel/compiler.dart:4307) #40 ProgramCompiler._emitGeneratorFunctionExpression.emitGeneratorFn (package:dev_compiler/src/kernel/compiler.dart:4123) #41 ProgramCompiler._emitGeneratorFunctionExpression (package:dev_compiler/src/kernel/compiler.dart:4221) #42 ProgramCompiler._emitGeneratorFunctionBody (package:dev_compiler/src/kernel/compiler.dart:4282) #43 ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:4061) #44 ProgramCompiler._emitMethodDeclaration.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:2392) #45 ProgramCompiler._withMethodDeclarationContext (package:dev_compiler/src/kernel/compiler.dart:4323) #46 ProgramCompiler._emitMethodDeclaration (package:dev_compiler/src/kernel/compiler.dart:2391) #47 ProgramCompiler._emitClassMethods (package:dev_compiler/src/kernel/compiler.dart:2332) #48 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:932) #49 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:846) #50 List.forEach (dart:core-patch/growable_array.dart:416) #51 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:784) #52 List.forEach (dart:core-patch/growable_array.dart:416) #53 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:505) #54 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:223) #55 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:794) <asynchronous suspension> #56 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:654) <asynchronous suspension> #57 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1303) <asynchronous suspension> the Dart compiler exited unexpectedly. Waiting for connection from debug service on Chrome... 24.1s Failed to compile application.
❯ flutter --version Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 54e66469a9 (3 weeks ago) • 2024-04-17 13:08:03 -0700 Engine • revision c4cd48e186 Tools • Dart 3.3.4 • DevTools 2.31.1
The text was updated successfully, but these errors were encountered:
brenodt
No branches or pull requests
when running widget book on Linux I get the following errors:
widgetbook started with:
error:
The text was updated successfully, but these errors were encountered: