Tuesday Dec 08, 2009

Small Experiment about File Path in the Editor Tab

I have played with the displaying file path or a part of the file path in the editor tab. I have created a small patch for CSS, JavaScript, PHP and other files that use CSL editor (HTML is not the case). I don't want to commit the patch to the repository, because it's a just experiment and the appropriate solution should cover all files and should be done in the editor infrastructure. The reason why I did this is to see the result and find out as much consequences as possible and also to hear your opinion.

If you want to try it, you should follow these instructions:

  1. Download NetBeans RC2 in zip form (in the Platform combo box select OS Indenpendent Zip item).
  2. Unzip the file somewhre in a ${unzip_dir} folder
  3. Download this org-netbeans-modules-csl-api.jar and replace the original one in ${unzip_dir}/netbeans/ide12/modules/ folder.
  4. In a command line go to in ${unzip_dir}/netbeans/bin folder
  5. Run NetBeans with this command on a Linux machine:
    ./netbeans.sh --userdir /path/to/a/folder -J-Dcsl.editor.folder.level=2
    or on a Windows machine
    netbeans.exe --userdir d:\\path\\to\\a\\folder -J-Dcsl.editor.folder.level=2

In the picture bellow you can see the RC2 build which displays two levels of folders for the mentioned files in the editor tab.

The --userdir option is explain here. It's my recommendation to use it:). The more important option here is the second one (-J-Dcsl.editor.folder.level) that influence the way how the path is displayed in the editor tab.

The number (in my case 2) saying how many levels of parent folders of the file is displayed in the editor tab. If you set this option to -1, then full absolute path is displayed. In case that you set it to 0 or you don't set the option at all, the behavior is the default one - no additional information is displayed in the editor tab.

You can place also the option as a another default option into the netbeans.conf file in ${unzip_dir}/netbeans/etc/ folder.

Monday Dec 07, 2009

NetBeans 6.8 RC 2 is out

On Friday, there was published the second release candidate of NetBeans 6.8. You can download the build here.

When we discussed the features for NetBeans 6.9, some people complain about slow scanning and editing. If this experience is based on NetBeans 6.7.1 (which had known performance problems), please try NetBeans 6.8 RC2. We believe the speed has improved significantly. If you still face performance problems with the release candidate build, please let us know the details and we will try hard to improve the performance for your scenario.

Tuesday Nov 10, 2009

International PHP Conference 2009

It was one year ago, when I attended IPC conference for the first time in my life (it was my first PHP conference at all). At the time we released NetBeans 6.5 that was the first version of NetBeans with PHP support and only few people knew about NetBeans. The goal was to introduce NetBeans to the PHP developers.

This year I'm going to attend the conference as well. The Internation PHP Conference starts this Sunday. There will be one session about NetBeans on Monday and I will talk mainly about new features in NetBeans 6.8. There will be also a small NetBeans booth where we can meet during the conference. I should be there from Monday to Wednesday. We are looking forward to talking with you. 

Monday Oct 26, 2009

PHP Namespace Support Screencast

We've now finished a screencast demonstrating PHP 5.3 namespace support in NetBeans IDE 6.8. (See Code Completion for Namespaces part I). The screencast also shows code hints for assigning variables, namespace naming hints, and how to set the options for PHP code completion.

Monday Oct 19, 2009

Formatting and Indentation

I attended this weekend WebExpo 2009 in Prague. I had one session there about developing web applications in NetBeans. Originally I though that the presentation should be divided into two main parts. One part about PHP and second part about Java Web. Because the bulk of the audience were PHP developers, I spent  talking about PHP development in NetBeans almost whole session. After the session there was a long discussion (more than 1 hour) and some people complained about formatting.

As a result I have decided to look at this and to try to fix as many bugs as possible. Because there is not much time for NetBeans 6.8, I would like to ask you for help. I have created task in our Issuezilla, where you can put the cases, when formatting or indentation doesn't work correctly. If you don't have Issuezilla account and you don't want to create it, you can paste the cases here as a comment. A case should contain an example of the code before formatting / indentation and also the same code, but in the right form.

I can not promise that we can fix all these cases, but we will try as many as possible.

Thanks for your help.

Friday Aug 07, 2009

Sun GlassFish Web Stack video presentations

Videos of CommunityOne presentations about the Sun GlassFish Web Stack, which includes a full PHP AMP stack integrated with NetBeans. Demonstrations include the NetBeans DTrace plugin.
[Read More]

Thursday Jul 30, 2009

Community Contributed Docs

We have a program for NetBeans users to submit their own tutorials, tips and tricks, and how-to docs. It's called Community Docs, and the portal is at http://wiki.netbeans.org/CommunityDocs. It's very popular. However, there have been no submissions from PHP developers! So, I was thinking, perhaps none of you know about it? If any of you have any cool examples of apps that would be the basis of a nice tutorial, or have tips for other users, please consider posting a full description over there. It's a big help to everyone.

Tuesday Mar 10, 2009

Frustrated by your PHP configuration?

There is now an alternative to setting up your own PHP environment. You can download a server-only OpenSolaris web stack and run it in
a virtual machine. XDebug, the PHP engine, Apache, and MySQL are preconfigured on the web stack. You can work on your PHP project in NetBeans IDE and use the FTP feature to deploy your PHP on the OpenSolaris web stack.

Follow these steps to use the OpenSolaris web stack:

  1. Download the OpenSolaris web stack image and create a virtual machine for it.
  2. Configure the network connection on the virtual machine.
  3. Configure port forwarding.
  4. Create an FTP connection in NetBeans for the web stack on the virtual machine.
See the tutorial Deploying PHP to a Server-only OpenSolaris Web Stack for detailed instructions for setting up the OpenSolaris web stack on Sun VirtualBox.

Thursday Jan 29, 2009

Fwd: Code Completion for the Kohana & Code-igniter Frameworks

How to achieve PHP code completion in Netbeans for the CodeIgniter, Kohana frameworks? See following articles:

Wednesday Jan 28, 2009

Mac users: MAMP now recommended, not XAMPP

Dear Mac users,

There have been a number of issues with configuring XAMP on the Mac for use with NetBeans IDE, most significantly that XAMP sets the owners of MySQL databases to "nobody", blocking Apache access. Therefore I have changed the Mac OS setup tutorial to use MAMP instead of XAMP. In my opinion, the MAMP setup is more straightforward than the one for XAMP, anyway.

Wednesday Jan 21, 2009

Fwd: Model-based code insight and completion in NetBeans

I noticed article about developing CakePHP in NetBeans. Although Symen describes, how to improve PHP Doc for Cake PHP classes to help NetBeans to find out a type of a class property, this principle can be used for every framework and for your classes as well. Thanks to Symen for this article.

Tuesday Jan 13, 2009

The first alpha version of Prado support

When I published the entry with the first screenshots of Prado support, I promised to publish first alpha version soon. Unfortunately from that time I'm extremely busy and I wasn't able to work on the project to fix all problems. On Sunday I found a little time to work on this and there is the first alpha version.

The bits are compiled against NetBeans development version. You can dawnload the latest nightly builds from NetBeans site. If you want to try it I suggest these steps:

  • Download the nbm with the Prado support. 
  • Download the latest nightly build. Download the OS independent zip file.
  • Unzip the zip file somewhere.
  • Open a console window and go to the folder, where you unziped NetBeans.
  • Go to the netbeans/bin folder.
  • Start NetBeans with --userdir switch:
    • Unix machines:
      ./netbeans --userdir /path/to/test/userdir/folder
    • Win machines:
      netbeans.exe --userdir X:\\path\\to\\test\\userdir\\folder 
    The main advantage of this approach is that you can run more instances of NetBeans on your machine and one instance doesn't influence others. I wrote more here.
  • In NetBeans invoke Plugin Manager (Tools -> Plugins).
  • In Download tab click on the Add Plugins... button. 
  • Browse the downloaded nbm.
  • Click on the Install button and follow instruction. 
  • You have to restart the IDE.

I created the nbm against the development version, because it was for me much easier to fix certain problems. I have tested just little bit due to luck of time, but I don't expect that everything will work and not everything is implemented. I have noticed that the Prado code completion doesn't have to work in page files at the first time. In such case open the appropriate php file and go back to the page file.

When you will play with this, don't forgot to put Prado framework into the include path of the project.

Tuesday Dec 23, 2008

Merry Christmas and Happy New Year

I would like to wish everyone a Merry Christmas and Happy New Year.

Monday Dec 15, 2008

Patch for NetBeans 6.5 was released last week

On 10th December the first patch for NetBeans 6.5 was published. You can download the fixes through the IDE's Plugins Manager. The list of fixed issues is available here.

Wednesday Nov 26, 2008

Evaluating of Symfony support

I have started to work on the Symfony support. In this time I'm evaluating, what we will be able to implement, how the support should be done, and what will offer to the developers. 

Question for Symfony developers: Which productivity features should be a part of such support? I need to know the usecase, when you need a feature, understand the workflow etc. I hope that information from you help me to design useful support.

Is there any tool which support developing PHP applications based on Symfony framework?


This blogs is written by NetBeans developers who contribute to the PHP support mainly.


« September 2016