Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

wit-bindgen-go crashes with error-context type #411

Open

Description

Generating Go bindings for any WIT that mentions error-context crashes with BUG: unknown wit.Primitive *wit.ErrorContext

Steps-To-Reproduce

go run ./cmd/wit-bindgen-go \
 generate \
 poc.wit

poc.wit (validated by wasm-tools component wit)

package demo:demo;
world demo {
 export foo: func() -> error-context;
}

Expected

writes generated Go bindings successfully.

Actual

crashes with panic: BUG: unknown wit.Primitive *wit.ErrorContext.

Environment

ubuntu 22.04, x86-64, Go 1.24.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /