Skip to content

Failed to update function while generating types for wasi:http/[email protected] #603

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

Open
vados-cosmonic opened this issue Mar 19, 2025 · 0 comments

Comments

@vados-cosmonic
Copy link
Collaborator

While wasi:http/[email protected] works fine, version 0.2.4 seems to be broken w/ current bindgen code.

To reproduce

  • Create a new jco project
  • Fill out wit/component.wit (see below)
  • Use wkg wit fetch to retrieve dependencies
  • Run jco types -o generated wit/
// wit/component.wit
world component {
    export wasi:http/incoming-handler@0.2.4;
}

You should see the following error:

❯ jco types -o generated-wit wit
(jco types) ComponentError: failed to update function `[static]outgoing-body.finish`
    at generateTypes (file:///path/to/jco/obj/js-component-bindgen-component.js:3894:11)
    at typesComponent (file:///path/to/jco/src/cmd/transpile.js:54:29)
    at async types (file:///path/to/jco/src/cmd/transpile.js:18:17)
    at async file:///path/to/jco/src/jco.js:200:9
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

1 participant