Posts for the month of February 2008

Erlang for NetBeans (ErlyBird) Recent Updates

Erlang for NetBeans (ErlyBird) has been put on the NetBeans' mercurial trunk. I added a changelog page on, where you can learn the latest progressing.

Here is a summary of recent updates:


  • Instant rename, or refactoring for local vars and functions (put caret on var or function name, press CTRL+R)
  • Fixed: syntax broken for packaged import attribute
  • Fixed: syntax broken for wild attribute
  • Completion suggestions will search on project's own paths only
  • Track GSF changes: reindex performance was improved a lot; Can live with other GSF based language support now (Ruby, Groovy etc)

ErlyBird 0.16.0 will be available soon.

Scala for NetBeans Recent Updates

I added a changelog page on, where you can learn the latest progressing.

Here is a summary of recent updates:

20080214 (Needs latest nightly build)

  • [Editing] fixed: highlighting of occurences is not properly refreshed

20080213 (Needs latest nightly build)

  • [Editing] fixed some issues of indent and brace-completion

20080212 (Needs latest nightly build)

  • [Editing] fixed: case pattern cause a parser error at the minus symbol before number. (Thanks to misterm for reporting)
  • [Project] sync with java.commonapi. Needs latest nightly build


  • [Editing] fixed some broken grammars. (Thanks to Michael Nischt for collecting)
  • [Project] fixed environment property, now scala.home property may not need to be set. (Thanks to Denis)


  • [Debugger] fixed exceptions when put cursor on code
  • [Debugger] "Add watches" should work now

Working with NetBeans Mercurial Repository

Just back from snowboarding. I tried to hg pull -uv to update to the latest code base of NetBeans, but got:

** unknown exception encountered, details follow
** report bug details to
** or
** Mercurial Distributed SCM (version 0.9.4)
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 11, in ?
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 3110, in run
    sys.exit(dispatch(sys.argv[1:], argv0=sys.argv[0]))
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 3107, in dispatch
    return cmdutil.runcatch(u, args, argv0=argv0)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 37, in runcatch
    return dispatch(ui, args, argv0=argv0)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 364, in dispatch
    ret = runcommand(ui, options, cmd, d)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 417, in runcommand
    return checkargs()
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 373, in checkargs
    return cmdfunc()
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 356, in 
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 2063, in pull
    return postincoming(ui, repo, modheads, opts['update'])
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 2001, in postincoming
    return hg.update(repo, repo.changelog.tip()) # update
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 248, in update
    stats = _merge.update(repo, node, False, False, None, None)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 541, in update
    checkunknown(wc, p2)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 65, in checkunknown
    for f in wctx.unknown():
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 413, in unknown
    def unknown(self): return self._status[4]
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 369, in __getattr__
    self._status = self._repo.status()
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 864, in status
    list_ignored, list_clean)
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 445, in status
    for src, fn, st in self.statwalk(files, match, ignored=list_ignored):
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 421, in statwalk
    sorted_ = [ x for x in findfiles(f) ]
  File "/opt/local/lib/python2.4/site-packages/mercurial/", line 382, in findfiles
    if not ignore(np):
RuntimeError: internal error in regular expression engine

It was the second time I encountered this issue, I don't know why, so, I just upgraded my Mercurial from 0.9.4 to 0.9.5, and tried to get a new clone. I typed:

hg clone

Everything seemed going smoothly, I had a new repository now. I copied my old hgrc to replace the un-configured one, and typed ant build, guess what? I got a lot of package does not exist, build failed. I knew that was because of that the binary files were not downloaded properly. It seemed I should leave the original hdrc there, and let ant hook the So I removed all extra lines except the original content of hgrc:

default =

And tried ant build again, this time it went smoothly again.

LESSON: Do not modify hgrc before you do first "ant build", which will hook and add "decode", "encode" automatically.

Vacation for Snowboarding

I'll take my vacation for snowboarding, 3-4 days. Happy Chinese New Year!

Scala for NetBeans: Debugger Modules are Available for Test

=== Updated Feb 5 ==>
I just fixed a defect of debugger modules, the updated modules will be available after new nightly build successfully. Since the underlaying changes of NetBeans APIs, you may need to download a new nightly build.

Scala Debugger modules are available for preview and test, which can be installed via Update Center for newest nightly build version of NetBeans (I tested on NetBeans IDE 6.1 200802040003). Debug feature includes two modules: Scala Debugger and Scala Debugger Projects Integration (you can click on "Name" in "Available Plugins" tab to find them), for more getting started information, please see

Google Group:

Known Issues:

  • "Run to cursor" does not work yet
  • "Step into Scala standard library's code" is not supported yet
  • "Add watches" is not supported yet
  • Complex condictions are not tested yet

Adventure with Nightly Build:

  • Nightly build version of NetBeans changes frequently, please check updates frequently too: "Tool"->"Plugins"->"Reload Category" (please update all available modules, including those not relating to Scala). If things are broken, re-download a new nightly build and try ...