This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 148655 [details] no code completion. As you can see in my screencast, sometimes the code completion works and sometimes not. If I write foo and wait for the completion all is fine, then I type "." and I see the properties. If I type fooBar. and wait for it, all is fine too. The problem is, when I type "fooBar." to fast, the code completion doesn't work. I could reproduce it in Java and JS files atm, but I think it will happen in other cases too. Regards Chris
Created attachment 148656 [details] IDE log Added IDE log.
Unfortunately, I cannot reproduce the similar behavior in Java editor. Could you please attach a sample test case? Thanks.
Created attachment 148713 [details] Java class lib example. It's only an example, didn't compile it but it doesn't care. As you can see it inside the ctor, you have to write "System." fast. WITH the dot. After this, nothing happens. The same I can reproduce inside JS files, maybe in PHP too but I didn't test it yet. Regards Chris
Unfortunately, still no luck in reproducing the problem :-(
Which system do you use? I have windows 7, 64 bit.
Maybe it's a problem on windows(?).
Created attachment 151357 [details] Fast code completion As you can see it in this screen cast, Visual Studio 2012 has no delay. Every code completion appears after onKeyDown instantly, not with a delay for netbeans or whatever.
Created attachment 151358 [details] Slower code completion Here you can see that after maybe 200 or 300 or more or less ms, the list appears. So The code completion in visual studio is faster. I can't write the hole word without having the list is visual studio. But in netbeans it's possible. I can write overflow and the list appears after I end typing. Should I create a new issue for this because this is not only a JAVA problem, it's about the whole code completion inside netbeans. Maybe ReSharper in Visual Studio is the reason why it's faster. So an option to change the delay in netbeans would be find too.
It happens in PHP, JAVA, JS, CSS, XML and HTML. These are the languages which I tested. I will test C/C++ too.
OK - let's try to display code completion without default delay. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/2a31cf527bcb
Thx, sounds nice. Will test if there is an other unexpacted behaviour. I prefer to have an numeric field to set the delay for code completion. Because if there are some problem, you have to change it again but if we have an option field, we can set it by our own. There is a ticket for this: https://netbeans.org/bugzilla/show_bug.cgi?id=193266 Regards Chris
Integrated into 'main-silver', will be available in build *201504150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2a31cf527bcb User: Dusan Balek <dbalek@netbeans.org> Log: Issue #246410: No code completion if you write the whole word to fast - fixed.
I can reproduce the problem in the latest nightly, for me 201507130001. It happens for JavaScript files, when I check the option for code completion (All possible situations) Than you can see, what happens, if you have a look at the no code completion gif. When I don't use this option, everything is fine after hit the ".". For me all possible solution is my choice and when I type fooBar. to fast, I got the hint that there is a semicolon is missing and no code completion comes up. Should I use the mailing list for netcat?
Happens in Java files too.
Unfortunately, I cannot reproduce the issue in Java. Reassigning to JavaScript to investigate why setting the 'All possible situations' option blocks an automatic code completion invocation.
Should be fixed I think. But is there really no delay anymore?
In JavaScript counting code completion take some times. I'm trying to speed up, but ... I have noticed that there can be problem in a case, when you write something like foo. , then after the dot the javascript cc is counted, but because sometimes it needs more time, user press ctrl+space and in this moment is started code completion for 'All possible situation'. Can be it this case?
First I think this case can happen, maybe accidentally or for methods on the object to use them. Second in JS files the code completion seems to be fixed when I write the word too fast but now I figured it out in a java file. For this please see my little screen capture "toFast.gif". When I type "super." to fast, the code completion never comes up.
Created attachment 157640 [details] toFast.gif
Assigning back to editor