Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.1Release, 2.5.2.Release
-
Fix Version/s: 2.5.2.Release
-
Component/s: Editor
-
Labels:None
-
Environment:Indigo SR1 RC1, Snow Leopard 10.6.6, Java 1.6.0_26
-
Number of attachments :
Description
I've been trying to use GREclipse with no success on an Indigo installation. I've tried with today's (2011/09/14) development snapshot as well as with lastest release version. Also I've tried with 1.7 and 1.8 compilers, always with the same errors.
Anytime I try to create a new class, I get this error:
"Creation of element failed.
org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.codehaus.jdt.groovy.model.GroovyCompilationUnit".
I've attached the full exception on eclipse log (ex1.txt)
Anyway, the class is created. But anytime I double click on it, I get the following response (similar to bug https://jira.codehaus.org/browse/GRECLIPSE-1177, but not the same)
"An error has occurred. See error log for more details.
org/codehaus/groovy/eclipse/refactoring/formatter/GroovyIndentationService"
When I check the log, I see the exception I've attached on ex2.txt.
Hope this helps!
It looks like the JDT patch has not been installed properly. There are several reasons for this. The most likely possibility is that you have installed Eclipse into a read-only location. In order for Eclipse to install Groovy-Eclipse's JDT patch, the install location must be writable by the current user.
If this isn't the cause, then there are some other possibilities that that might be causing this.