Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355759 - AJDT won't install on Eclipse 4
Summary: AJDT won't install on Eclipse 4
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 16:21 EDT by Dan Bullok CLA
Modified: 2012-02-03 19:56 EST (History)
4 users (show)

See Also:


Attachments
Patch to get AJDT working on Eclipse 4.2. (14.45 KB, text/plain)
2011-09-23 11:31 EDT, Andrew Eisenberg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Bullok CLA 2011-08-24 16:21:44 EDT
Build Identifier: I20110805-1200

I've switched to using Eclipse 4, and all of my add-ons work fine except for AJDT.  From my (rather novice) investigation, it appears that AJDT specifically disallows installation on anything later than Eclipse 3.7.  My understanding is that Eclipse 4 has a compatibility layer that is designed to ensure compatibility for anything that cleanly uses the Eclipse 3 API.  So, unless there is a known incompatibility with Eclipse 4 (which means the e4 people want to know about it:   http://ericoneclipse.blogspot.com/2011/06/eclipse-4-ships-with-indigo.html ), it would seem that the AJDT package is inappropriately restricting the version number of Eclipse that it will run on.



Reproducible: Always

Steps to Reproduce:
1. Add the update site:  http://download.eclipse.org/tools/ajdt/37/update
2. Try to install "AspectJ Development Tools".
3. Installation fails, with the following message:

Cannot complete the install because of a conflicting dependency.
  Software being installed: AspectJ Development Tools 2.1.3.e37x-20110628-1900 (org.eclipse.ajdt.feature.group 2.1.3.e37x-20110628-1900)
  Software currently installed: Eclipse SDK 4.2.0.I20110805-1200 (org.eclipse.sdk.ide 4.2.0.I20110805-1200)
  Only one of the following can be installed at once: 
    Eclipse IDE UI 3.8.0.v20110726-1222 (org.eclipse.ui.ide 3.8.0.v20110726-1222)
    Eclipse IDE UI 3.7.0.I20110519-0100 (org.eclipse.ui.ide 3.7.0.I20110519-0100)
  Cannot satisfy dependency:
    From: AspectJ Development Tools 2.1.3.e37x-20110628-1900 (org.eclipse.ajdt.feature.group 2.1.3.e37x-20110628-1900)
    To: org.eclipse.ajdt.mylyn.ui [2.1.3.e37x-20110628-1900]
  Cannot satisfy dependency:
    From: Mylyn-AJDT Bridge Plug-in 2.1.3.e37x-20110628-1900 (org.eclipse.ajdt.mylyn.ui 2.1.3.e37x-20110628-1900)
    To: bundle org.eclipse.ui.ide [3.6.0,3.8.0)
  Cannot satisfy dependency:
    From: Eclipse Platform 4.1.0.v20110612-1800-9JEzH1QFo6HMiM3z-elb3_ABz0ST27N22TwnhWd9uqvPE (org.eclipse.platform.feature.group 4.1.0.v20110612-1800-9JEzH1QFo6HMiM3z-elb3_ABz0ST27N22TwnhWd9uqvPE)
    To: org.eclipse.ui.ide [3.8.0.v20110726-1222]
  Cannot satisfy dependency:
    From: Eclipse Project SDK 4.1.0.v20110612-1800-7T7jA7F8Yx_SlNdrz-IMZnZlz04ov6SOtpsF9RmKy0A8z (org.eclipse.sdk.feature.group 4.1.0.v20110612-1800-7T7jA7F8Yx_SlNdrz-IMZnZlz04ov6SOtpsF9RmKy0A8z)
    To: org.eclipse.platform.feature.group [4.1.0.v20110612-1800-9JEzH1QFo6HMiM3z-elb3_ABz0ST27N22TwnhWd9uqvPE]
  Cannot satisfy dependency:
    From: Eclipse SDK 4.2.0.I20110805-1200 (org.eclipse.sdk.ide 4.2.0.I20110805-1200)
    To: org.eclipse.sdk.feature.group [4.1.0.v20110612-1800-7T7jA7F8Yx_SlNdrz-IMZnZlz04ov6SOtpsF9RmKy0A8z]
Comment 1 Andrew Eisenberg CLA 2011-09-13 16:48:40 EDT
The problem is not Eclipse 4, but JDT 3.8.  You're right that AJDT should probably allow for most components of e4 to be installed, but JDT 3.8 is not compatible with AJDT.  I created a patch to fix this, but haven't done extensive testing.  I'll have to do a little bit of work to see if I can avoid making a branch for the new version of AJDT.
Comment 2 Dan Bullok CLA 2011-09-22 19:36:46 EDT
Thanks for the info.  I started to dive into the AJDT code to see where the issue was, but I found the learning curve for building AJDT a bit too  steep (or instructions are out of date).  If you have a test build (or a pointer to up-to-date build instructions), I'd be happy to lend a hand.
Comment 3 Andrew Eisenberg CLA 2011-09-23 11:31:54 EDT
Created attachment 203915 [details]
Patch to get AJDT working on Eclipse 4.2.

If you have AJDT checked out, then you can apply this patch.  See if this works for you.  Let me know what your experience is or if you have any questions or problems applying it.
Comment 4 Andrew Eisenberg CLA 2011-09-23 16:02:11 EDT
An update here...I am doing the migration to get AJDT working on JDT 3.7.1.  It turns out that most of the changes required for 4.2 are also required for 3.7.1.  I decided to make all of the changes required so that AJDT is installable on anything from 3.7.0-4.2M1.

I have committed the changes, but haven't done any extensive testing.  When the build goes through, you can try this out on the dev build.  I'll post here when it is available.

A warning, though.  It is likely that internal APIs will change significantly until the final release of 4.2.  So, there may be some issues on any milestone after M1 since AJDT requires the use of many internal APIs.  That being said, I'll try to keep things up to date, but there are no guarantees until the final 4.2 release.
Comment 5 Andrew Eisenberg CLA 2011-09-26 17:20:34 EDT
AJDT build is now available that should install on Eclipse 4.2.  Please let me know if this works for you.
Comment 6 Dan Bullok CLA 2011-10-21 21:54:48 EDT
(In reply to comment #5)
> AJDT build is now available that should install on Eclipse 4.2.  Please let me
> know if this works for you.


Thanks very much for the response.  Unfortunately, I haven't had much luck.  I'm sorry for not responding sooner, but I've been too wrapped up in other work to describe my progress.  Here goes...

I've tried the update site:	http://download.eclipse.org/tools/ajdt/37/dev/update
I get the following error when trying to install "AspectJ Development Tools":

Cannot complete the install because of a conflicting dependency.
  Software being installed: AspectJ Development Tools 2.2.0.e37x-20111018-1500 (org.eclipse.ajdt.feature.group 2.2.0.e37x-20111018-1500)
  Software currently installed: Eclipse SDK 4.2.0.I20110916-1615 (org.eclipse.sdk.ide 4.2.0.I20110916-1615)
  Only one of the following can be installed at once: 
    Core Resource Management 3.8.0.v20110909 (org.eclipse.core.resources 3.8.0.v20110909)
    Core Resource Management 3.7.100.v20110510-0712 (org.eclipse.core.resources 3.7.100.v20110510-0712)
  Cannot satisfy dependency:
    From: AspectJ Development Tools 2.2.0.e37x-20111018-1500 (org.eclipse.ajdt.feature.group 2.2.0.e37x-20111018-1500)
    To: org.eclipse.ajdt.mylyn.ui [2.2.0.e37x-20111018-1500]
  Cannot satisfy dependency:
    From: Mylyn-AJDT Bridge Plug-in 2.2.0.e37x-20111018-1500 (org.eclipse.ajdt.mylyn.ui 2.2.0.e37x-20111018-1500)
    To: bundle org.eclipse.core.resources [3.6.0,3.8.0)
  Cannot satisfy dependency:
    From: Eclipse Platform 4.1.0.v20110612-1800-9JF70HDuFo6EMhMISarGz0iqBGYbpnVxkgz-H-Cw_CeMV (org.eclipse.platform.feature.group 4.1.0.v20110612-1800-9JF70HDuFo6EMhMISarGz0iqBGYbpnVxkgz-H-Cw_CeMV)
    To: org.eclipse.core.resources [3.8.0.v20110909]
  Cannot satisfy dependency:
    From: Eclipse Project SDK 4.1.0.v20110612-1800-7T7jA7F8Yx_bVcgKXz-Uli5Xfs5SUcc_iDP4Zhgy1WHLU (org.eclipse.sdk.feature.group 4.1.0.v20110612-1800-7T7jA7F8Yx_bVcgKXz-Uli5Xfs5SUcc_iDP4Zhgy1WHLU)
    To: org.eclipse.platform.feature.group [4.1.0.v20110612-1800-9JF70HDuFo6EMhMISarGz0iqBGYbpnVxkgz-H-Cw_CeMV]
  Cannot satisfy dependency:
    From: Eclipse SDK 4.2.0.I20110916-1615 (org.eclipse.sdk.ide 4.2.0.I20110916-1615)
    To: org.eclipse.sdk.feature.group [4.1.0.v20110612-1800-7T7jA7F8Yx_bVcgKXz-Uli5Xfs5SUcc_iDP4Zhgy1WHLU]


Looking at the error message, It doesn't look like the patch you posted has been applied.  In particular, from my reading of the error message, the requirement from the patch: 
org.eclipse.core.resources;bundle-version="[3.6.0,3.8.0)" 
Isn't present in the development build.

Am I using the correct update site, or is there something I'm missing in the error message?

I tried the zip files from 10-03, 10-04, and 10-18.  Those failed as well.


So I decided to try your patch, and build AJDT myself.  Unfortunately, this is not a very straightforward process (at least, I can't find documentation that works for me).

I tried downloading the source using the Team Project set file:  Ajdt35ProjectSet.psf as described here:
http://wiki.eclipse.org/AJDT_Developer_FAQ#Setting_up_your_workspace_for_AJDT

That didn't work.  That file specifies extssh for the connection, which (if my ancient CVS memory is correct) doesn't allow anonymous access.  Changing the entries to in the file to use pserver instead of extssh didn't work either.  

So, I downloaded the whole org.eclipse.ajdt/AJDT_src/ tree manually (without the project set file).  But I don't know what order the subtrees must be built in, or how to proceed.  I can apply the patch, but after that, I'm pretty lost as far as building my own AJDT.

Sorry if I'm being thick here.  I've only built rather small Eclipse plugins up to now - nothing nearly this large.   I don't know if I'm missing something that's really obvious for someone that builds these things all the time.
Comment 7 Dan Bullok CLA 2012-01-03 19:49:36 EST
Version 2.2.0.e37x-20111215-2200 installs and works just fine (the visualizer display looks broken, but that's another issue).  Thanks for fixing!