IDE does not recommend importing compiler plugin accessors from another package

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

Maintainer thường phản hồi trong vòng 1 ngày

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
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kotlin

Hướng nghiên cứu

Start by reading the compiler plugin code that generates or exposes DataFrame accessors, then trace how IDE import recommendations find accessors across package boundaries. Reproduce the issue with the two interfaces in the report and compare the unresolved reference in package b with the working access in package a. Done when the IDE recommends the needed import for getDf().age from package b.

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

Mô tả

bug Compiler plugin Tooling

To reproduce, create both:

package a

interface A {
    @DataSchema
    interface Age {
        val age: Int
    }

    fun getDf(): DataFrame<Age> =
        dataFrameOf("age" to columnOf(1, 2)).cast()

    fun thisWorks() {
        val ageCol: DataColumn<Int> = getDf().age
    }
}
package b

import a.A

interface B : A {

    fun thisDoesNot() {
        val ageCol = getDf().age // Unresolved reference, no recommended import
    }
}

manually adding import a.* or import a.age fixes the issue.

Ngôn ngữ chính
Kotlin
Star
1.1k
Fork
87
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 Kotlin/dataframe

Tất cả issue của Kotlin/dataframe

Issue tương tự

Thêm issue về Kotlin

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.