Scala for Netbeans Beta Is Ready, Working with NetBeans 6.5 Beta
>>> Updated Aug 15:
For Windows Vista users:
There is a known bug #135547 that may have been fixed in trunk but not for NetBeans 6.5 Beta, which causes exception of "NullPointerException at org.openide.filesystems.FileUtil.normalizeFileOnWindows" when create Scala project. If you are Vista user and like to have a try on Scala plugins, you may need to download a recent nightly build version of NetBeans. Since I have none Vista environment, I'm not sure about above message.
======
I'm pleased to announce that the first beta of Scala for NetBeans is released, followed NetBeans 6.5 beta releasing. The availability and installation instructions can be found at http://wiki.netbeans.org/Scala.
Features:
- Full featured Scala editor
- syntax and semantic coloring
- outline navigator
- code folding
- mark occurrences
- go to declaration
- instant rename
- indentation
- formatting
- pair matching
- error annotations
- code completion
- Project management (build/run/debug project)
- Debugger
- Interactive console
- JUnit integration
- Maven integration (works with Lift Web Framework)
There are some known issues. Bug reports are welcome.
Installation on NetBeans 6.5 beta:
- Get the NetBeans 6.5 beta or later version from: http://download.netbeans.org/netbeans/6.5/beta/
- Get the Scala plugins beta binary from: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=11854
- 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. Restart IDE.
![(please configure the [header_logo] section in trac.ini)](/chrome/!97aa87b5/site/your_project_logo.png)
rss
Comments
Good work! Some issues I found:
<ul> <li>Debugger breakpoints doesn't seem to work
<li>When single stepping over statements with the local variables view visible it seems that the local variables/values are not updated correctly after initialization, so toString column shows incorrect value and you can't expand the variable to see field values
<li>Code completion doesn't work when there is no dot in the expression, for example "val myVal = 10; my[Ctrl-Space]" doesn't give any completions
<li>Pressing Enter on a blank line unindents one level. Slightly annoying :) </ul>
Hi Jesper,
Which version of Scala plugins are you using?
Breakpoints should works;
This should also be resolved sometimes ago.
I downloaded the Netbeans beta and 1217968713508_scala-plugin-080805. After I installed the plugin it reports Scala Kit 0.10.0 and Scala Runtime Library 2.7.1.1. There are no other Scala plugins in the installed list even though I installed many more.
Jesper,
If so, are you using NetBeans 6.5 beta (I should have ask this question).
Thanks
Great. I installed latest night build of NetBeans and Scala plugin. As a note, there is still some <a href="http://pro-thoughts.blogspot.com/2008/08/novice-scala-programmer-eclipse-vs.html">small issue</a> with a debugger.
Vladimir,
I'll go on getting debugger more featured, thanks for the cases
i installed the plugin and created a new project. it creates the hello world example.
lytles,
In case of complaining for main method, could you send me your code? it seems your code couldn't pass compile.
Interactive console is under menu: windows->other->Interactive Scala Shell, but there is bug which I just fixed, please see "known issues" in this blog
ok - if i do "run main project" or "debug main project" it works (and stops at the bp). but if i do "run file (Main.scala)" or "debug Main.scala" it complains about the missing main. which is ok, but odd. here's my code: package scalaapplication1 object Main {
}
ok, thanks for the pointer to the console (how did i miss that, i even looked under "other" :) looking forward to the next release so i can really try it.
lytles,
Thanks for your confirmation on the debugger part. I have not got "run file" or "debug file" working yet, although it's not a hard work.
Writing language support or IDE is really a complex work, too many features to be finished, and sometimes I have to wait or modify the underlying modules of NetBeans.
Anyway, we've got a almost working scala IDE now, and I think it will be much better when next release.
looks good - thanks for the help