Community
Participate
Working Groups
Hello If you add a project to a run configuration and the added project has a dependency to a project that is already in the run configuration, then that project is added again and the list becomes erratic. Actions to reproduce: [A1] Create a Java project "TestProjectA" with a main class. [A2] Create a Java project "TestProjectB". [A3] Add "TestProjectA" to the classpath "TestProjectB" [A4] Create a new run configuration "TestProjectARunConfig" with "TestProjectA" as the Main Project and its main class as main class. [A5] Go to the Dependency view of "TestProjectARunConfig" [A6] Add the Project "TestProjectB" to the classpath of "TestProjectARunConfig". The checkbox "Add required Projects of selected Projects" in the Project Selection dialog has to be checked. What is Observed [O1] Project "TestProjectA" is created. [O2] Project "TestProjectB" is created. [O3] Dependency is added. [O4] The run configuration "TestProjectARunConfig" is created [O5] The Dependency view displays "TestProjectA" and the jdk in the classpath. [O6] The Dependency view displays "TestProjectB" [OK] and "TestProjectA" twice [NOK]. The second "TestProjectA" behaves erratic when trying to move [NOK] What I Expect [E6] Only "TestProjectB" is added since "TestProjectA" is already in the list How the issue heals: - select another run configuration and switch back again. My eclipse version: Version: 2019-06 (4.12) Build id: 20190614-1200
Created attachment 279245 [details] result after A6
I can reproduce this. But this does not look like new problem. I was able to reproduce on older builds also. Putting on 4.13 list but not sure will be able to work on this.
If someone can work on this bug?
reproducible with eclipse 2019-12
Retested this with Eclipse 2021-03. The issue is unchanged. The issue occurs only with java9+
Will try to work on this.
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/187301
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/187301 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=f615f802cefb1665b7d76786bb7542ec2ca626d9
I20211109-1800