Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

could not access: readStream; in class: io.vertx.codegen.type.ApiTypeInfo

Đang mở
#277 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, kotlin
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện lần chạy tạo mã của 4.0.0-SNAPSHOT thông qua Kotlin kapt bằng cách sử dụng CallbackKue.java và JobService, bao gồm các mapper Java JobCodec và package-info.java. Bắt đầu với lỗi ApiTypeInfo.readStream và so sánh cả hai khai báo interface dịch vụ; hoàn thành khi quá trình tạo mã không còn thất bại tại các khai báo đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Trying out the 4.0.0-SNAPSHOT build and while it was working a couple weeks ago I'm now getting this really cryptic error that I haven't been able to pinpoint down to anywhere.

vertx/blueprint/kue/CallbackKue.java:21: error: Could not generate model for io.vertx.blueprint.kue.CallbackKue: [Error: could not access: readStream; in class: io.vertx.codegen.type.ApiTypeInfo]
public interface CallbackKue extends JobService {
       ^
  [Near : {... } ....}]
                  ^
  [Line: 25, Column: 5]

The code is basically just a Kotlin translation of the vertx kue blueprint. The service interfaces are still in Java though. There's a JobCodec in Java I had to add since the codegen doesn't handle Kotlin classes well for DataObjects. Which is why it's using the 4.0.0 version of the code, it uses the new mappers(previously codecs) function in package-info.java. The codegen is getting run by kapt, which was working fine before. The same error happens with both service files, CallbackKueue and JobService if you're familiar with the Kue library. Both basically just point at the interface declaration itself, nowhere useful in particular

Just wondering if you've come across any similar errors while testing the 4.0 branch?

Ngôn ngữ chính
Java
Star
111
Fork
88
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-vertx/vertx-codegen

Tất cả issue của eclipse-vertx/vertx-codegen

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.