[error reporting]
Launching lib/main.dart on Linux in debug mode...
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
ERROR: lib/bridge_generated.dart:837:9: Error: The parameter 'ptr' of the method 'FlutterRustBridgeExampleWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type, 'Pointer<NativeFunction<Bool Function(Int64, Pointer)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'.
ERROR: - 'Pointer' is from 'dart:ffi'.
ERROR: - 'NativeFunction' is from 'dart:ffi'.
ERROR: - 'Bool' is from 'dart:ffi'.
ERROR: - 'Int64' is from 'dart:ffi'.
ERROR: - 'Void' is from 'dart:ffi'.
ERROR: Change to a supertype of 'Pointer<NativeFunction<Bool Function(Int64, Pointer)>>', or, for a covariant parameter, a subtype.
ERROR: int ptr,
ERROR: ^
ERROR: ../../frb_dart/lib/src/basic.dart:153:8: Context: This is the overridden method ('store_dart_post_cobject').
ERROR: void store_dart_post_cobject(
ERROR: ^
Building Linux application...
Exception: Build process failed
[Solution]
$ export REPO_DIR=$PWD
$ cd /
$ flutter_rust_bridge_codegen \
--rust-input $REPO_DIR/rust/src/api.rs \
--dart-output $REPO_DIR/lib/bridge_generated.dart \
--c-output $REPO_DIR/ios/Classes/bridge_generated.h
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Picked config: Opts { rust_input_path: "/home/consulting/Documents/native_add/rust/src/api.rs", dart_output_path: "/home/consulting/Documents/native_add/lib/bridge_generated.dart", c_output_path: "/home/consulting/Documents/native_add/ios/Classes/bridge_generated.h", rust_crate_dir: "/home/consulting/Documents/native_add/rust", rust_output_path: "/home/consulting/Documents/native_add/rust/src/bridge_generated.rs", class_name: "NativeAdd", dart_format_line_length: 80, skip_add_mod_to_lib: false }
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Parse source code to AST
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Parse AST to IR
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Transform IR
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Generate Rust code
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Generate Dart code
[2021-10-22T14:39:33Z INFO flutter_rust_bridge_codegen] Phase: Other things
[2021-10-22T14:39:34Z INFO flutter_rust_bridge_codegen] Success! Now go and use it :)
$ cd $REPO_DIR
Read More:
- [Solved] PCL Install error: ‘shared_ptr’ does not name a type
- [Solved] Loadrunner Error: with parameter delimiters is not a parameter.
- [GNS3 router and cloud times error] error while sending commadn ‘bridge add_nio_ethernet
- [Solved] failed to set bridge addr: “cni0“ already has an IP address different from xxxx
- [Solved] docker Error: bridge docker0 failed: exchange full
- [Solved] Communications–8–Generated resource conflict: two resources of the same name: /Radioxx
- Sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers [Solved]
- [Solved] MindSpore Error: Data type conversion of ‘Parameter’ is not supporte
- [Solved] sending const NSString * to parameter of type NSString * discards qualifiers
- Python3: Str.format Keyerror Solution for incoming parameter error
- [Solved] HALCON error #5190: Invalid window parameter
- [Solved] C + + compile Error: error: default argument given for parameter 3
- [Solved] Error d8021: invalid numeric parameter “/wno CPP” cython_bbox
- [Solved] MXNet Error: ImportError: cannot import name _LIB
- Template argument deduction/substitution failed: couldn‘t deduce template parameter [How to Solve]
- How to Solve setsupportactionbar parameter Error
- TypeException: Error setting non null for parameter #1 with JdbcType null
- Vue require Error: node_modules/babel-loader/lib
- Wechat Applet error: [app.json file content error] app json: [“usingComponents“][“van-button“]: “@vant/weapp/lib/button/index
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]