NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans and auto-completion
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Sat Sep 27, 2008 6:55 pm    Post subject: Netbeans and auto-completion Reply with quote

Hello,

Does netbeans support code completion for php ? It doesn't work by me. Should I install an additional component or activate an option ?

Regards,

mathmax
Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Sat Sep 27, 2008 7:07 pm    Post subject: Netbeans and auto-completion Reply with quote

Sure, the code completion is supported. Look for example here :
http://blogs.sun.com/netbeansphp/entry/screencat_about_class_property_variables.


There is a PHP distribution. Where you can download a distribution you
can read here: http://blogs.sun.com/netbeansphp/entry/userdir. But
basically you can download the beta here:
http://download.netbeans.org/netbeans/6.5/beta/ but I suggest to you to
try a latest build, which is much better:
http://bits.netbeans.org/download/trunk/nightly/latest/

Regards,
Petr


Quote:
Hello,



Does netbeans support code completion for php ? It doesn't work by me. Should I install an additional component or activate an option ?



Regards,



mathmax










Back to top
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Sat Sep 27, 2008 8:41 pm    Post subject: Reply with quote

Thank you for your answer.

The two first links don't work.

I use the version 6.1. Code Completion doesn't work with this version ?
Back to top
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Sat Sep 27, 2008 9:14 pm    Post subject: Reply with quote

I've just downloaded the latest build. Code completion seems to work but a Task scanning is running for 10 minutes now and use almost all my CPU. What is it ?
Back to top
fortruth



Joined: 26 Aug 2008
Posts: 74

PostPosted: Sun Sep 28, 2008 6:45 am    Post subject: Netbeans and auto-completion Reply with quote

yes, it does work . may be you shuold changed the shortcut (like me:)

at the paths:

tools->options->keymap->other->show all code completion Popup

2008/9/28 mathmax <address-removed ([email]address-removed[/email])>
Quote:
I've just downloaded the latest build. Code completion seems to work but a Task scanning is running for 10 minutes now and use almost all my CPU. What is it ?







([email]address-removed[/email])
([email]address-removed[/email])



Back to top
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Sun Sep 28, 2008 12:04 pm    Post subject: Reply with quote

Why use a shortcut to show the code completion Popup ? Why not show this popup as the user is writing code ?

Code completion is very slow. It display "Please wait" during about 1 second before displaying the code completion popup. I'm a Visual Studio user. Although it isn't well known to be light, Visual Studio's code completion is instantaneous and the popup is shown each time you type a character.

The last thing that surprise me is the scanning process when opening a project. It takes sometimes 10 min to execute a process called "Task scanning ". What is it ?
Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 4:07 pm    Post subject: Netbeans and auto-completion Reply with quote

mathmax wrote:
Quote:
Thank you for your answer.



The two first links don't work.

Hmm, this is strange, it works for me all the links without a problem.
Quote:


I use the version 6.1. Code Completion doesn't work with this version ?

PHP support for 6.5 is rewritten basically from scratch. When NetBeans
6.5 will contain first version of the PHP support.

Regards,
Petr
Quote:









Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 4:09 pm    Post subject: Netbeans and auto-completion Reply with quote

mathmax wrote:
Quote:
I've just downloaded the latest build. Code completion seems to work but a Task scanning is running for 10 minutes now and use almost all my CPU. What is it ?

How big project do you have? It should run only one time. It scans your
project, index your sources etc.

Petr
Quote:









Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Sun Sep 28, 2008 4:15 pm    Post subject: Netbeans and auto-completion Reply with quote

mathmax wrote:
Quote:
Why use a shortcut to show the code completion Popup ? Why not show this popup as the user is writing code ?

The code completion is showed automatically in most cases. But you can
also involve it through shortcut.
Quote:


Code completion is very slow. It display "Please wait" during about 1 second before displaying the code completion popup.
Please describe the context, in which the code completion is slow for you.
Quote:
I'm a Visual Studio user. Although it isn't well known to be light, Visual Studio's code completion is instantaneous and the popup is shown each time you type a character.

This would be very annoying for some users to show cc window after every
character.
Quote:


The last thing that surprise me is the scanning process when opening a project. It takes sometimes 10 min to execute a process called "Task scanning ". What is it ?



I have describe it in the previous answer. How big is your project. Does
the scanning task run ever time when you open the same project?

Regards,
Petr
Quote:







Back to top
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Sun Sep 28, 2008 10:41 pm    Post subject: Reply with quote

Quote:
How big project do you have? It should run only one time. It scans your
project, index your sources etc.

It's a big project. It's the Magento store.
Quote:

Does the scanning task run ever time when you open the same project?

yes
Quote:

It should run only one time. It scans your
project, index your sources etc.


Unfortunately not. It scans each time I open the IDE.

Quote:
The code completion is showed automatically in most cases. But you can
also involve it through shortcut.

For example, if I write "function", I don't have intellisens. But I have it if I press the shortcuts keys.

Quote:
Please describe the context, in which the code completion is slow for you.

For example, if I declare a variable and then I type it's name, the popup will take about 1 or 2 seconds to show the variable name.

Quote:
This would be very annoying for some users to show cc window after every
character.

Why ? It's always here but never annoying because it doesn't slows down the writing (on the contrary).
Back to top
dephee



Joined: 29 Sep 2008
Posts: 3

PostPosted: Mon Sep 29, 2008 5:42 am    Post subject: Reply with quote

I get the same case with mathmax. The cc works too slow and I have to wait for sometimes for the result.

Also, after saving a file, the IDE seems to hang for few seconds and I cannot type anything (not directly displayed on screen) . But the typed text is displayed when the IDE back to normal. It is very annoying and slow the work very much.
Back to top
Tomasz Slota
Posted via mailing list.





PostPosted: Mon Sep 29, 2008 8:57 am    Post subject: Netbeans and auto-completion Reply with quote

It is recommended to close the task list window when working with very
large projects.

What version of NetBeans do you use? There have been many performance
improvements since 6.5 beta, you might want to try a recent dev build.
A production quality release is planned for November.

How much RAM/ what CPU clock does your workstation have?
Regards,
Tomasz Slota


On Sep 29, 2008, at 7:42 AM, dephee wrote:

Quote:
I get the same case with mathmax. The cc works too slow and I have
to wait for sometimes for the result.



Also, after saving a file, the IDE seems to hang for few seconds and
I cannot type anything (not directly displayed on screen) . But the
typed text is displayed when the IDE back to normal. It is very
annoying and slow the work very much.









Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Mon Sep 29, 2008 12:28 pm    Post subject: Netbeans and auto-completion Reply with quote

As Tomasz wrote, the performance was improved since beta.

I did some testing. I have checkout the Magento sources from
http://www.magentocommerce.com/svn. When I open the project at first
time then the indexing takes 58 seconds and task scanning takes 185
seconds. The indexing and task scanning is running at the same time. So
I expect that the second taks scanning will be fast. When I close the
ide and open it again the task scanning takes about 95 seconds on my
machine (Core 2 Duo 2GHz). You are right the result of task scanning are
not cached, the result of indexing are stored in an index. If you don't
use Taks window, I recommend to close it, or setup the filter, that you
will see only what you are interested in.

Regarding the code completion. I have played little bit with this. I
have found one case when the code completion is slower. It's if I invoke
the cc in top level context without any prefix. Then it takes probably 2
seconds in this project. I have entered new issue for this:
http://www.netbeans.org/issues/show_bug.cgi?id=148614

Thanks,
Petr
Quote:
It is recommended to close the task list window when working with very
large projects.

What version of NetBeans do you use? There have been many performance
improvements since 6.5 beta, you might want to try a recent dev build.
A production quality release is planned for November.

How much RAM/ what CPU clock does your workstation have?
Regards,
Tomasz Slota


On Sep 29, 2008, at 7:42 AM, dephee wrote:

Quote:
I get the same case with mathmax. The cc works too slow and I have to
wait for sometimes for the result.



Also, after saving a file, the IDE seems to hang for few seconds and
I cannot type anything (not directly displayed on screen) . But the
typed text is displayed when the IDE back to normal. It is very
annoying and slow the work very much.















Back to top
mathmax



Joined: 27 Sep 2008
Posts: 10

PostPosted: Mon Sep 29, 2008 4:08 pm    Post subject: Reply with quote

Thanks.

I use the latest night build and I get approximatively the same performances (a bit slower on my machine).
Will the result of task scanning be cached in a further version ?
Back to top
Petr Pisl
Posted via mailing list.





PostPosted: Tue Sep 30, 2008 7:15 am    Post subject: Netbeans and auto-completion Reply with quote

Yesterday I have talked with guys, who implementer this. We discussed
this possibility ant they agreed that the result should be cached.

Regards,
Petr
Quote:
Thanks.



I use the latest night build and I get approximatively the same performances (a bit slower on my machine).

Will the result of task scanning be cached in a further version ?










Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo