The main package contains no worlds
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu với bản tái hiện được liên kết trong issue và lệnh go tool wit-bindgen-go generate --out internal ./wit. Sau đó kiểm tra wit/bindgen/generator.go quanh dòng 2416, nơi witText được tạo. Được xem là hoàn tất khi WIT được tạo có một package chính hợp lệ với một world và lệnh không còn báo rằng package không chứa worlds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm encountering behavior that I don't understand in the latest version of wit-bindgen-go.
I've created a detailed reproduction and summary here
Here's a brief summary:
When I run go tool wit-bindgen-go generate --out internal ./wit I get the following output:
Generated WIT for custom section:
package wasi:[email protected];
interface wall-clock {
/// A time and date in seconds plus nanoseconds.
record datetime {
seconds: u64,
nanoseconds: u32,
}
now: func() -> datetime;
resolution: func() -> datetime;
}
package wasi:[email protected] {
...
}
package wasi:[email protected] {
...
}
error: wasm-tools: error: The main package `wasi:[email protected]` contains no worlds
Something I noticed in the output: Both the filesystem package and the io package enclose their interfaces with brackets, while the clocks package ends with a semicolon and its corresponding interface is placed below it:
package wasi:[email protected];
<INTERFACES>
package wasi:[email protected] {
<INTERFACES>
}
package wasi:[email protected] {
<INTERFACES>
}
I tried manually creating the wasi:clocks package in a WIT file and tried inserting the file data in place of the witText variable here; however, it then complains about not having a package header:
error: wasm-tools: error: no `package` header was found in any WIT file for this package
If I try to add a generic package header, we get another "package contains no worlds" error:
error: wasm-tools: error: The main package `foo:[email protected]` contains no worlds
- Ngôn ngữ chính
- Go
- Star
- 148
- Fork
- 20
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/go-modules
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
bytecodealliance/go-modules#428 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
bytecodealliance/go-modules#411 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
bytecodealliance/go-modules#410 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
bytecodealliance/go-modules#394 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
bytecodealliance/go-modules#371 · 3 bình luận ·
Tất cả issue của bytecodealliance/go-modules
Issue tương tự
-
area: global bug dx priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
grafana/mcp-grafana#1267 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
coverage-gap good-first-pattern help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleCloudPlatform/k8s-aibom#114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
txn2/mcp-data-platform#1984 ·
Maintainer thường phản hồi trong vòng 1 ngày