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 228445 - No code completion in "New Watch" dialog invoked outside of used Editor area
Summary: No code completion in "New Watch" dialog invoked outside of used Editor area
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-10 13:40 UTC by Jiri Kovalsky
Modified: 2013-05-27 10:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of not working code completion in "New Watch" dialog. (42.40 KB, image/png)
2013-04-10 13:40 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2013-04-10 13:40:50 UTC
Created attachment 133417 [details]
Screenshot of not working code completion in "New Watch" dialog.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.0.0-12-generic running on i386; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.3
Cache directory: /home/cesilko/.cache/netbeans/7.3

Description:
============
If user right clicks the empty area in Editor below the last line with code and invokes "New Watch" action from the popup menu, the dialog does not provide code completion.

Steps to reproduce:
===================
1. Open MemoryView project.
2. Open LineBreakpoints.java file and scroll down as much as you can.
3. Toggle line 200 breakpoint: System.out.println("Breakpoint");
4. Right click in Editor and invoke "Debug" from its popup menu.
5. When the breakpoint is hit, right click the empty area of Editor below the last line of the class and invoke "New Watch" from popup menu.
6. Type "str" as "Watch Expression" and press Ctrl+Space.
7. Instead of "string" item you get "No suggestions".
Comment 1 Martin Entlicher 2013-05-18 16:29:23 UTC
Fixed by changeset:   254073:11deff1b5568
http://hg.netbeans.org/core-main/rev/11deff1b5568
Comment 2 Quality Engineering 2013-05-20 02:23:04 UTC
Integrated into 'main-golden', will be available in build *201305192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/11deff1b5568
User: mentlicher@netbeans.org
Log: #228445: JPDA debugger's new watch action provider added, so that it's invoked when a debugger session is active and provides debugger's context in code-completion.
Comment 3 Jiri Kovalsky 2013-05-27 10:47:18 UTC
Product Version: NetBeans IDE Dev (Build 201305262300)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev