wit-bindgen-go crashes with error-context type
还没有人认领这个 Issue。
评估
调研方向
首先运行文档中记录的复现命令 go run ./cmd/wit-bindgen-go generate poc.wit,并检查生成器如何处理原语 wit.ErrorContext。完成的标准是:相同的 WIT 输入能够成功生成 Go 绑定,且不再出现报告中的 panic。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Go
- 星标
- 148
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bytecodealliance/go-modules 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 48/100
bytecodealliance/go-modules#428 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
bytecodealliance/go-modules#410 ·
-
难度 4/5 3-5 天 新手友好度 48/100
bytecodealliance/go-modules#394 ·
-
难度 3/5 1-2 天 新手友好度 38/100
bytecodealliance/go-modules#377 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
bytecodealliance/go-modules#371 · 3 条评论 ·
查看 bytecodealliance/go-modules 的全部 Issue
相似的 Issue
-
feedback laptop
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Validator client startup retry loop ignores context cancellation until the reconnect backoff expires未关闭
难度 2/5 1-3 小时 新手友好度 88/100
OffchainLabs/prysm#17596 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
status: ready for dev
难度 1/5 1-3 小时 新手友好度 92/100
hyperledger-labs/fabric-smart-client#2004 ·
维护者通常 1 天内回复