a Java code analysis tool for intelliJ and Eclipse is needed - eclipse

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

Related

Running ApsctJ in Intellij IDEA with Scala

I am using Intellij IDEA Community Edition 14.0.3 for Scala development. I am having AspectJ in my application. I am using sbt-aspect v0.10.1.
I am able to run everything fine when I run the application from SBT console. However, when I use run from the intellij menu, it is not invoking the aspect.
Because of this, I am not able to run in Debug Mode. How can I make it work with intellij ?
I have the same issue.
My workaround is:
Open project Run/Debug configuration on IntelliJ IDEA
In the VM Options field type: -javaagent:path/to/aspectjweaver.jar
path/to/aspectjweaver.jar in my case is C:\Users\aelkin\.ivy2\cache\org.aspectj\aspectjweaver\jars\aspectjweaver-1.8.13.jar
Actually I do not use Scala in IntelliJ IDEA, but Java. Anyway, a quick web search led me to the SBT Community Plugins page which lists these links:
Plugins for IDEs
IntelliJ IDEA
sbt Plugin to generate IDEA project configuration: https://github.com/mpeltonen/sbt-idea
IDEA Plugin to embed an sbt Console into the IDE: https://github.com/orfjackal/idea-sbt-plugin
At the time of writing this GitHub is down for database maintenance, so I cannot check on the projects mentioned there, but in 15 minutes or you should be able to navigate there by yourself and see if the repos actually contain something useful for you.

groovy plugin for eclipse

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.

Eclipse workspaces and projects vs IntelliJ projects and modules?

Switching to using IntelliJ for all my coding but am confused by the use of 'projects' and modules in IntelliJ.
Can someone tell me if Eclipse 'projects' is the same as IntelliJ's use of 'project'.
Or is an Eclipse 'workspace' more like an IntelliJ 'project'?
The JetBrains website has this covered.
Migrating From Eclipse to IntelliJ IDEA
The quick answer is an Eclipse Project is equivalent to an IDEA Module. The concept of Project in IDEA is like a Workspace in Eclipse.
Edit:
Also take a look at the eclipse integration page.
A module is the equivalent of a project in eclipse.
I got the answer from one of JetBrains' short videos they provide on their site. I found them useful when played at 2X speed, so I could get up to speed on the IDE quickly: https://www.jetbrains.com/idea/documentation/
I am new to IntelliJ IDEA and have come from Eclipse world. I was initially confused by notion of projects and modules in IntelliJ IDEA . However after viewing this very useful video Running IntelliJ IDEA for the First Time, my understanding on has been greatly improved. Basically the projects and modules in IntelliJ IDEA are equivalent Eclipse workspace and projects. I recommend watching this video if you are new to IntelliJ IDEA

Drools with Netbeans 6.1

I've downloaded and started to use Drools on a pilot project via it's "default" platform Eclipse. However, I would like to use it in Netbeans just the way plug-in works in Eclipse.
Any ideas/shot-cuts to do that?
There are quite a lot of features in the eclipse plugin, but there is (as yet) no plugin for eclipse.
You can of course use drools with netbeans just fine - just means that the IDE features that are rule specific won't be available, but it will work, its Just Another Library then !
(I use drools with intelliJ IDEA and I just created a little syntax definition to give me basic highlighting etc... but no other features. If I want them, I jump into eclipse).

grails plugin for eclipse and netbeans 6.1

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.