| View previous topic :: View next topic |
| Author |
Message |
mathmax
Joined: 27 Sep 2008 Posts: 10
|
Posted: Sat Sep 27, 2008 6:55 pm Post subject: Netbeans and auto-completion |
|
|
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.
|
|
| Back to top |
|
 |
mathmax
Joined: 27 Sep 2008 Posts: 10
|
Posted: Sat Sep 27, 2008 8:41 pm Post subject: |
|
|
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
|
Posted: Sat Sep 27, 2008 9:14 pm Post subject: |
|
|
| 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
|
Posted: Sun Sep 28, 2008 6:45 am Post subject: Netbeans and auto-completion |
|
|
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
|
Posted: Sun Sep 28, 2008 12:04 pm Post subject: |
|
|
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.
|
Posted: Sun Sep 28, 2008 4:07 pm Post subject: Netbeans and auto-completion |
|
|
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
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Sun Sep 28, 2008 4:09 pm Post subject: Netbeans and auto-completion |
|
|
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
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Sun Sep 28, 2008 4:15 pm Post subject: Netbeans and auto-completion |
|
|
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
|
|
| Back to top |
|
 |
mathmax
Joined: 27 Sep 2008 Posts: 10
|
Posted: Sun Sep 28, 2008 10:41 pm Post subject: |
|
|
| 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
|
Posted: Mon Sep 29, 2008 5:42 am Post subject: |
|
|
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.
|
Posted: Mon Sep 29, 2008 8:57 am Post subject: Netbeans and auto-completion |
|
|
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.
|
Posted: Mon Sep 29, 2008 12:28 pm Post subject: Netbeans and auto-completion |
|
|
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
|
Posted: Mon Sep 29, 2008 4:08 pm Post subject: |
|
|
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.
|
Posted: Tue Sep 30, 2008 7:15 am Post subject: Netbeans and auto-completion |
|
|
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 |
|
 |
|