Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which tools do you recommend for learning Scala ?

 
Emmanuel Hugonnet
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a Scala newbie, which tools (IDE) should I use to leanr and work with Scala ?
Emmanuel
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15279
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks this should help be getting started ;)
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using IntelliJ for Java, Scala and Clojure and I'm happy with it.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic