SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Error publishing rust server module on current master

Open allisoneer opened this issue 2 years ago • 1 comments

Following the Rust Module Quickstart and getting the following error once attempting to do: spacetime publish --project-path server <module-name>

Error: Error while importing "spacetime"."_delete_by_col_eq": unknown import. Expected Function(FunctionType { params: [I32, I32, I32, I32, I32], results: [I32] })

I checked out v0.7.1-beta and no error. I suspect master is expected to be broken but I didn't know if this would be helpful to have reported anyway.

Here is the relevant code in case it's helpful: https://github.com/clockworklabs/SpacetimeDB/blob/master/crates/bindings-sys/src/lib.rs#L140-L146

Maybe related to the new types? https://github.com/clockworklabs/SpacetimeDB/commit/cba518d90e58ea2e38e154fbd0d20b6daa0cd452

allisoneer avatar Oct 28 '23 02:10 allisoneer

I'm getting a similar error:

Error: failed to get or launch module host: unknown import: `spacetime_10.0::datastore_update_bsatn` has not been defined

hardliner66 avatar Mar 03 '25 11:03 hardliner66