IDE does not recommend importing compiler plugin accessors from another package

Aperta
#2,197 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
kotlin

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Kotlin
Stelle
1.1k
Fork
87
Merge medio
2g 21h
PR unite (30g)
40

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kotlin/dataframe

Tutte le issue di Kotlin/dataframe

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.