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.

Bug 219190 - No code completion for simple JS and also for Jquery
Summary: No code completion for simple JS and also for Jquery
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 15:43 UTC by Monomachus
Modified: 2013-01-22 13:32 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code completion not working (6.47 MB, video/mp4)
2012-09-28 23:51 UTC, Monomachus
Details
Project to reproduce (7.64 MB, application/x-zip-compressed)
2012-09-29 14:06 UTC, Monomachus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Monomachus 2012-09-28 15:43:13 UTC
While doing sanity tests http://wiki.netbeans.org/TS_73_JavaScriptEditor#Test_suite:_Code_Completion

No code completion is there.

Also when doing Jquery Completion http://wiki.netbeans.org/TS_73_JavaScriptEditor#Test_suite_jQuery

No code completion found. 

May be it's something on my PC because I assume you'd find something like this internally right?
Comment 1 Vladimir Riha 2012-09-28 15:49:19 UTC
What exactly does not work for you and which build do you use? It seems to be working for me

Product Version: NetBeans IDE Dev (Build web-main-8699-on-20120928)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Linux version 3.5.0-4-generic running on amd64; UTF-8; en_US (nb)
Comment 2 Monomachus 2012-09-28 16:58:49 UTC
I use this one. 

Product Version: NetBeans IDE 7.3 Beta (Build 201209232010)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Windows Vista version 6.0 running on x86; Cp1251; en_US (nb)

I mean I've tested everything, each line that is marked as Task, not a single time there is completion.
Comment 3 Vladimir Riha 2012-09-28 18:47:01 UTC
Strange, I don't have this build right now, but just to be sure. Did you uncomment the line when trying code completion?

So for instance with this:
// TASK - check the function and properties of Math are offered
    // Maht.|

Did you try code completion like this:
// TASK - check the function and properties of Math are offered
     Maht.

(please notice missing "//" and "|" which represents cursor position)
Comment 4 Vladimir Riha 2012-09-28 19:07:24 UTC
(just noticed the typo in Math, will fix the file asap)
Comment 5 Monomachus 2012-09-28 19:50:28 UTC
Yes of course I did that. And I also noticed the typo and fixed it locally. 
But code completion still wasn't working. 

(In reply to comment #3)
> Strange, I don't have this build right now, but just to be sure. Did you
> uncomment the line when trying code completion?
> 
> So for instance with this:
> // TASK - check the function and properties of Math are offered
>     // Maht.|
> 
> Did you try code completion like this:
> // TASK - check the function and properties of Math are offered
>      Maht.
> 
> (please notice missing "//" and "|" which represents cursor position)
Comment 6 Vladimir Riha 2012-09-28 21:35:45 UTC
still can't reproduce 

Product Version: NetBeans IDE 7.3 Beta (Build 201209272333)
Comment 7 Monomachus 2012-09-28 23:51:25 UTC
Created attachment 125088 [details]
Code completion not working

Still reproducible with the new beta 
Product Version: NetBeans IDE 7.3 Beta (Build 201209272333)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Windows Vista version 6.0 running on x86; Cp1251; en_US (nb)
Comment 8 Vladimir Riha 2012-09-29 12:28:09 UTC
Thanks for the screencast, it's weird that even after you pressed Ctrl+Space that not even "No suggestions" does appear.
Comment 9 Monomachus 2012-09-29 14:06:38 UTC
Created attachment 125100 [details]
Project to reproduce

I've figured out today that the problem is in the project.
I mean, I've tried in other projects and I don't have this problem. In other projects there is autocomplete.

Now for you to reproduce.
1. Unzip the project in its folder
2. Download Sencha Touch 2 SDK and unzip it somewhere http://www.sencha.com/products/touch/download/2.0.1.1/
3. Add to PHP include path this unzipped SDK and put some broken path to it also. In my case I have the SDK included and also some broken path. (Because I use the project in 2 places I've got two different SDK locations so at a time there will be only 1 valid).
4. Open someJqueryStuff.js and make the editions.

The reason is probably because in the included SDK there are a lot of JS files, and when scanning project some error happen(I think) that breaks the autocomplete.
Comment 10 Petr Pisl 2012-10-02 13:13:08 UTC
I have found that there is OutOfMemory exception during scanning sencha. I have fix this http://hg.netbeans.org/web-main/rev/a571d908cab6 .

So could you please try it in a tomorrow's build? Let me know whether works for you or not. You can also reopen the issue, if will not work. Thanks
Comment 11 Quality Engineering 2012-10-03 02:41:27 UTC
Integrated into 'main-golden', will be available in build *201210030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a571d908cab6
User: Petr Pisl <ppisl@netbeans.org>
Log: #219190 - No code completion for simple JS and also for Jquery
Comment 12 Vladimir Riha 2013-01-22 13:32:56 UTC
I tried some cc in project with Sencha Touch sources in it and it works for me => verified

Product Version: NetBeans IDE 7.3 RC1 (Build 201301212100)
Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)