Message-ID: <1537815987.1019.1425514899415.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1018_1528514143.1425514899415" ------=_Part_1018_1528514143.1425514899415 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A. The source code for the new version is all in codehaus.=20 =20
A. You will need Eclipse 3.6.x for the 3.6 version of the plugin, Eclips= e 3.5.x the 3.5 version of the plugin and Eclipse 3.4.2 for the 3.4 version= of the plugin. Since Groovy-Eclipse relies on Eclipse's Java tooling (the = JDT), almost any flavor of Eclipse that includes the JDT will be compatible= . This includes the Java IDE, Classic, RCP, JavaEE, etc. Flavors such as Ec= lipse for PHP developers are not compatible because it does not include the= JDT. If you are interested in Grails tooling, then you must install the SpringSource Tool Suite.
A. Navigate to "Help > Software Updates". On the &quo= t;Available Software" tab, click "Add Site" and enter the up= date site URL appropriate for your version of Eclipse: http://dist.codehaus.org/groovy/distributions/g= reclipse/snapshot/e3.6 or http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5 then click OK. Now the update site will be on the list, open it and= mark the entry 'Groovy-Eclipse plugin'. Finally, in the top right, c= lick "Install" and follow the dialogs to complete installation.= p>
A. Once installed you can create new Groovy projects in a similar way to= how you can create Java projects. Or if you have an existing Java pr= oject which you want to add groovy code too, you can select the project in = the package explorer, right click and navigate to "Configure" >= ; "Convert to Groovy Project". This action adds the Groovy nature= to your project. Once this happens, the icon decorator for your project wi= ll change to reflect the new Groovy nature. And any .java files, the builde= r for the project will also build .groovy files. Finally, if you have some = older groovy projects created with the previous version of the plugin, they= must be migrated to exploit the new plugin. See the next question:
A. Existing projects that are based on the old groovy plugin need to be = migrated. There is a migration tool included with the plugin.&n= bsp; To use the tool, select the projects that you want to migrate, right c= lick, select the Groovy sub-menu, and then choose "Convert legacy groo= vy projects". Note that this option will only appear if you are = selecting projects that have the old groovy nature.
A. The changes to the JDT compiler are minimal, and all the extra extens= ions added to it are only executed if a project has the groovy nature. Any = adverse affects on building pure Java projects should be considered a bug.<= /p>
A. Groovy-Eclipse ships with Groovy 1.7.x. It is possible to install a G= roovy 1.8 compiler, but you must install from the development update site. = See Co= mpiler Switching within Groovy-Eclipse for more information on this.
You can change the version by going to Preferences -> Groovy -> Co= mpiler. If this does not work for you, follow the instructions in Compiler Swit= ching within Groovy-Eclipse. Currently, the 1.7.x and 1.8.x streams are= supported.
A. Yes, there may be some unexpected interactions between the two versio= ns of the plugin. However, once you are using a 2.x version of the plugin, = you do not need to uninstall before upgrading (see also previous question).=
A. Aptana Studio does not come with the JDT (Java Development Tools) pre= -installed. This is something that Groovy-Eclipse is built on top of and is= therefore a requirement. You must therefore install JDT first. Here's how:=
You may be running into GRECLIPSE-498. Make = sure that you are using an Eclipse version downloaded from Eclipse.org, and= not one that has come from your Linux distribution's package manager. Usin= g a repackaged Eclipse may not work because when Linux distributions repack= age Eclipse, they typically change the feature structure so that it is not = possible to install the JDT feature patch.
A. The most likely cause for this is that you are editing your groovy fi= le in a Java editor. Look at the editor icon. Is it a groovy icon or a java= icon? If it is a Java icon, you can change to a groovy editor like this:= p>
Also, please note that lines with multiple slashes are sometimes interpr= eted as regular expressions when they shouldn't be (see GRECLIPSE-124).
A. See the New and Noteworthy for a list of features.
A. We have not yet released the batch compiler for Groovy, but we expect= to do so for the 2.0.1 release (see the Groovy-Eclipse Roadmap).
A. Yes. You may have references between Groovy and Java files within or = across projects.
A. Yes. If you make small changes to either java or groovy files in a mi= xed project and save them, they will be compiled together with any directly= affected by the change.
A. Yes. All of your Groovy unit tests can be run using the standard JUni= t launcher.
A. Yes. There are two options: GMaven and the groovy-eclipse-compi= ler. Each has different advantages. See the full discussion at Groovy-Eclip= se compiler plugin for Maven.
A. Yes. Although any changes introduced by the transformations (eg. new = methods) are not currently visible to code in .java files, so you will not = get code completion on them or be able to directly write code in .java file= s to call them. However, these methods will be available via content assist= in Groovy files.
A. Custom Ast transforms are supported and will be picked up from the pr= oject classpath during a build. If you wish to define and consume transform= s within the same project, there is a restriction: the transform must be wr= itten in Java (not groovy) and it cannot have dependencies on groovy source= in that same project. This restriction exists because Eclipse does not hav= e a notion of separate source folders that can be separately compiled - in = eclipse the source within all source folders is compiled together.
A. Content assist and navigation are available and take advantage of Gro= ovy-Eclipse's inferencing engine and so can provide fairly sophisticate= d results. Many other Eclipse facilities, such as setting breakpoints, refa= ctoring and code formatting are available. Debug support is also available.= Please see the Groovy-Eclipse Roadmap= a> for a discussion on what to expect in the future (and please leave your = own comments).
A. Basic debugging works as it does in Java. You can set a line br= eakpoint by double clicking on the gutter marker next to where you want the= breakpoint to go. You can right click to enable/disable the breakpoi= nt. You can edit the breakpoint properties to make it a conditional b= reakpoint (conditions must be specified in Java and may require explicit ca= sting). The instruction pointer will stop at breakpoints, and you can= use the standard step into, step over, and step outcommands from Java.&nbs= p; The variables window will show all variables that are in scope, just lik= e when in Java. However, you will find that some of the runtime types= of the variables are not what you may expect. For example, variables= declared inside closures will be of type groovy.lang.Reference. Meth= od entry and class loading breakpoints are not yet supported.
If you want a more complete debugging experience, you should install the= Grails Tooling, which also includes some enhanced = debugging capabilities for Groovy code. Grails Tooling provides suppo= rt for evaluating code snippets in the context of the currently executing p= rogram. This allows the display view, the expressions view, and inlin= e evaluations to work as expected. See New Groovy Debug Support in STS 2.5.1.
A. The Groovy Console feature of the old plugin has been removed. = So far, no one has asked for this functionality. If you would like to= see it, raise a jira issue (see below) for it or mention it on the mailing= list (see below).
A. The outline receives structural information from the Groovy compiler.= If there is a syntax problem that is preventing the compiler from parsing = the Groovy file, then the outline view will remain empty until because the = compiler cannot provide any information about the file's contents.
A. Grails support is not included in this plugin. However, it is availab= le in the SpringSource Tools Suite (STS). You can download STS here. For a basic description of ho= w to install Grails into STS, create a new project or import an existing pr= oject into STS, here is a tutorial This tutorial also c= overs how to use the pop-up grails console to invoke grails commands.
A. To switch to Java colors, open the eclipse preferences, go to Groovy = > Editor and click 'Copy Java Color Preferences'
A.Groovy-Eclipse cannot be installed into a read-only directory. The Ecl=
ipse installation must be writable by the current user. Shared in=
stalls are not supported. This is because Groovy-Eclipse ships w=
ith a feature patch for JDT and feature patches cannot be installed into sh=
ared installs. This includes protected directories on Windows, like&n=
C:\Program Files. For more information on this problem see=
Eclipse Bug 395516.
As a workaround, you can temporarily provide write access to the current= user in the Eclipse directory, restart Eclipse, and install Groovy-Eclipse= . Once Groovy-Eclipse is installed, you no longer need write access t= o the install location.
It is likely that you are hitting this = Eclipse bug, which should be fixed in Eclipse 3.6 and beyond.
Try the following:
A. You could be hitting this issue: http://jira.= codehaus.org/browse/GRECLIPSE-664.
It could be that you have the Groovy Libraries on the classpath twice. T= his may happen, for example, if you originally imported a Maven project and= then added the Groovy Nature separately. The solution is to remove one ver= sion of the Groovy Libraries from your classpath.
Be sure to specify version 2.0 of the plugin.
A. Subscribe to the groovy eclipse plugin user's mailing list:
There is also a developer's mailing list:
A. See below:
com.atlassian.confluence.macro.MacroExecutionException: The URL filter i= s not available to you, perhaps it has been deleted or had its permissions = changed