Skip to content

Import all does not work for long packages #724

@AntonPanikov

Description

@AntonPanikov

I have an issue with the code that is compiled properly, but as soon as I open a particular file it is complains that it can not resolve a type and mark is as compile error:

Groovy:unable to resolve class

But it is only marked inside editor, not in problems or in tree and only when file is opened.

It is easy to reproduce:

package main

import test.*
import test.sub.*

class Test {
    static main(args) {
        Imported1 t1 = null
        Imported2 t2 = null
        Imported3 t3 = null
        Imported4 t4 = null
    }
}

and just create 4 empty classes:

package test

class Imported1 {
}
package test

class Imported2 {
}
package test.sub

class Imported3 {
}
package test.sub

class Imported4 {
}

When you open the Test class you will noticed that the first two classes references is fine, while the second two is complaining about:

Groovy:unable to resolve class Imported3
Groovy:unable to resolve class Imported4

I am on 3.1.0.xx-201809172153-e47

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions