I am using Spock and want monospaced output in the jUnit tab in Eclipse, but the option that is described in this Q/A (Monospace font for junit in eclipse?) is deprecated. Does anyone know a workaround ?
I think it's because the Groovy Eclipse folks were so kind to contribute this feature to Eclipse 4.4 M1 (thanks!), which is where it really belongs. (See Add a monospace font option for the junit results view.) However, I very much hope they will keep supporting the feature for older Eclipse versions, as it will take years until a majority of Spock users have moved to Eclipse 4.4. And it doesn't just affect Spock code, but also all Groovy code leveraging assert statements. I'll try to get in contact with the authors.
Try using the snapshot release of the Groovy Eclipse plugin (version 2.9.x) from here: http://dist.springsource.org/snapshot/GRECLIPSE/e4.3/
The Jspresso Spock plugin solves this problem beautifully. :) I just installed version 2.8.0.
After you install it, you need to right click on you project and select Jspresso > Add Spock Nature. That's it.
Related
I'm trying out 'Play Framework 2.0' on Scala IDE plugin 2.0, for Eclipse Helios (fully supported by Scala IDE plugin).
When I create a play application and choose Scala template, it does work. That is,"play run".
When running 'play eclipsify' and then importing the project into Eclipse, I am getting errors. Any ideas?
The screenshot reveals that you're in the Java Perspective. Go to Window - Open Perspective - Other... and pick Scala.
When you create a new Scala project, eclipse asks you to switch perspective. If you import an existing project however, it doesn't. I filed an enhancement request.
On the Scala IDE website there is a tutorial on how to configure the Scala IDE to do development with play2.0:
http://scala-ide.org/docs/tutorials/play20scalaide20/index.html
Follow the steps there and if it doesn't work please report issues to the tutorial's author or in the scala-ide-user ML.
By the way, I don't believe that changing Perspective will make any difference. The Eclipse perspectives are purely UI changes, the underlying behavior should not be affected.
I was waiting, hoping someone more knowledgeable would answer...
I'd look at the .project file for your messed-up project, compare it with a correct one, and hack the messed-up one as appropriate. I wish I could be more specific. I'd guess that the problem is in the <buildSpec> or <natures> section of the file.
You may want to back up the .project file up first. Make sure the project isn't open in Eclipse while you're editing it.
Right click your project, Configure > Add Scala Nature
I installed Eclipse Java-EE edition instead of standard Java Edition, and all works now.
I haven't gone back to repeat with standard Java Edition to confirm, but seems to only work with EE edition.
I have a service - reportservice.groovy which has a big list of imports, many of them unused. Is there a quick way in Netbeans IDE 7.0 to remove the unwanted ones. (its not showing any warning/error stripes in the right column). If some plugin does this check I would like to know it.
Thanks
Priyank
Netbeans support for both grails and groovy is about 2 years old.
if you want an ide, you're better off using Eclipse with the latest groovy plugin installed, or sts from Spring
or intellij paid edition has great support as well
what is the best goovy plugin for eclipse (helios)? I have download Groovy-Eclipse but the plug-in seems not good? cant go to methods by clicking ctrl and also cant debug too
The best Eclipse Groovy/Grails support is provided by the STS Eclipse distribution. If you're not using Grails and are only interested in Groovy I don't think you'll find this much better than the Groovy-Eclipse plugin, because I expect STS itself uses the Groovy-Eclipse plugin.
The best Groovy/Grails support is provided by IntelliJ. Eclipse has always been a long way behind.
Unfortunately, groovy-eclipse is the best there is.
If you want to improve your experience, I can only recommend switching to IntelliJ IDEA.
Groovy-Eclipse is your only option for editing groovy code in Eclipse.
Since the behavior you describe that is missing is a fundamental part of Groovy-Eclipse (ie- navigation to method declarations), it sounds like something is not set-up properly in your project. Perhaps your groovy sources are not on the Eclipse build path of your project. Make sure this is the case and let me know if this fixes your problem.
Since SpringSource / VMWare embraced the Grails and Groovy community, SpringSource Toolsuite (STS) has really increased the quality and integration of Groovy into the Eclipse environment. If you haven't looked at it recently, STS 2.7.0 was just released, and it includes support for Gradle, Groovy 1.8, and initial support for Grails 1.4 / 2.0. Groovy-Eclipse is the bundled Groovy solution, and enables the Groovy compiler, Groovy project types, as well as a number of other areas.
It's also important to note that the development is going at a pretty good place - some of the standard editing features are fixed month to month as dot releases are released often.
Intellij is also continuing to provide a great solution - but now that the Eclipse support is improving, there are two viable choices for developers to look at.
STS is available for Eclipse 3.6 and 3.7.
Does anyone has an experience with a code analysis tool that has a working plugin for both eclipse and intelliJ?
Both FindBugs and CheckStyle work well with intelliJ 10 and eclipse. you may have to modify the JVM setting for the plugins to work.
but it works.
have you also tried PMD? http://pmd.sourceforge.net/integrations.html
I'm an intelliJ user but it works for Eclipse. I would prefer FindBugs/PMD to CheckStyle. To be honest I use intelliJ's (9 version) built in Inspection tool as well. You will find this previous thread in SO useful Checkstyle vs. PMD
Found this plugin (multiple integration including PMD/FindBugs) for intelliJ this morning (yet to try) but here's the link http://plugins.intellij.net/plugin/?idea&id=4596
Has anyone been successful in getting the grails plugin for eclipse to work? How about grails plugin with netbeans?
If you use the NetBeans 6.5 Beta you'll see the Grails functionality is promising, but still buggy(minor). The good thing is in 6.5 Groovy and Grails support is standard, you don't have to install the plugins.
Unfortunately, there hasn't been much progress on the Eclipse plugin for Grails, we have started using IntelliJ IDEA for Grails development, the JetGroovy plugin is excellent and keeps getting better!
Netbeans 6.5 is pretty good for Grails and allows for debugging, though the code completion is just barely there.
Well, here's a quick update. The Eclipse plugin works, and has refactoring support. But, for some reason I can't get it to recognize the Grails plugins in the Eclipse project.
It's starting to come along though.
I haven't had any problems getting the Eclipse grails plugin "to work" insofar as it's installed and providing all the features advertised. The problem is that this set of features is minimal, and light years behind IntelliJ. I understand that switching from a free IDE to a commercial IDE isn't at all possible, but if it is, do it! Although Netbeans is better than Eclipse, it's still quite a distance behind IntelliJ.
Just for future documentation:
Netbeans 6.8 is available with a very nice Grails/Groovy Plugin that works like a charme.
Additionally you can use a new Code Coverage Plugin.
Really nice build.
Link:
Netbeans Homepage
But you have to keep in mind that Grails now belongs to Spring Source. Spring Source is known for developing their own Tool Suite based on Eclipse. Maybe we will see a better grails plugin implementation for Eclipse.