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.

Comments

1. -- 2008-11-18 08:00

Your work is much appreciated. I hope you keep on working on it!

Thanks, /Nizze

2. -- 2008-11-18 08:00

Thank you very much. I don't think I would have taken the dive into Scala without your plugin.

3. Adrian Milliner -- 2008-11-18 08:00

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?

4. Caoyuan -- 2008-11-18 08:00

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

5. Andrew Gaydenko -- 2008-11-19 08:00

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!

6. boris_kolar -- 2008-11-20 08:00

Great work. Bug: the "mod-global" settings in syntax coloring are still not saved.

7. Caoyuan -- 2008-11-20 08:00

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

8. Andrew Gaydenko -- 2008-11-20 08:00

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.

9. jau -- 2008-11-20 08:00

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

10. Caoyuan -- 2008-11-20 08:00

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.

11. jau -- 2008-11-20 08:00

Ok, Thanks, good to know.

BTW Great job :)

12. Reuben -- 2008-11-21 08:00

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

13. Caoyuan -- 2008-11-22 08:00

Reuben,

Mixed java/scala project is not supported well yet. It's known issue

14. boris_kolar -- 2008-11-24 08:00

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

15. GoCha -- 2008-11-26 08:00

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