NetBeans IDE 6.5 Beta Is Available

NetBeans IDE 6.5 Beta is out and is now available. The PHP features were already described on this blog and overview of all new features is published in this document.

The installer of PHP NetBeans distribution has 20 MB download size. It's about 5MB more then the installer for M1 had, but the IDE includes JavaScript debugger functionality, WebServices support and improvements in html and css editors. The new features in database support should be highlighted as well.

We are waiting for you feedback. If something doesn't fit, what you need or what you expect, write to us or enter new issue in our Issuezilla. You can leave your messages here as a comment or write to users@php.netbeans.org (subscribe to the mailing list, send an empty email to users-subscribe@php.netbeans.org). Help us to create useful PHP IDE.

Comments:

Hello,
is it just me or this new beta eats a lot more ram on linux compared to the previous M1 release?

anyway.. excellent work, Netbeans is now my favorite IDE for php development!!

Posted by Giovanni on August 14, 2008 at 07:59 AM CEST #

Hi Giovanni,

how much memory it eats? There are some new features, but it shouldn't influence the memory consumption much. Do you have open one project or more and how big are these projects?

Thanks,
Petr

Posted by Petr on August 14, 2008 at 08:10 AM CEST #

Hi and thanks for your reply..

I'm running it on Ubuntu 8.04 with Java 1.6.0.06.
(also with the default Java interface, not the GTK one)

I have 2gb of total physical ram and yesterday I was trying it with a single project opened (a simple cakephp test project with the cakephp folder in the include path) and while usually I've the ram usage around to 30mb it jumped up to more than 150 and then during the evening I had a pick of more than 300 mb .. then clicking the "force garbage collection" lowered it at around 40mb but was still increasing even if Netbeans was idle. (not using it, just letting it opened)

Now it seems to work fine and don't know how to reproduce it; the only difference in my setup is that now I've enabled the "send usage data" checkbox in setting.

Another couple of things:
- in order to restore my config from M1 should I just copy the content of ~/.netbeans/6.5m1/config over ~/.netbeans/6.5beta/ ?

- in the new feature "PHP Application with exising project" I think it would be more easy to have also a default "projects folder" (set in the preferences) so that in the second step you can just choose between (use radiobutton instead of checkboxes ;) hehe) A-Put netbeans metadata into the sources folder; B-Put netbeans metadata into a separate directory; C-Put netbeans metadata into my projects' metadata default folder (hehe choose a better label for this last one)

- also on linux the netbeans installer is in gtk but when I tried to change the interface of netbeans (GTKLookAndFeel) it had some glitches and this was also true for the new Nimbus theme the vertical tabs (like the minimized Projects panel) weren't rendering that good. So this is not very important and Nimbus it is still a beta, but hope to see improvements in this field cause netbeans looks very nice on windows but not so nice in linux and I don't like very much the substance plugin ;)

This is my feedback..

Plus a friend of mine that tried Netbeans wrote to me that if you don't include (with require or include) directly a file on your current file code auto completion doesn't works with/discover external classes. I suggested to him to try to include them as "Include path" but not sure that this is the main purpose of that feature.

And about auto completion sometimes it adds to my file a require ""; line at the beginning of the file (like while using prado o cakephp) and each time I have to remove that by hand.

Thanks for reading, sorry for the long post!

bye,
Giovanni.

Posted by Giovanni on August 14, 2008 at 11:05 AM CEST #

Hi Giovanni,

thanks for the feedback. I will try to answer some your questions.

There was a memory leak, but it shouldn't be in beta. When you noticed the bigger memory consumption, it was during indexing files? If NetBeans indexes many files, the memory consumption can be big, because NetBeans uses all available memory if it needs. After the indexing it should be ok. The files are indexed only once (per userdir).

> in order to restore my config from M1 should I
> just copy the content of ~/.netbeans/6.5m1
> /config over ~/.netbeans/6.5beta/ ?

You can, but there can be a clash. NetBeans supports importing settings between final versions, but not between development versions. On the other hand I do it every day. Usually I start NetBeans with --userdir /path/to/myuserdir switch. And I use the same userdir with different dev builds. But sametimes I need to delete the userdir or changed it.

The issue with the default project folder is interesting. I need to thing about this.

About the look and feel. It would be great, whether you can enter issues with screenshots to our Issuezilla. Or send me the screenshots and I will do it.

>Plus a friend of mine that tried Netbeans wrote
>to me that if you don't include (with require or
>include) directly a file on your current file
>code auto completion doesn't works with/discover
>external classes.

Actually this is not true. This behavior (NetBeans offered only items from edited file and inluded/required files) was there at the beginning, when we started the PHP support. I don't remember exactly, when we added that the code completion offers everything from project sources and from include path. The main reason for this is that many projects use autoload. I'm not sure whether this was in M1 or not.

>I suggested to him to try to
>include them as "Include path" but not sure that
>this is the main purpose of that feature.

In short, yes. The data for code completion and for other features are obtained from project sources, from signatures files containing php runtime functions, classes, variables and constants and from include path.

>And about auto completion sometimes it adds to
>my file a require "";

This was a bug and we removed this functionality. It doesn't fit the projects with autoload. Is it still in beta?

Thanks,
Petr

Posted by Petr on August 14, 2008 at 04:22 PM CEST #

Sweet! NetBeans 6.5 Beta is here :)

Now I can get to play with all the cool new features.

PS. How about adding integrated preview? If would be much faster to be able to preview a webpage inside the editor rather than to switch between browsers

Posted by raymond on August 14, 2008 at 11:38 PM CEST #

Hi Raymong,

you don't have to wait for officially published build as beta or a milestone. You can use dev build :). On the other hand the officially published builds are more tested and there shouldn't be stoppers and regressions.

Regards,
Petr

Posted by Petr on August 15, 2008 at 02:35 AM CEST #

> There was a memory leak, but it shouldn't be in beta. When you
> noticed the bigger memory consumption, it was during indexing files?

If you mean during the time the progress bar is showed in the status bar then no; but I had indexed files during that session. Then I also tried to close netbeans and open it again and it happened again. But then yesterday it didn't happened anymore.. So I'll let you know if it happens again :)

> If NetBeans indexes many files, the memory consumption can be big,
> because NetBeans uses all available memory if it needs. After the
> indexing it should be ok. The files are indexed only once (per
> userdir).

Yep I've guessed it, but anyway as I told you seeing a peek of 300 mb was a big difference if compared to M1 where something similar never happened.. also it looks than in beta if you leave nebeans opened it will use more memory more you keep it opened, even idle as I said. but not 100% sure about this last thing ;)

> You can, but there can be a clash. NetBeans supports importing
> settings between final versions, but not between development
> versions.

I see.. I just need to import some code templates I've made and maybe some macro; I'll find out how to do it if it is possible so you don't need to answer me about this ;) It reminds me a bit when I were using mozilla nightly builds.. hehe..

> The issue with the default project folder is interesting. I need to
> thing about this.

:) I hope you'll implement this feature; btw.. the project name in the project folder should match the folder name of the source folder so you don't have to type it twice and as I said you just select the "defaul project folder" radio button..

> About the look and feel. It would be great, whether you can enter
> issues with screenshots to our Issuezilla. Or send me the screenshots
> and I will do it.

well, you mean about the GTK thing or the new Java theme? cause for the first one I don't know if it could be considered a fault / bug of java and in the second one it is still a beta so maybe it will get fixed in the final release. anyway let me know if I'd better to send this screenshot now..

> sources and from include path. The main reason for this is that many
> projects use autoload. I'm not sure whether this was in M1 or not.

I think it was and maybe my friend just didn't used the include path to include his other sources. Anyway in M1 maybe it was a bit buggy like that when you included a path in the "include path" and it has finished indexing it, you were not able to use code completion until you closed and reopened the document you were working on. Or maybe it just worked some times and didn't some others.. not sure about that, I'll have to test it better on the beta too. This is a small bug but, if still there on the final release, could mislead a new user thinking that netbeans hasn't that feature..

> This was a bug and we removed this functionality. It doesn't fit the
> projects with autoload. Is it still in beta?

I think it is but not sure, anyway not a big problem and thanks for letting me know that it has been fixed!

Also I've saw that you replied to a topic about Prado Framework integration in Netbeans PHP ide.. (http://forums.netbeans.org/viewtopic.php?p=4131#4131) I think it would be great and I also vote for CakePHP.

For prado it would be great to have Netbeans work in this way:
- allow user to define a new "language" in options -> editor -> code template (e.g. "text/prado - see: http://www.pradosoft.com/demos/quickstart/?page=Controls.Standard)
- then the user would associate the ".page" files to the language "text/prado" and customize it

if you then will support prado, the "text/prado" language would be already there with the code template you provided for prado controls and so on..

Also another feature that would be very useful it is imho to add import/export features to the code templates and the import feature should let the user to merge the imported templates with its own. I think that now you can already do it editing by hand the config files but a GUI would stimulate users to join their forces and sharing and improving they code templates for a specific language / framework (this last feature + the "new [user defined] language" feature).

Hope you'll find my feedback useful and thanks again for your reply!!

Giovanni.

Posted by Giovanni on August 15, 2008 at 04:23 PM CEST #

Ok, I've got the memory problem again as i tested the daily build..

screenshot:
http://img374.imageshack.us/my.php?image=nbmemory2ey1.jpg

step to reproduce:

1- uninstall old beta
2- install nightly build (send usage data: on)
3- launch nightly build
4- open an existing php project
5- go to the options window and change some setting.

Do not sure if it is happened before step 5..
anyway this is what I changed in my settings:

- enabled code folding with collapse by default javadoc and initial comments
- removed expand tabs to spaces and set tab size and space per indent to "2" (hehe not very standard but I like it :p)

That's all. Ubuntu 8.04 - Java java 1.6.0.06.

Also I've noted a thing that I miss from M1.. now when I save the trailing spaces are not automatically removed :(

;)

bye,
Giovanni.

Posted by Giovanni on August 15, 2008 at 04:46 PM CEST #

Hi Giovanni,

I'm sorry for the late response, but to much work and so little time :). I will try to answer as much as I can.

>also it looks than in beta if you leave nebeans
>opened it will use more memory more you keep it
>opened, even idle as I said. but not 100% sure
>about this last thing ;)

It would be great to find out a reproducible case as you mentioned in your last comment. I'm going to try it this night.

>I just need to import some code templates I've
>made and maybe some macro;

Code templates are stored in the folder:
config/Editors/text/x-php5/CodeTemplates
and macros in the folder
config/Editors/Macros in your user dir.

>I think it would be great and I also vote for
>CakePHP.

Basically I'm thinking about CakePHP, PRADO, Symphony and Zend. I'm sure that we will not be able to create the support for these frameworks at once. For which framework we will do a support as the first one, the community can influence as well.

>Also another feature that would be very useful
>it is imho to add import/export features to the
>code templates and the import feature should let
>the user to merge the imported templates with
>its own. I think that now you can already do it
>editing by hand the config files but a GUI would
>stimulate users to join their forces and sharing
>and improving they code templates for a specific
>language / framework (this last feature + the
>"new [user defined] language" feature).

I agree with you. Could you enter this as a new enhancement to our issuezilla? Or if you can, I can do it.

Thanks for you feedback.
Petr

Posted by Petr on August 18, 2008 at 05:07 PM CEST #

Hi Petr,
thanks for your reply!

I've found and updated an existing issue:
http://www.netbeans.org/issues/show_bug.cgi?id=99494

(hope I've done it right, lol :D)

if you want to, vote for it! ;)

thanks.

ciao,
Giovanni.

Posted by Giovanni on August 19, 2008 at 05:50 AM CEST #

Hi!

Thanks for the info on the beta, although this is a bit late of me to notice :)

I'd also like to ask this. If I fold all the code in a file, say I have a .php file with a class definition, some variables and methods... And I fold all and start writing a new method. As soon as I write for example:
public function someName() {
all the folds unfold, which to me makes editing rather annoying as I prefer to have stuff folded and unfold only what I need.
Is there a way to turn this behaviour off? I haven't found anything useful really.

Thanks and good job on PHP support in NetBeans!

P.S.: Are there any plans for Smarty support any time in the future? :D

Posted by McAjvar on August 20, 2008 at 01:12 PM CEST #

Hi McAjvar,

the behavior, which you describe, is a bug. Could you enter this to our Issuezilla? We will fix it.

Regarding the Smarty support, we don't plan it for final version of NetBeans 6.5. But there is not a plan for the next release. Users can say what they want.

Thanks,
Petr

Posted by Petr on August 20, 2008 at 02:40 PM CEST #

Hi Petr,
I saw you voted for the enhancement issue, thanks :)

I agree that the folding bug reported by McAjvar is a bit boring, I were going to write it too.. (and I'm happy to read from you that it will be fixed)

Also I'd like to know from you about the small thing regarding the trailing spaces.. as I wrote on my previous post: "... a thing that I miss from M1.. now when I save the trailing spaces are not automatically removed" .. is this a "regression" or do you have changed it by purpose?

Also, if it is not too hard to implement, would be nice to have the project tree status stored on save so that when you re-open netbeans and/or the project, the tree is expanded as you left it last time you worked on it.. This isn't an essential feature but it would be nice to have it ;)

hehe and I would also be curious about your thoughts on my idea for the new php project wizard.. ;)

thanks!

ciao,
Giovanni.

Posted by Giovanni on August 20, 2008 at 03:56 PM CEST #

Hi Giovanni,

>I agree that the folding bug reported by McAjvar
>is a bit boring, I were going to write it too..
>(and I'm happy to read from you that it will be
>fixed)

It's definitely a bug. I think that the P2 priority is the right one, because now the folding feature is not much useful. If you or someone else enter the issue, I will appreciate it. This has two advantages: at first, if user files a bug, it means that real users are complaining and such issue has bigger chance to be fixed. The second advantage is mainly for me. You will save my time and I can spend one or two minutes more with fixing issues:).

>... a thing that I miss from M1.. now when I
>save the trailing spaces are not automatically
>removed

I have noticed the same. I need to ask guys from editor core, what happens. In the php editor we didn't change this. I'm going to give you know, whats happen. If not, just ping me again:)

>Also, if it is not too hard to implement, would
>be nice to have the project tree status stored
>on save so that when you re-open netbeans and/or
>the project, the tree is expanded as you left it
>last time you worked on it.. This isn't an
>essential feature but it would be nice to have
>it ;)

I remember that I have suggest this probably one or two years ago. I was discussing this with project team. Probably there is an issue for this. Or you can enter new one, which is probably better. Number of duplicates also can influence when the issue will be fixed / implemented.

>hehe and I would also be curious about your
>thoughts on my idea for the new php project
>wizard.. ;)

Yes, I was discussing this with Tomas, who implemented the project wizards. We didn't get any conclusion yet. Mainly due the time limitation.

Thanks,
Petr

Posted by Petr on August 21, 2008 at 02:20 AM CEST #

I submitted a ticket to issuezilla ( http://www.netbeans.org/issues/show_bug.cgi?id=144776 ), I just hope I did it right, I find the tracker slightly unintuitive to use for a newcomer to the site, sorry. I'll also try to post another issue I found, again folding-related. Here's the short of it. Put this in a php file:

if (! function_exists("some_function")) {
function some_function($a, $b) {
return $a + $b;
}
}

And it won't fold. Will try to post this but I'm travelling abroad soon and have to pack. Thanks for the replies here though!

Posted by McAjvar on August 21, 2008 at 03:01 PM CEST #

Hi McAjvar,

thanks for the entering the issue. You have entered it in the right place. I'm going look at this.

The reason of the second problem is that when my algorithm count the folding, it goes just through the top level statements in AST. The question is how much the performance can be influence, when I will look through whole AST. I will try the fix should be easy. Anyway, please enter this issues as well.

Thanks,
Petr

Posted by Petr on August 21, 2008 at 05:54 PM CEST #

Issue reported. Thanks for the fast replies!

And while I am at it, may I ask if there is any plan to include WebDAV support as a remote access option, not just FTP access? I have some sites to which I only have WebDAV access and it is getting more and more widely used (in my experience at least) it seems. Or is there a handy plugin to use instead?

Thanks again!

Posted by McAjvar on August 22, 2008 at 04:31 AM CEST #

Hi McAjvar,

We don't have plan for next version of the PHP support yet. I collect requests.So if there will be more people voted for WebDAV, why not:) . You can enter enhancement/feature in our issuezilla and also you can vote for it. Then your request will be tracked.

Thanks,
Petr

Posted by Petr on August 22, 2008 at 07:57 AM CEST #

In current 6.7 nightly the remove trailing spaces on save still seems to be missing ?

Using 2009-03-24_21-16-29 it doesnt remove whitespaces on save and I didn't find any option to active oder deactive it.

Posted by robo47 on March 27, 2009 at 04:02 AM CET #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by links of london on October 30, 2009 at 02:36 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

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

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today