Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Which tools do you recommend for learning Scala ?

 
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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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.
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • 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
Posts: 1294
Scala IntelliJ IDE Java
  • 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 ;)
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • 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
Posts: 1294
Scala IntelliJ IDE Java
  • 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
 
Ranch Hand
Posts: 854
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
Posts: 1294
Scala IntelliJ IDE Java
  • 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: 854
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic