eclipse-tycho / tycho

Tycho project repository (tycho)
https://tycho.eclipseprojects.io
Eclipse Public License 2.0
171 stars 193 forks source link

IntelliJ IDEA support #1054

Open lppedd opened 2 years ago

lppedd commented 2 years ago

Hi all! I'm currently trying to understand why Tycho isn't working in IntelliJ IDEA, testing with https://www.eclipse.org/mat/. (see also issue https://youtrack.jetbrains.com/issue/IDEA-186628)

I have managed to debug the IDEA Maven implementation, and this is the call stack just before a dependency is not found.

image

At this point DependencyHelper#hasASolution returns false.

image

Tycho gets called as a Maven extension, via AbstractMavenLifecycleParticipant#afterProjectsRead

image

Question is, how should it be called? Which projects should be passed in the session? One at a time? All? I'm a bit ignorant on how Tycho works so I'm sorry if my question seems a bit stupid.

laeubi commented 2 years ago

Here it's trying to invoke getService(Class), but we only have getService(String)

getService(Class key) is a default implemented interface method.

lppedd commented 2 years ago

@laeubi hi! Yup I checked. But it was added in equinox.p2.core 2.6. I suspect it's loading an old version of equinox p2 for some reason.

Where do you specify the version constraints? E.g. I want only 2.9+. Edit: nevermind found them

lppedd commented 2 years ago

Yes, the interface org.eclipse.equinox.p2.core.IProvisioningAgent is coming from equinox p2 core 2.4.100. Can't understand why. This is giving me headaches lol

image