Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] invalid result arity: func type returns multiple values (at offset 47) #962

Closed
ratnadeep007 opened this issue Feb 22, 2020 · 3 comments

Comments

@ratnadeep007
Copy link

ratnadeep007 commented Feb 22, 2020

Trying out tutorial in docs rust tutorial.

When using wasm-bindgen and running:

wasmtime --invoke greet ./target/wasm32-wasi/release/hello_world.wasm "wasmtime CLI"

getting following error:

Error: failed to run main module `./target/wasm32-wasi/release/hello_world.wasm`

Caused by:
    invalid result arity: func type returns multiple values (at offset 47)
@alexcrichton
Copy link
Member

Thanks for the report!

The support for interface types is pretty prototypical at this stage and is in a lot of flux. What you may need to do though is to pass --enable-multi-value, although even with that a lot of stars need to align to get everything working just right.

@alexcrichton
Copy link
Member

I'm going to now that we've temporarily removed interface types support, but stay tuned to #677 for future updates!

@ratnadeep007
Copy link
Author

Thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants