Skip to content

'Go To Type ' not working for srcDirs with include #421

@markokaestner

Description

@markokaestner

I have a multi-module project which has only one src directory for all subprojects. The srcDirs then use an include to select the correct packages:

subprojects {
    sourceSets {
        main {
            java {
                srcDirs = ["${rootDir}/src/main/java"]
                include 'some/common/prefix/' + project.name.replace('-', '/') + '/**'
            }
        }
    }
}

This works as far as all packages, that are not included, are empty in the project view. Java files in included packages are correctly shown in the project view.

If I try to open a class that I can clearly see in the project view via "Go To Type", the class is not found. This also affects imports of classes from the same subproject. The imports are highlighted with "package not found".

issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions