Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Unable to use the Java source file corresponding to the class file as context #180

@chenweiye120

Description

@chenweiye120

Hello, the platform is: Eclipse 4.39 + Copilot 0.16.0.

When importing a plugin project, if the imported project only contains JAR files and does not include source code, Eclipse can open the class file and display the source files associated with that JAR. However, in Copilot, the source file corresponding to that class file cannot be selected as the AI's context. If Copilot is prompted at this point, it will search for the Java file, but the Java file is not in the project. The output will be:
...
Searched for files matching query: org.eclipse.core.resources/*/.java
Read directory org.eclipse.core.resources
...
In other words, the corresponding Java file cannot be found for analysis. Therefore, the AI ​​cannot read the Java file corresponding to the class file and cannot use it as context for analysis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions