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 235252

Summary: Completion for location object is broken without preceding window
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic, phejl, pjiricka
Priority: P2 Keywords: 7.4_HR_FIX
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2013-08-29 14:26:38 UTC
In e.g. JavaScript file, simply type

location.

and check code completion. It is missing all members of Location object. Now try 

window.location.

=> completion now contains proper data

Would it be possible to fix it before code freeze so it get to the branch? I think this is very common use case. 



Product Version: NetBeans IDE Dev (Build 201308290001)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-08-30 06:54:29 UTC
Doesn't seem to be general issue, e.g. navigator, document or history are OK
Comment 2 Vladimir Riha 2013-09-04 07:55:41 UTC
Should it be safe, I'd vote for fixing in 7.4.
Comment 3 Petr Pisl 2013-09-04 08:38:26 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/0466352084dd

I would like to ask QA for verifying and Petr H. for the fix review.
Comment 4 Petr Hejl 2013-09-04 09:04:39 UTC
The change seems to be ok.
Comment 5 Quality Engineering 2013-09-05 01:29:25 UTC
Integrated into 'main-silver', will be available in build *201309050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0466352084dd
User: Petr Pisl <ppisl@netbeans.org>
Log: #235252 - Completion for location object is broken without preceding window
Comment 6 Vladimir Riha 2013-09-05 08:07:11 UTC
Thank you, verified in trunk. Please continue with integration to release74 as described in [1].


[1] http://wiki.netbeans.org/NetBeans_74_HighResistance


Product Version: NetBeans IDE Dev (Build 201309050001)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Petr Pisl 2013-09-05 08:47:12 UTC
Transplanted to the releases: http://hg.netbeans.org/releases/rev/4702c39f7e7e
Comment 8 Vladimir Riha 2013-09-10 15:26:35 UTC
Verified in RC1

Product Version: NetBeans IDE 7.4 RC1 (Build 201309092300)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)