Monday Jan 14, 2008

Scala Supporting for NetBeans Updated#2 - 20080112

Warning:

Scala for NetBeans is still under development. All these releases are experimental, they may be unstable yet.

Change Log:

  • Can be installed on NetBeans 6.0
  • Fixed some syntax broken
  • Various bugs fixes
Features:

  • Syntax checking, highlighting, code folding, navigator, basic indent
  • Basic completion, In-place refactoring, occurrences marks
  • Interactive Scala shell. [Windows] -> [Interactive Scala Shell]
  • Basic Scala project management with file locator for compile Errors
Notes:

  • Requires NetBeans 6.0 or newest NetBeans Nightly build (get from: http://bits.netbeans.org/download/trunk/nightly/latest/)
  • Don't forget to set your SCALA_HOME environment first, or append "-J-Dscala.home=scalahomepath" to the end of "netbeans_default_options" in your netbeans.conf file, where, "scalahomepath" is your Scala home's absolute path. For example: /Users/dcaoyuan/apps/scala/share/scala/ (For Windows users, it's better to set both of them).
    The netbeans.conf is located at "pathToNetBeansInstallationDirectory/etc", in Mac OSX, it could be:
    /Applications/NetBeans/NetBeans\ 6.0.app/Contents/Resources/NetBeans/etc

Known Issues:

  • Do not write old-style ForComprehension "for (val i <- ...)", instead, use "for(i <- ...)". Please see Scala Spec 2.6.0+
  • Do not put infix/postfix operator at the beginning of new line even in a parenthesis expression
  • When "<" is an operator, put a space after "<" to identify it from a xml element

Download:

  • http://sourceforge.net/project/showfiles.php?group_id=192439&package_id=256544

Installation:

  1. Upzip to some where, there will be several *.nbm files
  2. Run NetBeans, install these *.nbm files via [Tools] -> [Plugins] -> "Downloaded"

Comments:

Looking good so far! What I miss the most at the moment is debugging/run support. Is that a lot of work to implement?

Posted by Jesper Nordenberg on January 14, 2008 at 08:51 AM PST #

Jesper,

There are a lot of features in TODO list:
* smart completion (needs type infererence fisrt)
* documents
* debug
* better project management

Run a project is bit easy, I'll implement it later.

Debug needs more thinking of.

Posted by Caoyuan on January 14, 2008 at 09:06 PM PST #

Great plugin. Works just fine with NB6 on a Mac. Thanks Howard.

Posted by Howard Lovatt on January 15, 2008 at 10:31 PM PST #

Post a Comment:
Comments are closed for this entry.