Eclipse workspaces and projects vs IntelliJ projects and modules? - eclipse

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

Related

CodePro: where to find the plugin for Intellij Idea?

I have Codepro analytics plugin installed on my eclipse https://dl.google.com/eclipse/inst/codepro/latest/3.7 which I am using since may days. However I don't see any new version coming up for this. I am now shifting to Intellij Idea for my development. However does anybody know that is there any Codepro available for Intellij or how can I use this eclipse plugin in Intellij?
There's no IntelliJ plugin for CodePro and you can't use Eclipse plugins in IDEA.
However, there's a feature in IntelliJ IDEA called 'Inspections': built-in static code analysis tools that help you find probable bugs, locate dead code, detect performance issues, and improve the overall code structure. Its functionality should match that of CodePro's and maybe even exceed it.
Check this IntelliJ documentation page as well.

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.

Where does Typesafe Activator fit in the project

First of all, I would like to say that I don't know if Stack Overflow is the right forum to ask this, but let's give it a try.
I'm a .NET developer, but I'm interested in giving Scala a try in my next project. Developing for .NET is very "simple" in the sense that everything happens "inside" Visual Studio, from coding to installing libraries, to deploying, you get it.
I've stumbled upon the Typesafe Activator tool. My question is for Scala programmers who are using it: is this tool usually used as an IDE for the whole project? Or is it used just to generate the templates, then work in another IDE like Eclipse? What would be a usual "cycle" in web app developing project with Scala?
Thank you very much in advance!
Right now the code editor in Activator is pretty basic. So most users start with Activator for new projects and learning and then open the project in IntelliJ or Eclipse. Then you can continue using Activator alongside an IDE if you want.
I agree with James that it is common to create the project with Activator before then moving to your preferred IDE. I'm not even close to the expert he is, and that has worked for me.
But inconsistently.
For me, as an IntelliJ user on Mac, I have found that JetBrains (the makers of IntelliJ) continues to make so many changes to their Scala, SBT, and Play plugins that there can be inconsistencies. I've found starting from IntelliJ sometimes works; starting with Activator sometimes works; importing an SBT project of any kind sometimes works; and so on. I have yet to uncover any pattern as to why.
You may have better luck than I, but just be ready to try a few approaches. Using Activator first as James suggests is certainly a viable one.

Play framework 2.0, Eclipse Helios, Scala IDE 2.0 plugin - Getting build errors out of the box

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.

a Java code analysis tool for intelliJ and Eclipse is needed

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