This repository was archived by the owner on Sep 20, 2022. It is now read-only.
Description Hi! I'm a newbie Deno and WASM developer but I have done some Rust at work. I cannot get your plugin to run on my Mac. I'm happy to help if I can. But please point me in the right direction.
When I build from source I get a warning: unused import: deno_core::plugin_api::Buf. And then, running the script in your README:
% RUST_BACKTRACE=full deno run --unstable --allow-plugin sqlite.ts
thread ' <unnamed>' panicked at ' called `Result::unwrap()` on an `Err` value: Error("expected value", line: 1, column: 1)' , src/lib.rs:42:69
stack backtrace:
0: 0x10f3d34b4 - < std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display> ::fmt::ha0848bb2602b5d05
1: 0x10f3ee170 - core::fmt::write::h9f3ccac2ef682b93
2: 0x10f3d1616 - std::io::Write::write_fmt::h0a47673aab280496
3: 0x10f3d4ce9 - std::panicking::default_hook::{{closure}}::h850c6aaf5e80c2f5
4: 0x10f3d49ad - std::panicking::default_hook::h037801299da6e1c6
5: 0x10f3d536b - std::panicking::rust_panic_with_hook::h76436d4cf7a368ac
6: 0x10f3d4e95 - std::panicking::begin_panic_handler::{{closure}}::h516c76d70abf04f6
7: 0x10f3d3928 - std::sys_common::backtrace::__rust_end_short_backtrace::h653290b4f930faed
8: 0x10f3d4dfa - _rust_begin_unwind
9: 0x10f3f596f - core::panicking::panic_fmt::hde9134dd19c9a74f
10: 0x10f3f5875 - core::option::expect_none_failed::h686aad664d56bca5
11: 0x10f0e8d52 - deno_sqlite_plugin::op_open_connection::h35779a4dc2018cf8
12: 0x10c95b27a - < deno::ops::plugin::PluginInterface as deno_core::plugin_api::Interface> ::register_op::{{closure}}::h41751fa0d0f456df
13: 0x10c81db5b - < alloc::boxed::Box< F> as core::ops::function::Fn< A>> ::call::hcae1c1f896929f2e
14: 0x10c94be57 - deno::metrics::metrics_op::{{closure}}::h539712e871aca35e
15: 0x10c81db5b - < alloc::boxed::Box< F> as core::ops::function::Fn< A>> ::call::hcae1c1f896929f2e
16: 0x10ca06dc9 - < extern " C" fn(A0) .> R as rusty_v8::support::CFnFrom< F>> ::mapping::c_fn::hb7e720bae1d75dac
17: 0x10d02a36f - __ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
18: 0x10d0298d8 - __ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
19: 0x10d028e90 - __ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE
fatal runtime error: failed to initiate panic, error 5
zsh: abort RUST_BACKTRACE=full deno run --unstable --allow-plugin sqlite.ts
The panick seems to be originating from src/lib.rs:42:69 wich reads:
let params: OpOpenConnectionParams = serde_json:: from_slice ( data) . unwrap ( ) ;
It seems to me the data is malformed/unexpected.
Reactions are currently unavailable
Hi! I'm a newbie Deno and WASM developer but I have done some Rust at work. I cannot get your plugin to run on my Mac. I'm happy to help if I can. But please point me in the right direction.
When I build from source I get a
warning: unused import: deno_core::plugin_api::Buf. And then, running the script in your README:The panick seems to be originating from
src/lib.rs:42:69wich reads:deno_sqlite_plugin/src/lib.rs
Line 42 in 2326dff
It seems to me the data is malformed/unexpected.