Monday, July 28, 2008

nbPython Milestone 5 is out

I have posted milestone 5. You can get it here(

Just a note, Milestone 5 has a completely new project system. so any project created before Milestone 5 will not open. My recomendation is that you create the project with a new name and then copy the files from the old source directory to the new source directory. Then everything will be ok.


Friday, July 18, 2008

Building netbeans with python

I was playing around with trying to automate the process of checking out and building my development netbeans. First I thought i would write a shell script. Thats when it hit me, Can I preform the whole process using python.
  • Open the script
  • change the antpath variable to where you have ant installed
  • run the script
download script
#! /usr/bin/python

import os
# set ant path here
antpath = "/home/alley/app/ant1.7.0"

hgpull = "hg pull -u"
hgclone = "hg clone"

os.putenv("ANT_OPTS", "-Xmx196m")
f = open("nbbuild/", "w")
os.system(antpath + "/bin/ant -f nbbuild/build.xml")

os.system("cp -R nbbuild/netbeans " + os.getcdw())

os.system(antpath + "/bin/ant -f nbbuild/build.xml clean")

Tuesday, July 15, 2008

nbPython demos have been posted to

The nbpython m4.2 demo videos have been posted on
These videos cover configuration, console, code generation and code templets


Sunday, July 13, 2008

nbpython M4.2 video part 2

I had to split the demo into two parts. Here is the second part of the demo below.
This covers the code generators and templates

nbpython M4.2 video part 1

I have published the first part of the nbpython m4 demo
It can be view below

Saturday, July 12, 2008

nbPython m4.2 released

We have released Milestone 4.2 of nbPython. With this release the console has been fixed. If you want to open the console select window-> Python console from the menu bar.

You can download the new release from

I will publish a video shortly


Netbeans RCP shell scripts permissions

Sometimes when you are building an RCP application, You need to include some shell scripts. What i have found that if you are using Linux, the build zip command drops the executable permission off the scripts. Here is a simple way to fix that. In the Suites build.xml file override the build-zip command with this.

<target name="build-zip" depends="build,build-launchers" description="Builds a ZIP distribution of the suite, launchers, and selected modules from the platform.">
<mkdir dir="${dist.dir}"/>
<zip destfile="${dist.dir}/${}.zip">
<zipfileset dir="${build.launcher.dir}/bin/" filemode="755" prefix="${}/bin"/>
<zipfileset dir="${build.launcher.dir}/etc/" prefix="${}/etc"/>
<zipfileset dir="${netbeans.dest.dir}" filemode="755" prefix="${}">
<include name="**/lib/nbexec*"/>
<zipfileset dir="${netbeans.dest.dir}" prefix="${}">
<filename name="**/lib/nbexec*"/>
<selector refid="zip.platform.included.files"/>
<!-- Yes, the doubled is a bit ugly, but better than the alternative; cf. #66441: -->
<!-- added filemode to add executable permissions in the zip file -->
<zipfileset dir="${cluster}" prefix="${}/${}" filemode="755">
<exclude name="config/Modules/*.xml_hidden"/>

nbPython has a console

I have finally got the python console working. As you can see in the picture, I can even run ipython as my interactive console.

More on this later

Tuesday, July 8, 2008

Netbeans to support Python, It's offical

Today at EuroPython 2008, Ted Leung (Dynamic Languages & Tools Architect, Sun Microsystems) and Frank Wierzbicki (Jython Project Lead, Sun Microsystems) announced that the NetBeans IDE will be supporting Python and Jython in future releases. At the core of bringing Python/Jython support to the NetBeans IDE, is the formation of the NBPython Project, led by community member Allan Davis.

For more information, visit the NBPython Project page and request membership to the project. For developers wishing to contribute, sign up for the development mailing list.

In addition, the Sun Developer Network (SDN) is also launching the Python Developer Center and is planning to feature Python/Jython technologies in future Sun Tech Days events, a 15-city world tour designed to educate developers in local markets on various technologies. Python runtime support is already available in OpenSolaris 2008.05, via the repository, as well as with Cool Stack on Solaris 10-based systems.

For More Information:

NBPython Project Page
Sun's Python Developer Center

Interview: Allan Davis, nbPython Developer

Ted Leung's Blog
Frank Wierzbicki's Blog

nbPython Milestone 4.1 Released

Sorry guys,
I had to release a patch to nbPython. I could not leave it hanging like that. I descovered a major bug after i uploaded last night. The Parser was going haywire. I have fixed that and have now released Milestone 4.1
It can be found at

Lead Developer, nbPython

nbPython M4 is released

I have posted milestone 4 of nbPython. It can be downloaded at
Please note that the nbm's can only be installed in 07/07/2008 daily build or later.
Some of the new features include are:
  • class and method generation (alt + insert)
  • Interactive console (window->other->python console)
  • Improved syntax highlighting
Lead Developer, nbPython

Monday, July 7, 2008

6.5 M1 is out

Netbeans 6.5 Milestone 1 is out. it can be downloaded at
New things include PHP support, as well as other great enhancements

to see Romen demo the php editor check out this link

Stay tuned I will have an nbPython update very soon

Alley, Lead Developer