-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
wasm-bindgen-wasm-interpreter
can't handle extra block
#3315
Comments
I encountered the This is probably a duplicate of #2673. |
Yeah, I think your issue is the same as #2673 (and #2969), but I'm not so sure about @Niedzwiedzw's. They're using @Niedzwiedzw, could you give some instructions for how to reproduce this? |
Closing in favor of #3421. |
@daxpedda can you re-open this ticket? The OP was actually compiling to I'm running into the exact same issue compiling |
I did some more troubleshooting for this and found that the underlying cause was the When compiling without optimisations mode, this introduces extra In my case, all I needed to do was remove the #[wasm_bindgen]
impl Instance {
/// Wait for the process to exit.
- #[tracing::instrument(level = "debug", skip_all)]
pub async fn wait(self) -> Result<JsOutput, Error> {
+ let _span = tracing::debug_span!("wait").entered();
+
let Instance {
stdin,
stdout, |
Thank you for looking into it! |
wasm-pack build
panics on Installing wasm-bindgen...
stepwasm-bindgen-wasm-interpreter
can't handle extra block
To add additional context since I just investigated this myself (also related to Would it be useful to have an option for the |
It would be nice to do it the other way around: only pass down specific attributes and then optionally include user-specified ones. But I guess that would be a breaking change. I'm happy to review a PR though. |
In my case, it's |
If understand that correctly you are using |
didn't know the order mattered as it was working fine for me. guess I just got super lucky or something like that. Thanks for the tip! |
EDIT: rustwasm/wasm-pack#1229 <- I've opened this issue here to, cause I have no idea what causes the bug
EDIT:
wasm-bindgen/crates/wasm-interpreter/src/lib.rs
Line 367 in 629a623
The text was updated successfully, but these errors were encountered: