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 - Completion for location object is broken without preceding window
Summary: Completion for location object is broken without preceding window
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-08-29 14:26 UTC by Vladimir Riha
Modified: 2013-09-10 15:26 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)