Before submitting your bug report
Relevant environment info
- OS: Win11
- Continue version: 1.0.59
- IDE version: IntelliJ 2025.3.2
Description
Using IntelliJ and multiple Maven projects, we have the following setup:
projects
- unrelated_projects
- related-project1 (Contains .idea folder)
- related-project2
- related-project3
- related-project4
We open related-project1 in IntelliJ. Then we add more Maven projects using Maven --> Add Maven Projects: related-project2 and related-project3, related-project4.
The agent seems unable to access files in the proper project folder. Working on files in project2, it apparently tries to resolve paths against project3.
For example:
I instructed the agent to create a file next to a file in project2. The file was created in project3.
Then I ask the agent what files are next to @Current File (project 2), it lists the file it just created in project3 instead of files in project 2.
To reproduce
No response
Log output
"function": {
"name": "ls",
"arguments": "{\"dirPath\":\"app/src/main/kotlin/com/example/proejct2\"}"
}
Looking at IntelliJ's misc.xml files which keeps track of the loaded Maven projects, I notice that project3 is listed last:
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
<option value="$PROJECT_DIR$/../related-project2/pom.xml" />
<option value="$PROJECT_DIR$/../related-project4/pom.xml" />
<option value="$PROJECT_DIR$/../related-project3/pom.xml" />
</list>
</option>
</component>
Before submitting your bug report
Relevant environment info
Description
Using IntelliJ and multiple Maven projects, we have the following setup:
We open
related-project1in IntelliJ. Then we add more Maven projects usingMaven --> Add Maven Projects:related-project2andrelated-project3,related-project4.The agent seems unable to access files in the proper project folder. Working on files in project2, it apparently tries to resolve paths against project3.
For example:
I instructed the agent to create a file next to a file in project2. The file was created in project3.
Then I ask the agent what files are next to
@Current File(project 2), it lists the file it just created in project3 instead of files in project 2.To reproduce
No response
Log output
Looking at IntelliJ's
misc.xmlfiles which keeps track of the loaded Maven projects, I notice thatproject3is listed last: