wood burning stoves*
The moose likes Scala and the fly likes Which tools do you recommend for learning Scala ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Scala
Bookmark "Which tools do you recommend for learning Scala ?" Watch "Which tools do you recommend for learning Scala ?" New topic
Author

Which tools do you recommend for learning Scala ?

Emmanuel Hugonnet
Greenhorn

Joined: Aug 11, 2009
Posts: 4
As a Scala newbie, which tools (IDE) should I use to leanr and work with Scala ?
Emmanuel
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

Welcome to JavaRanch.

There are Scala plug-ins available for NetBeans and Eclipse, the two most popular Java IDE's. I've tried the Scala plug-in for Eclipse, but had problems with it - strange error messages, basic things like syntax highlighting not working etc. I currently use NetBeans with the Scala plug-in for NetBeans - it works better than Eclipse, but also isn't perfect yet (auto-complete doesn't always work, and occasionally it doesn't show an error for code that doesn't compile).

IDE support will get better in the future. In a few months, Scala 2.8 will be out, and people are working on the Eclipse plug-in, so hopefully it will work better.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

Hi Emmanuel and welcome to JavaRanch ;-)

I've not yet worked very much with Scala but I'd recommend the Maven plugin (if you're familiar with Maven) or NetBeans for which there's and up-to-date plugin which already works quite well. I think the tool support will become generally better as Scala grows in popularity. Unfortunately I don't know about other IDEs but I think IntelliJ supports Scala, too. Don't know about Eclipse plugins for Scala.

Marco
Emmanuel Hugonnet
Greenhorn

Joined: Aug 11, 2009
Posts: 4
Thanks. I'll give neNbeans plugin a try then.
I will get a look at the Maven plugin.
@Marco Do you have to separate Java and Scala code in Maven ?
Emmanuel
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

By default the Maven plugin expects Java and Scala sources in different subdirectories (src/main/java and src/main/scala). Unfortunately I don't know if this is absolutely required. I guess it can be configured to use common directories. But as I'm new to Scala I even not sure if it's a better practice to separate the code or not.

Marco
Emmanuel Hugonnet
Greenhorn

Joined: Aug 11, 2009
Posts: 4
Thanks this should help be getting started ;)
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

I'm using IntelliJ for Java, Scala and Clojure and I'm happy with it.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

In a recent discussion I posted an example Maven POM which allows to compile Java and Scala code even with circular dependencies. Just if you're intrested...

Marco
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
There's a brief tutorial at NetBeans.org that shows us newbies how to get started writing and running Scala apps using NetBeans. It's at http://wiki.netbeans.org/ScalaNovice
I hope this helps.
Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1280

The NetBeans Scala plugin seems to be very actively developed, so I guess we will see quickly improving tool support. I think you can't expect such plugins to be already as powerful and stable as Java support which has been improved for many years now.


Marco
Emmanuel Hugonnet
Greenhorn

Joined: Aug 11, 2009
Posts: 4
Apparently the Netbeans Scala plugin is being rewritten (http://blogtrader.net/dcaoyuan/entry/scala_plugin_for_netbeans_rewrite) with better support.
I will try it.
Emmanuel
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Emmanuel Hugonnet wrote:Apparently the Netbeans Scala plugin is being rewritten (http://blogtrader.net/dcaoyuan/entry/scala_plugin_for_netbeans_rewrite) with better support.
I will try it.
Emmanuel

Cool. I'll have to check it out. Thanks for the link!
Burk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which tools do you recommend for learning Scala ?