
| View previous topic :: View next topic |
| Author |
Message |
whitingj
Joined: 07 Apr 2009 Posts: 3
|
Posted: Tue Apr 07, 2009 5:22 pm Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
I have a fairly large php project (4000+ files) and whenever I want to navigate directly to a file using the navigate->go to file (alt-shift-o) the search can take well over 30 seconds for netbeans to find the file. Which is unlike "go to type" which brings up the results nearly instantaneously.
This seems like a huge problem for any php project. PHP projects have many different types of files (php, css, js, html, smarty tpl files, etc) that have no "type" that can be put into the "go to type" dialog. Unlike Java, PHP does not have a 1 to 1 mapping between objects and files. Consequently filenames are the only way to get to a resource. So you must be able to jump to that resource very quickly using a filename. Which means the filenames must be indexed so the search can be very fast--it would also be nice if "search" ctrl-i would look at the filenames too.
For me (and many others I'm sure) this is a huge obstacle preventing me from switching to netbeans as my primary php editor. I need to be able to jump to a file immediately like I can if I use PDT for Eclipse (netbeans should check out how cool the "open resource" dialog is in eclipse). I can't wait 30-60 seconds to open a file--it is just too counter productive.
Is there any way to fix this problem using a project setting? Or will this require a code change to netbeans to fix this?
Thanks,
~Jeff |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Wed Apr 08, 2009 12:35 pm Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
Hi,
On úterý 07 dubna 2009 19:23:03 whitingj wrote:
| Quote: | I have a fairly large php project (4000+ files) and whenever I want to
navigate directly to a file using the navigate->go to file (alt-shift-o)
the search can take well over 30 seconds for netbeans to find the file.
Which is unlike "go to type" which brings up the results nearly
instantaneously.
|
if you try the latest development build [1], Go To File should be as fast as
Go To Type.
Tomas
[1] http://bertram.netbeans.org/hudson/job/PHP-build/
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
whitingj
Joined: 07 Apr 2009 Posts: 3
|
Posted: Wed Apr 08, 2009 9:50 pm Post subject: It works great! (for most files) |
|
|
I checked out the development build and it so fast! I love it.
However it seems it is ignore some file types and I am unsure why. In my project I have ".tpl" files that I use for smarty templates. None of those of the files ending in ".tpl" are showing up. The same thing is happening for other files as well like ".htaccess", *.qcat files (our own file type), gif, jpeg, png, etc. I can navigate to them and edit/view them in netbeans just fine but they aren't showing up in the "go to file" dialog.
I tried associating ".tpl" with the html editor but that didn't change anything in the "go to file" dialog. Any suggestions on how to get these other file type to show up?
Thanks again for the quick reply and the improvement. |
|
| Back to top |
|
 |
Jacob
Joined: 18 Aug 2008 Posts: 21
|
Posted: Wed Apr 08, 2009 11:57 pm Post subject: |
|
|
Using the latest development build, Go to File doesn't seem to search all my files anymore.
I have many files named addEdit*****.php
However if I type addEdit, only 4 are coming up at the moment. If I browse to the file and open it, then try the search again, the file I browsed for will show up. But I'm still missing a fair few. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Thu Apr 09, 2009 9:40 am Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
Hi,
On čtvrtek 09 dubna 2009 01:57:29 Jacob wrote:
| Quote: | Using the latest development build, Go to File doesn't seem to search all
my files anymore.
I have many files named addEdit*****.php
However if I type addEdit, only 4 are coming up at the moment. If I browse
to the file and open it, then try the search again, the file I browsed for
will show up. But I'm still missing a fair few.
|
yes, it's not perfect right now, this feature is in early development stage -
we are working on it and hopefully it will work as expected soon.
Tomas
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
gerry
Joined: 09 Jun 2009 Posts: 3
|
Posted: Tue Jun 09, 2009 3:53 am Post subject: Re: Go to file is really slow - needs to be faster for php projects |
|
|
| whitingj wrote: | I have a fairly large php project (4000+ files) and whenever I want to navigate directly to a file using the navigate->go to file (alt-shift-o) the search can take well over 30 seconds for netbeans to find the file. Which is unlike "go to type" which brings up the results nearly instantaneously.
This seems like a huge problem for any php project. PHP projects have many different types of files (php, css, js, html, smarty tpl files, etc) that have no "type" that can be put into the "go to type" dialog. Unlike Java, PHP does not have a 1 to 1 mapping between objects and files. Consequently filenames are the only way to get to a resource. So you must be able to jump to that resource very quickly using a filename. Which means the filenames must be indexed so the search can be very fast--it would also be nice if "search" ctrl-i would look at the filenames too.
For me (and many others I'm sure) this is a huge obstacle preventing me from switching to netbeans as my primary php editor. I need to be able to jump to a file immediately like I can if I use PDT for Eclipse (netbeans should check out how cool the "open resource" dialog is in eclipse). I can't wait 30-60 seconds to open a file--it is just too counter productive.
Is there any way to fix this problem using a project setting? Or will this require a code change to netbeans to fix this? |
This is pretty much word for word what I was coming here to say. I'm a PHP dev who was using PDT and decided to try out NetBeans but I think I will be going back simply because I search for stuff a lot and it takes too long in netbeans where as in Eclipse it is very fast. I know about the latest build, but if it's going to miss files, then that really doesn't help me. This isn't just restricted to jump to file, but also search within file. With PDT it takes about 15-30 seconds to search through everything (and I have thousands of files) and results start popping up in the first few seconds, but in NetBeans I have to move onto another task and check back with it later.
I like the commitment that NetBeans has made to supporting PHP, but I've gotta be able to work fast and right now I can only do that in PDT.  |
|
| Back to top |
|
 |
Petr Jiricka Posted via mailing list.
|
Posted: Tue Jun 09, 2009 2:37 pm Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
Which version of NetBeans are you using? If you are on 6.5, you may
want to try the latest release candidate of NetBeans 6.7, where Go to
File is much faster. See also the following bug which was resolved in
6.7:
http://www.netbeans.org/issues/show_bug.cgi?id=122639
Petr
On Jun 9, 2009, at 5:53 AM, gerry wrote:
| Quote: |
whitingj wrote:
| Quote: | I have a fairly large php project (4000+ files) and whenever I want
to navigate directly to a file using the navigate->go to file (alt-
shift-o) the search can take well over 30 seconds for netbeans to
find the file. Which is unlike "go to type" which brings up the
results nearly instantaneously.
|
| Quote: | This seems like a huge problem for any php project. PHP projects
have many different types of files (php, css, js, html, smarty tpl
files, etc) that have no "type" that can be put into the "go to
type" dialog. Unlike Java, PHP does not have a 1 to 1 mapping
between objects and files. Consequently filenames are the only way
to get to a resource. So you must be able to jump to that resource
very quickly using a filename. Which means the filenames must be
indexed so the search can be very fast--it would also be nice if
"search" ctrl-i would look at the filenames too.
|
| Quote: | For me (and many others I'm sure) this is a huge obstacle
preventing me from switching to netbeans as my primary php editor.
I need to be able to jump to a file immediately like I can if I use
PDT for Eclipse (netbeans should check out how cool the "open
resource" dialog is in eclipse). I can't wait 30-60 seconds to
open a file--it is just too counter productive.
|
| Quote: | Is there any way to fix this problem using a project setting? Or
will this require a code change to netbeans to fix this?
|
This is pretty much word for word what I was coming here to say. I'm
a PHP dev who was using PDT and decided to try out NetBeans but I
think I will be going back simply because I search for stuff a lot
and it takes too long in netbeans where as in Eclipse it is very
fast. I know about the latest build, but if it's going to miss
files, then that really doesn't help me. This isn't just restricted
to jump to file, but also search within file. With PDT it takes
about 15-30 seconds to search through everything (and I have
thousands of files) and results start popping up in the first few
seconds, but in NetBeans I have to move onto another task and check
back with it later.
I like the commitment that NetBeans has made to supporting PHP, but
I've gotta be able to work fast and right now I can only do that in
PDT. :(
|
|
|
| Back to top |
|
 |
whitingj
Joined: 07 Apr 2009 Posts: 3
|
Posted: Tue Jun 09, 2009 3:19 pm Post subject: All my problems have been solved |
|
|
I'm using the latest developer build of netbeans and it is now working great for me. The search seems to be quick and I'm not missing any files. So I'm a happy customer.
As a side note I have now completely abandoned PDT for netbeans. There are still things I miss about PDT but there is a whole lot I don't miss at all. PDT has the most frustrating problems with its indexing, resource out of sync, slow file editing on large js & css files... |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Jun 09, 2009 3:50 pm Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
Hi,
Dne úterý 09 června 2009 17:19:43 whitingj napsal(a):
| Quote: | I'm using the latest developer build of netbeans and it is now working
great for me. The search seems to be quick and I'm not missing any files.
So I'm a happy customer.
|
cool, nice to hear!
(BTW if you want the most stable build, you should use NB 6.7 (currently RC)
[1]).
| Quote: | As a side note I have now completely abandoned PDT for netbeans. There are
still things I miss about PDT but there is a whole lot I don't miss at all.
PDT has the most frustrating problems with its indexing, resource out of
sync, slow file editing on large js & css files...
|
Feel free to file bugs/enhancements [2].
Thanks,
Tomas
[1] http://www.netbeans.org
[2] http://www.netbeans.org/community/issues
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
gerry
Joined: 09 Jun 2009 Posts: 3
|
Posted: Wed Jun 10, 2009 12:26 am Post subject: |
|
|
| 6.5.1, great to hear and thanks for replying. I'll upgrade right now. |
|
| Back to top |
|
 |
gerry
Joined: 09 Jun 2009 Posts: 3
|
Posted: Wed Jun 10, 2009 1:22 am Post subject: |
|
|
Wow, that's incredible, so much faster! I'll try it out for another week and if it holds up I'll switch over the team and other coders that I know. BTW. on PDT there is one plugin that is very popular and lately has been integrated with the main build as it makes so much sense. It's called Mylyn and what it does is allows you to have files automatically associated with the task you are currently working on so that all others are hidden. Then when you need to switch to another task, you select that task from the list and all it's associated file are immediately given focus, which makes task switching tasks and then moving between files in that task so much easier.
It doesn't have a NetBeans version but you guys do have an alternative called Cubeon. It was very difficult for me to find this though. It's my belief that the NetBeans team should be promoting/supporting it more heavily and probably even integrating it into the official build. Just though I'd let you know. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Wed Jun 10, 2009 11:04 am Post subject: Go to file is really slow - needs to be faster for php projects |
|
|
Hi,
Dne středa 10 června 2009 03:22:24 gerry napsal(a):
| Quote: | Wow, that's incredible, so much faster! I'll try it out for another week
and if it holds up I'll switch over the team and other coders that I know.
|
Thanks a lot! :)
| Quote: | BTW. on PDT there is one plugin that is very popular and lately has been
integrated with the main build as it makes so much sense. It's called Mylyn
and what it does is allows you to have files automatically associated with
the task you are currently working on so that all others are hidden. Then
when you need to switch to another task, you select that task from the list
and all it's associated file are immediately given focus, which makes task
switching and moving between files in a task so much easier.
|
We have (maybe) something similar in NB 6.7 - personally, I don't know much
about it, try to have a look at "Connected Developer" here:
http://www.netbeans.org/community/releases/67/index.html
| Quote: | It doesn't have a NetBeans version but you guys do have an alternative
called Cubon (http://code.google.com/p/cubeon/). It was very difficult for
me to find this though. It's my belief that the NetBeans team should be
promoting/supporting it more heavily and probably even integrating it into
the official build. Just though I'd let you know.
|
I forwarded your email to my colleagues working on connected developer, thanks
for the URL.
Tomas
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|