Scala Plugin for NetBeans - Available for NetBeans 6.8m2 and Scala 2.8.0 Snapshot

As NetBeans 6.8 m2 released, I packed a downloadable binary which works with Scala 2.8.0.r18993 or above.

Please do not install Scala plugin via Update Center for NetBeans 6.8 m2, it's not compatible. Use the link below to download and install

New & Noteworthy

  • Much more responsive when typing and for code-completion
  • More refactoring: find usages, rename across opened projects
  • Breakpoint works everywhere (almost)
  • Better supporting for mixed Java/Scala project in both direction (Java is visible in Scala and vice versa)
  • Better integration with NetBeans maven plugin
  • Better code completion even for implicit methods (in most cases)
  • Better indentation and formatter for unfinished line after 'if', 'else', '=', 'for', 'while', 'do' etc
  • Better syntax highlighting for val/var, lazy val, implicit call, byname param, abstract method etc
  • Mark of implemented/overridden methods, click on mark will jump to super definition
  • Go to type ("Ctrl+O")
  • Select parts of code, press '{', '[', '(', '"', '`' will add/replace surrounding pair, press '~' will remove them. Specially, press '/' will block-comment it
  • Reset Scala interactive parser when necessary, for instance: dependent libs changed (Right click on source, choose "Reset Scala Parser" in pop-up menu)
  • Output highlighted code to html ([File] -> [Print to HTML...])
  • Some basic hints, for instance: fixing import, unused imports
  • Code template now works, check or add your own via [Options/Preferences] -> [Editor] -> [Code Templates] -> [Scala]

Install with NetBeans 6.8 M2

  1. Download and install the latest Scala-2.8.0 snapshot runtime via Scala's home
  2. Set $SCALA_HOME environment variable to point to the installed Scala runtime path. Add $SCALA_HOME/bin to PATH environment variable. Note for Mac OS user, $SCALA_HOME environment variable may not be visible for Applications/NetBeans, see
  3. Get the NetBeans 6.8 M2 from:
  4. Get the Scala plugins binary from:
  5. Unzip Scala plugin binary to somewhere
  6. Open NetBeans, go to "Tools" -> "Plugins", click on "Downloaded" tab title, click on "Add Plugins..." button, choose the directory where the Scala plugins are unzipped, select all listed *.nbm files, following the instructions.


  • If you encounter "... Could not connect to compilation daemon.", try to run "fsc -reset" under a command/terminal window.
  • Editor $NetBeansInstallationPath?/etc/netbeans.conf, remove "-ea" to avoid AssertionError? popped up for more information

  • Posted: 2009-10-10 09:00 (Updated: 2009-12-30 04:15)
  • Author: dcaoyuan
  • Categories: NetBeans


1. stefan zobel -- 2009-10-10 09:00

Neither "go to type" nor "go to declaration" are working for me with Scala library types (List, RichInt? and so on). However, it works for my own types.

Seems, I'm missing something (I'm on Win XP btw) ... ?

Regards, Stefan

2. stefan zobel -- 2009-10-10 09:00

Forgot to mention: the message in the status bar is "No source file found!"

Regards, Stefan

3. Aldo -- 2009-10-11 09:00

Very good plugin. I have a problem. Code completion is done only on val or var, not on raw types. I.e. val astring = "hello"; astring. produce code completion while "hello". doesn't. Is it a bug?

4. Caoyuan -- 2009-10-12 09:00

@stefan, @Aldo: Yes, these are known issues.

5. Landei -- 2009-10-13 09:00

I tried the plugin, and it looks better than the last version and works perfect (so far :-). Good job!

6. Michael -- 2009-10-13 09:00

Very nice :-) Keep up the good work!

7. Caoyuan -- 2009-10-14 09:00

@Landei, @Michael, thanks!