Installing RC02 breaks JDT's "Open Type"
As discussed in the email list:
> 1. In a Java project, I can't open a type anymore (put the cursor on
> top of a class and press F3). I get a popup with the following error
> message: java.lang.NoClassDefFoundError: org/eclipse/contribution/jdt/
> itdawareness/IJavaContentAssistProvider , the eclipse error log
> follows at the end of this post.
In the reported stacktrace there are no references to classes coming from the Scala IDE
plugin. In fact, as you are working on a plain Java project, I assume the project does not
even have the Scala Nature (please, check that). I see no apparent reason why updating
to the latest RC2 could have caused that issue, but maybe with a little more information
I can help tracking down the problem's root.
---
Anwer: yes, it is a plain Java project. The problem occurs as soon as I've updated scala-ide RC01 to RC02 and it occurs in both my home PC and work PC.
---
The `IJavaContentAssistProvider` comes from the AJDT plugin, which I'm confident you had it
installed before updating to the latest RC2, or the Scala IDE cannot properly work. The Scala
IDE is not the only Eclipse plugin relying on AJDT, for instance the SpringSource Tool Suite
(STS) also comes with the AJDT plugin pre-installed (I'm mentioning that because maybe the
springIDE also comes with a pre-packaged AJDT plugin).
---
Answer: Yes, it might be the springIDE, of that I am not sure. But springIDE + ScalaIDE RC01 works ok.
---
If you go under Eclipse > Preferences, do you have a "JDT Weaving" menu? If yes, is
"JDT Weaving" enabled? (if it is disabled, please enable it and check if the issue goes away)
---
A: Unfortunately I reverted to RC01 and can't tell for sure, but I am pretty sure JDT weaving was on as I had updated from RC01 to RC02 when the issue occured.
---
If you still have the issue at this point, it may help to see the list of installed plugins (Eclipse >
About Eclipse SDK > Installation Details).
---
A: please find attached a screenshot
> 1. In a Java project, I can't open a type anymore (put the cursor on
> top of a class and press F3). I get a popup with the following error
> message: java.lang.NoClassDefFoundError: org/eclipse/contribution/jdt/
> itdawareness/IJavaContentAssistProvider , the eclipse error log
> follows at the end of this post.
In the reported stacktrace there are no references to classes coming from the Scala IDE
plugin. In fact, as you are working on a plain Java project, I assume the project does not
even have the Scala Nature (please, check that). I see no apparent reason why updating
to the latest RC2 could have caused that issue, but maybe with a little more information
I can help tracking down the problem's root.
---
Anwer: yes, it is a plain Java project. The problem occurs as soon as I've updated scala-ide RC01 to RC02 and it occurs in both my home PC and work PC.
---
The `IJavaContentAssistProvider` comes from the AJDT plugin, which I'm confident you had it
installed before updating to the latest RC2, or the Scala IDE cannot properly work. The Scala
IDE is not the only Eclipse plugin relying on AJDT, for instance the SpringSource Tool Suite
(STS) also comes with the AJDT plugin pre-installed (I'm mentioning that because maybe the
springIDE also comes with a pre-packaged AJDT plugin).
---
Answer: Yes, it might be the springIDE, of that I am not sure. But springIDE + ScalaIDE RC01 works ok.
---
If you go under Eclipse > Preferences, do you have a "JDT Weaving" menu? If yes, is
"JDT Weaving" enabled? (if it is disabled, please enable it and check if the issue goes away)
---
A: Unfortunately I reverted to RC01 and can't tell for sure, but I am pretty sure JDT weaving was on as I had updated from RC01 to RC02 when the issue occured.
---
If you still have the issue at this point, it may help to see the list of installed plugins (Eclipse >
About Eclipse SDK > Installation Details).
---
A: please find attached a screenshot
Leave a comment
on 2011-11-29 12:34 *
By Mirco Dotta
Thanks for the screenshot, I'm looking at it right now and trying to reproduce this, likely I'll have some follow-up question. By the way, are you really using Eclipse Galileo? (in this ticket, you specified the Eclipse version is Galileo, but I'm pretty sure you are using Indigo...)
on 2011-11-29 13:09 *
By Mirco Dotta
As I expected, I could not reproduce the issue. The best way for me to understand what is going on is to replicate your environment on my machine.
Could you do the following:
Could you do the following:
- Upgrade to Scala IDE RC2
- On a new empty workspace create the simplest Java project that will allow you to reproduce the "java.lang.NoClassDefFoundError: org/eclipse/contribution/jdt/itdawarenes/IJavaContentAssistProvider" error.
- Zip the folder that contains the workspace (with the project).
- Zip your Eclipse installation.
- Send it to me (please, let me know your email and I'll send you a private message for where to place the zips, if you are up to the task).
on 2011-11-30 00:52 *
By kostas.kougios
"By the way, are you really using Eclipse Galileo", no, Indigo, I mistakenly selected Galileo.
I've tried installing RC2 and the problem reoccured. But subsequently, I've uninstalled SpringIDE and the problem seems to have been resolved.
I can send you my eclipse if you want, kostas dot kougios at google mail dot com
(linux 64 bit version of eclipse plus my plugins)
I've tried installing RC2 and the problem reoccured. But subsequently, I've uninstalled SpringIDE and the problem seems to have been resolved.
I can send you my eclipse if you want, kostas dot kougios at google mail dot com
(linux 64 bit version of eclipse plus my plugins)
on 2011-11-30 01:29 *
By Mirco Dotta
Edit:
The problem originates by the fact that both Scala IDE and springIDE uses the AJDT plugin. It is not yet clear to me what is actually happening, why the IJavaContentAssistantProvider class cannot be located, but it looks like there may be an issue with how the dependencies toward AJDT are declared (I am yet not sure if the problem comes from the springIDE, the Scala IDE, or both).
One thing that worked from me is to not install the "JDT Weaving for Scala". If you start from a clean Indigo + SpringIDE and you then install only the Scala IDE for Eclipse, it should be working fine. With this setup, updating the Scala IDE will work fine, as long as you do not install the "JDT Weaving for Scala".
Though, for the moment, I would recommend you not to mix Scala IDE and springIDE, just have two separate Eclipse
The problem originates by the fact that both Scala IDE and springIDE uses the AJDT plugin. It is not yet clear to me what is actually happening, why the IJavaContentAssistantProvider class cannot be located, but it looks like there may be an issue with how the dependencies toward AJDT are declared (I am yet not sure if the problem comes from the springIDE, the Scala IDE, or both).
One thing that worked from me is to not install the "JDT Weaving for Scala". If you start from a clean Indigo + SpringIDE and you then install only the Scala IDE for Eclipse, it should be working fine. With this setup, updating the Scala IDE will work fine, as long as you do not install the "JDT Weaving for Scala".
Though, for the moment, I would recommend you not to mix Scala IDE and springIDE, just have two separate Eclipse
on 2011-11-30 02:49 *
By kostas.kougios
aha, I see, thanks.
Also FYI, RC1 + SpringIDE worked ok.
So I assume the AJDT is installed with (maybe) the spring's AOP extension. Is it a full replacement for JDT weaving for scala?
Also FYI, RC1 + SpringIDE worked ok.
So I assume the AJDT is installed with (maybe) the spring's AOP extension. Is it a full replacement for JDT weaving for scala?
on 2011-12-02 21:03 *
By Iulian Dragos
(In revision:633acefe595d1e7f66d2d4d70f766dcbbc8ecacb) First crack at removing the JDT weaving dependency. Copied the corresponding code from
the AJDT plugin to our aspects code. Kept the same two extension points. Works fine, passes tests
and works with the Spring IDE. Refs #1000780.
Branch: issue/remove-dependency-on-jdt-weaving-plugin-1000780
the AJDT plugin to our aspects code. Kept the same two extension points. Works fine, passes tests
and works with the Spring IDE. Refs #1000780.
Branch: issue/remove-dependency-on-jdt-weaving-plugin-1000780
on 2011-12-04 04:09 *
By kostas.kougios
Nice, does this mean that RC03 will work along with SpringIDE?
on 2011-12-04 14:13 *
By Mirco Dotta
We really hope so :)
(In revision:fd2abf699be13633c9171d028bd6c778e96fac17) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: issue/remove-dependency-on-jdt-weaving-plugin-1000780
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: issue/remove-dependency-on-jdt-weaving-plugin-1000780
on 2011-12-06 20:44 *
By Iulian Dragos
(In revision:6883910d04d7d42fb9cadb6b86bc29f1457ca791) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: master
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: master
on 2011-12-06 20:44 *
By Iulian Dragos
(In revision:c9822465a88bf6f9aaa999ab998a22aa232246ac) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
(cherry picked from commit 6883910d04d7d42fb9cadb6b86bc29f1457ca791)
Branch: release/scala-ide-2.0.x
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
(cherry picked from commit 6883910d04d7d42fb9cadb6b86bc29f1457ca791)
Branch: release/scala-ide-2.0.x
on 2011-12-06 20:45 *
By Iulian Dragos
(In revision:340299258fa5ede35aa77fa759046701b0257693) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
(cherry picked from commit 6883910d04d7d42fb9cadb6b86bc29f1457ca791)
Branch: release/scala-ide-2.0.0
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
(cherry picked from commit 6883910d04d7d42fb9cadb6b86bc29f1457ca791)
Branch: release/scala-ide-2.0.0
on 2011-12-07 15:38 *
By Iulian Dragos
(In revision:6883910d04d7d42fb9cadb6b86bc29f1457ca791) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: platform/indigo-3.7
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: platform/indigo-3.7
on 2011-12-08 19:53 *
By Iulian Dragos
(In revision:6883910d04d7d42fb9cadb6b86bc29f1457ca791) Removed the AJDT weaving dependency so that we are more
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: issue/code-analysis-1000629
compatible with Spring IDE and AJDT.
Copied the corresponding code from the AJDT plugin
to our aspects code. Kept the same two extension points.
Changed the update site to show only the Scala IDE
feature (binary and source). The weaving feature is
a nested feature in the SDT feature, because it needs its
own license.
Added LICENSE files. The Scala license for the project,
and the EPL for the org.scala-ide.sdt.aspects bundle.
Fixed #1000780.
Branch: issue/code-analysis-1000629
on 2011-12-16 18:48 *
By kostas.kougios
the above screenshot wasn't just uploaded by me!!! This is weird!