Skip to content

[BUG] S5 Node fails to build on master #30

@lukehmcc

Description

@lukehmcc

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions