-
Notifications
You must be signed in to change notification settings - Fork 27
Description
If you have PDE projects with Maven nature (configured with Tycho), and you try to debug, e.g. a JUnit Test Case in a .tests project that tests a Java class in another project, then JDT debugger cannot find the sources of the classes of other projects (nor sources of possible dependencies used by the classes under test) if you have "Tycho Project Configurators" installed in your Eclipse.
For example, take the projects found here: https://github.com/LorenzoBettini/tycho-simple-example
- if you do NOT have Tycho Project Configurators installed, then you can set a break point in
MyClass(in project example.plugin) and you can debug such class running the JUnit testMyClassTestin the project example.tests: the debugger can seamlessly find the sources ofMyClass. - If you install Tycho Project Configurators installed, then, during debugging the JUnit Test Case, the source of
MyClasscannot be found.
Note that if this happens, and you uninstall the Tycho Project Configurators, debugger will work again (it will find the sources) ONLY if you use another fresh workspace or if you first remove a few folders in the .metadata directory (I did some tests and I had to remove .jdt., .debug. and .m2e.). Since I found no file left from the Tycho Project Configurators in the .metadata directory, can it be that m2eclipse-tycho interferes with some JDT indexes?
I'm using Eclipse Neon 2 and the Tycho Project Configurators taken from http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.9.0/N/LATEST