Scala68v1
Scala Plugins for NetBeans 6.8 v1.x (beta)
Contents |
New & Noteworthy
- (Coming) Fixed: Error and warning markers on Windows
- (Coming) Fixed: Go-To-Source on Windows
- (Coming) Fixed: Go-To-Source across dependent Maven projects.
- (Coming) Use dependencies aware scalac task instead of fsc for default Scala project
- Much more responsive when typing and for code-completion
- More refactoring: find usages, rename across opened projects
- Breakpoint works everywhere
- 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] -> [PrintToHTML...]) (Can be then copied/pasted to Word, PowerPoint, Keynote etc. See example)
- 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 Beta
- Download and install the latest Scala-2.8.0 snapshot runtime via http://www.scala-lang.org/archives/downloads/distrib/files/nightly/distributions/scala-2.8.0.latest.zip
- 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 MacOSXEnvForApp
- Get the NetBeans 6.8 Beta from: http://dlc.sun.com.edgesuite.net/netbeans/6.8/beta/
- Get the Scala plugins binary from: https://sourceforge.net/projects/erlybird/files/nb-scala/nb-scala-6.8v1.1.0beta.zip/download
- Unzip Scala plugin binary to somewhere
- 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.
- Edit $NetBeansInstallationPath/etc/netbeans.conf
- set better maximum heap memory size, for instance: -J-Xmx1024m
- remove "-J-ea" to avoid AssertionError window popup
Old Projects Created Before 6.8v1.1.0beta Should Modify Their Project Properties
- All projects created via "File" -> "New Project" before nb-scala-6.8v1.1.0beta should add or change following lines in "nbproject/project.properties"
scalac.compilerargs= scalac.deprecation=no scalac.unchecked=no
Tips
- If you encounter "... Could not connect to compilation daemon.", try to run "fsc -reset" under a command/terminal window.

