Is it Time to Switch Back to IntelliJ?
I've been trying to stick with Eclipse now for a while. I switched from IntelliJ 8 to Eclipse because IntelliJ stopped working for Tapestry (I still don't know why) and because my fingers were getting tied in knots switching between IntelliJ and Eclipse. I have to switch back and forth because my Tapestry training uses Eclipse and I got a lot of negative feedback the times I tried to get people to use IntelliJ as part of the training.
In any case, I've been gritting my teeth against the travesty that is Eclipse; the inconsistent behaviors, the needless complexity, the lack of sense in much of the UI. I often wonder what IDE the Eclipse developers use, because it couldn't possibly be Eclipse itself, or they would have fixed some of the more brain-damaged stuff years ago.
One thing that is currently killing me is that Eclipse has no concept that some source folders contain production code and some contain test code. Because of that, when I collect coverage, EMMA instruments the test code as well as the production code. That not only throws off coverage figures, but breaks some of my tests (advanced ones about bytecode manipulation, that are sensitive to when EMMA adds new fields or methods to existing classes).
Fortunately, EMMA has an option to restrict its instrumentation (though it a global preference, and not configurable for individual projects) ... but shouldn't Eclipse understand this distinction natively? IntelliJ does, and it helps prevent a lot of problems, not just with coding, but with testing as well.
I keep hoping that there's a better, faster, simpler solution out there ... something that is elegant and precise. Eclipse is dumb as a sackful of hammers, and IntelliJ is almost fractal in its complexity, and ugly to boot.
I haven't found my perfect IDE yet. Maybe it's NetBeans?
From http://tapestryjava.blogspot.com/2010/12/is-it-time-to-switch-back-to-intellij.html
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Edvin Syse replied on Wed, 2010/12/29 - 6:43am
Carlos Hoces replied on Wed, 2010/12/29 - 7:16am
mark stephens replied on Wed, 2010/12/29 - 7:31am
Artur Biesiadowski replied on Wed, 2010/12/29 - 8:05am
Try right-clicking on project root and selecting 'Coverage->Coverage configurations' and selecting 'Coverage'. You can see the list of package/source folder pairs there and select which ones should be instrumented and which not.
Unfortunately, in my version it seems that it works only per-package level (so test folder is also selected/deselected when I click on given package for src folder). Still, I think that what you basically need is
1) Have EMMA coverage config window display it in some kind of tree instead of flat structure (so select/deselect all can be done on source folder node, not only per each package separately)
2) Have packaged treated independent for each source folder in EMMA
That is a reasonable request ... but this is just a misfunctional EMMA window? Why blame eclipse for that?
Mark Haniford replied on Wed, 2010/12/29 - 11:04am
Howard Lewis Ship replied on Wed, 2010/12/29 - 1:55pm
Endre Varga replied on Wed, 2010/12/29 - 12:38pm
in response to: edvin@sysedata.no
Arek Stryjski replied on Wed, 2010/12/29 - 5:05pm
I tried before to use it (after JBuilder died), but it didn't work for me. Now it was surprisingly easy to switch.
Science Oracle took Sun, NetBeans felt like another dying IDE... I'm very sorry but it was my impression.
After we switched repository to GIT it started to be very difficult to use :(
IntelliJ 10 feels very simple and productive. I like it a lot.