Scala Plugin for Coming NetBeans 6.5 Official Release
I'm pleased to announce the availability of Scala plugin for coming NetBeans 6.5 official release.
- Much better code-completion
- Two new color themes: Twilight and Emacs Standard
- Various bugs fixes
- It's not perfect, but fairly stable
- Works good with NetBeans Maven plugin
To download, please go to: https://sourceforge.net/project/showfiles.php?group_id=192439&package_id=256544&release_id=641359
For more information, please see http://wiki.netbeans.org/Scala
Bug reports are welcome.
It works also on NetBeans RC2. If you have previous version of Scala plugin installed, you can upgrade to this version.
Posted at 08:11AM Nov 19, 2008 by dcaoyuan in NetBeans | Comments[15]

Your work is much appreciated.
I hope you keep on working on it!
Thanks,
/Nizze
Posted by 80.216.192.218 on November 19, 2008 at 11:11 AM PST #
Thank you very much. I don't think I would have taken the dive into Scala without your plugin.
Posted by 71.113.241.233 on November 19, 2008 at 04:07 PM PST #
Doesn't work with NB65 RC2 for me.
Plugin manager claims that that:
org.netbeans.libs.scala needs to be installed version 2.7.1 (by Scala Standard Platforms and Libraries) and 2.7.28 (by Scala Editing).
Hopefully when NB65 ships, this plugin will be in the update center?
Posted by Adrian Milliner on November 19, 2008 at 08:06 PM PST #
Adrian,
please delete all of the content under something like: $home$/.netbeans/6.5rc2
Then try to install these *.nbm again.
This plugin won't be in the update center for NetBeans 6.5, only nightly build can get the latest developing plugin from update center
Posted by Caoyuan on November 19, 2008 at 08:55 PM PST #
Caoyuan,
Is it possible to highlight vars, vals and lazy vals differently? If it isn't so, have you plans to add this opportunity?
Thanks!
Posted by Andrew Gaydenko on November 20, 2008 at 02:26 AM PST #
Great work. Bug: the "mod-global" settings in syntax coloring are still not saved.
Posted by boris_kolar on November 20, 2008 at 10:46 PM PST #
Andrew,
But there have been too many color:-)
boris,
mod_global is not used in Scala's plugin, so set its color does not affect anything
Posted by Caoyuan on November 21, 2008 at 02:51 AM PST #
Caoyuan,
Just imagine: vars are, say, red, and vals are green. You'll immediately see not-safe (read mutable) places in a code ("too many reds" symptom). I have found such style highlighting *extremely* useful (using Eclipse), leading to more robust developing ("try keep all green").
Again, lazy vals has absolutely different behavior rather, say, defs or vals or vars.
Posted by Andrew Gaydenko on November 21, 2008 at 03:05 AM PST #
I cannot get to display lift core classess source. I use NetBeans 6.5 final with plugin version from this post. I create maven (external 0.9) project to create 0.9 or 0.10 snapshot liftweb project. Then I click on libraries to download sources. Maven does the job (when I check the repository it contains downloaded sources). However after clicking on the LiftRules class (net.liftweb.http.LiftRules) it does nothing (it should load the file source into editor).
Is it only me who has the problem or it is a known bug?
Thanks
Posted by jau on November 21, 2008 at 07:52 AM PST #
Jau,
It's known issue. But if you click on a function name of LiftRules, it will open the source and jump there.
There is another issue for maven project. The opened source file of libraries can not be parsed correctly, since I lack the dependencies information for this library package. I'm trying to coop with Maven plugin team to resolve it.
Posted by Caoyuan on November 21, 2008 at 09:28 AM PST #
Ok, Thanks, good to know.
BTW Great job :)
Posted by jau on November 21, 2008 at 10:38 AM PST #
Thanks for the great work.
I have a question - might be a bug or feature or whatever:
I have a "project from existing sources" where most of the exported interfaces are written in java (src/main/java/...), but most implementations are in scala (src/main/scala/...).
Unfortunately - the .java code completion code doesn't see the .scala classes, and vice versa too, so my editor has a bunch of superfluous !-stop-sign symbols down the left side even though it compiles and runs fine. Is this a known issue, or do I need to setup my project differently so that the in-project .java and .scala files can see each other's symbols ?
Thanks again!
Reuben
Posted by Reuben on November 22, 2008 at 02:17 PM PST #
Reuben,
Mixed java/scala project is not supported well yet. It's known issue
Posted by Caoyuan on November 23, 2008 at 12:41 AM PST #
Caoyuan, if I change mod-global in settings, it affects color of 'object' (for example, in "System.getCurrentMillis" it will affect word "System"). I verified it several times. However, settings are not saved, so I can't modify color of objects the way I want to. I'm using Netbeans 6.5 with ScalaKit 0.15.0
Posted by boris_kolar on November 25, 2008 at 01:15 AM PST #
I really liked your module to NETBEANS.
I hope that will be corrected "When add a Java project in Scala project libraries, you'll need to restart NetBeans to get Scala project knowing these Java classes".
Good luck
Posted by GoCha on November 27, 2008 at 11:40 AM PST #