S5 icon indicating copy to clipboard operation
S5 copied to clipboard

[BUG] S5 Node fails to build on master

Open lukehmcc opened this issue 1 year ago • 0 comments

As workflow run 36, trying to build on main right now fails.

If you run the install instructions:

    git clone https://github.com/s5-dev/s5.git
    cd s5/rust
    cargo build --release
    cp target/release/librust.so ..
    cd ..
    dart compile exe bin/s5_server.dart

It fails with this error:

$ dart compile exe bin/s5_server.dart
lib/rust/bridge_generated.io.dart:63:9: Error: The parameter 'ptr' of the method 'RustWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type, 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'.
 - 'Pointer' is from 'dart:ffi'.
 - 'NativeFunction' is from 'dart:ffi'.
 - 'Bool' is from 'dart:ffi'.
 - 'Int64' is from 'dart:ffi'.
 - 'Void' is from 'dart:ffi'.
Change to a supertype of 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', or, for a covariant parameter, a subtype.
    int ptr,
        ^
../../.pub-cache/hosted/pub.dev/flutter_rust_bridge-1.77.1/lib/src/ffi/stub.dart:21:8: Context: This is the overridden method ('store_dart_post_cobject').
  void store_dart_post_cobject(DartPostCObject ptr) {
       ^
lib/store/fs_provider.dart:49:13: Error: No named parameter with the name 'extraMetadata'.
            extraMetadata: ExtraMetadata({}),
            ^^^^^^^^^^^^^
../../.pub-cache/git/lib5-1ac7b21f6a35b489a0743ed522a33fab2d3c51a6/lib/src/model/metadata/directory.dart:15:3: Context: Found this candidate, but the arguments don't match.
  DirectoryMetadata({
  ^^^^^^^^^^^^^^^^^
Error: AOT compilation failed
Bad state: Generating AOT kernel dill failed!

lukehmcc avatar Aug 09 '24 19:08 lukehmcc