FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

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

Netbeans 6.7 stalling while starting to write an instance method name

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
ReggieB



Joined: 21 Oct 2008
Posts: 29

PostPosted: Thu Jul 02, 2009 1:06 pm    Post subject: Netbeans 6.7 stalling while starting to write an instance method name Reply with quote

I've recently upgraded from 6.5 to 6.7. I'm getting a problem where NetBeans stalls for a minute or so as I enter text. It seems to happen as I start to enter the method name of an instance. For example, if I had a class Job and had an instance job, I'm getting stalling when I write things like:

job.method_name

In this example, NetBeans stalls around the first or second letter of "method_name". The stall last for a minute or two so is quite disruptive.

I think what is happening is it is stalling whilst generating the "Smart Code Completion" dialogues. If so the dialogues don't open.

No error messages are generated and normal operation returns after I've waited for the minute or so that the stall lasts. During a stall the cursor disappears, netbean.exe hogs the CPU and I can do little on the PC until it finishes.

UPDATE - it is code completion. If I turn off "Auto Popup Completion Window" and "Auto Popup Documentation Window" in options (Editor > Code Completion) the problem goes away.

Not a problem for me as I prefer not to having the code completion automatically popup - (if I need a hint I'd rather ask for it), but others could find it annoying.

I've noticed it when I'm working on the code for the class that I'm referencing. For example, if a Job method needs to call an instance of job itself. I'm currently writing a method that creates new jobs based on data from elsewhere, so the method creates a new job, manipulates it and then returns it.

Also, I believe I turned the automatic popup off in 6.5, so 6.7 doesn't seem to have inherited that option setting.

I'm running on XP Pro, with 785200k RAM, and I often run with around that memory all used and my PC page caching a lot. That is the case when at the moment when I've noticed the problem today (I was having the same problem yesterday).
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Thu Jul 02, 2009 1:24 pm    Post subject: Netbeans 6.7 stalling while starting to write an instance method name Reply with quote

Hello,

That sounds pretty annoying. We had several performance problems in 6.7
dev builds wrt. code completion, but they should be fixed in 6.7 final
(apparently that is not the case). I would really appreciate if you
could take a profiler snapshot for this and send it to me, please see

http://wiki.netbeans.org/NewAndNoteworthyMilestone2NB67#section-NewAndNoteworthyMilestone2NB67-ProfileMeNow

for instructions - start profiling before invoking the code completion
popup and stop it after the window is displayed. Note that you
need to activate the Java Profiler plugin first (in Tools -> Plugins) to
see the profile button.

Before doing that, please make sure that Enchanced Type Inference in
Tools -> Options -> Misc -> Ruby is off.

Thanks in advance!

Erno



ReggieB wrote:
Quote:
I've recently upgraded from 6.5 to 6.7. I'm getting a problem where NetBeans stalls for a minute or so as I enter text. It seems to happen as I start to enter the method name of an instance. For example, if I had a class Job and had an instance job, I'm getting stalling when I write things like:



job.method_name



In this example, NetBeans stalls around the first or second letter of "method_name". The stall last for a minute or two so is quite disruptive.



I think what is happening is it is stalling whilst generating the "Smart Code Completion" dialogues. If so the dialogues don't open.



No error messages are generated and normal operation returns after I've waited for the minute or so that the stall lasts. During a stall the cursor disappears, netbean.exe hogs the CPU and I can do little on the PC until it finishes.



UPDATE - it is code completion. If I turn off "Auto Popup Completion Window" and "Auto Popup Documentation Window" in options (Editor > Code Completion) the problem goes away.



Not a problem for me as I prefer not to having the code completion automatically popup - (if I need a hint I'd rather ask for it), but others could find it annoying.



I've noticed it when I'm working on the code for the class that I'm referencing. For example, if a Job method needs to call an instance of job itself. I'm currently writing a method that creates new jobs based on data from elsewhere, so the method creates a new job, manipulates it and then returns it.



Also, I believe I turned the automatic popup off in 6.5, so 6.7 doesn't seem to have inherited that option setting.



I'm running on XP Pro, with 785200k RAM, and I often run with around that memory all used and my PC page caching a lot. That is the case when at the moment when I've noticed the problem today (I was having the same problem yesterday).











Back to top
ReggieB



Joined: 21 Oct 2008
Posts: 29

PostPosted: Thu Jul 02, 2009 4:17 pm    Post subject: Re: Netbeans 6.7 stalling while starting to write an instance method name Reply with quote

Thank you Erno,

I'm installing the profiler plug-in now. However that looks like it will take a little time as the Java and Ant plug-ins also need to be installed as the profiler is dependant on those. As its close to my going home time, it will probably be tomorrow before I run the profile tests.

Erno Mononen wrote:

Before doing that, please make sure that Enchanced Type Inference in
Tools -> Options -> Misc -> Ruby is off.

Yes, they were already off.

Rob
Back to top
View user's profile Send private message
ReggieB



Joined: 21 Oct 2008
Posts: 29

PostPosted: Thu Jul 09, 2009 2:36 pm    Post subject: Reply with quote

Erno,

Sorry for the delay in getting back to you.

I got the profiler installed, but then the problem disappeared. However, I'm getting the long pauses again, but I am finding it is not predictable. It seems to be associated with me having the IDE opened for a long time (days) so perhaps we are looking at a memory leak.

I've taken a current profile in the hope that might indicate where the problem is. However, you said send it to you, but I can see a way to e-mail you. Can you PM me an e-mail address?

Reggie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
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