wit-bindgen-go crashes with error-context type
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by running the documented go run ./cmd/wit-bindgen-go generate poc.wit reproduction and inspect how the generator handles the wit.ErrorContext primitive. Done means the same WIT input generates Go bindings successfully without the reported panic.
Written by the indexing model from the issue text.
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
- Dominant language
- Go
- Stars
- 148
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bytecodealliance/go-modules
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
bytecodealliance/go-modules#428 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
bytecodealliance/go-modules#410 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
bytecodealliance/go-modules#394 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
bytecodealliance/go-modules#377 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
bytecodealliance/go-modules#371 · 3 comments ·
All issues in bytecodealliance/go-modules
Similar issues
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
apimachinery yaml: YAMLOrJSONDecoder drops a trailing document shorter than 4 bytesPossibly taken @HosniBelfeki claimed this today. Openneeds-triage sig/api-machinery
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes/kubernetes#142651 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kubernetes-sigs/kueue#16649 ·
Maintainers usually reply within 1 day
-
bug(services): classifySBOMStatus misclassifies UnsupportedSchema as generic ReasonSBOMGenerationFailedPossibly taken @bhuvan-somisetty claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day