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 105539

Summary: "No suggestions" tooltip blocks Tab and keeps being open
Product: xml Reporter: fordfrog <fordfrog>
Component: CodeAssignee: Samaresh Panda <samaresh>
Status: VERIFIED FIXED    
Severity: blocker CC: mikhailmatveev, pcw, tonybeckham
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 138486    

Description fordfrog 2007-06-04 10:44:18 UTC
In XMl editor, I have problem when editing XML. In my case, I press Enter to
align my code, then press Tab to indent it, and then "No suggestions" tooltip
appears and blocks Tab key so I cannot indent more. If I want to indent that
line more, I have to press Esc and then I can press Tab again. After this, "No
suggestions" tooltip appears again and while moving the cursor using arrows it
keeps being displayed till I press Esc again. This behavior is annoying.

As a minimum, it would be good if Tab key would not be blocked if "No
suggestions" tooltip is displayed.

The other thing is that the XML file contains no DTD so I'm not sure there could
be any suggestions at all.
Comment 1 Samaresh Panda 2007-09-26 23:50:27 UTC
We should try to fix this for 6.0.
Comment 2 Samaresh Panda 2008-01-09 17:13:51 UTC
Would you be able to attach the xml file? I do not see "No suggestion" after tab. I'm using Netbeans 6.0 in Windows
Vista and JDK1.6.0_03. Have you changed any settings for XML editing?
Comment 3 Mikhail Matveev 2008-01-21 15:54:38 UTC
Can't reproduce for current build on WinXP.
Comment 4 tonybeckham 2008-01-22 21:37:33 UTC
I can reproduce the problem of tab being disabled when "no suggestions" is displayed.

System info:
Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)

To reproduce:
1. create a new xmlDocument
2. inside of the root tag type "<" ("No Suggestions" is displayed)
3. press backspace to delete "<" and the meesage is still there
4. try and use tab, you cannot until you escape the message
Comment 5 tonybeckham 2008-01-22 21:39:04 UTC
Reproducible on Linux as well.

Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Comment 6 Samaresh Panda 2008-01-26 03:26:15 UTC
*** Issue 115917 has been marked as a duplicate of this issue. ***
Comment 7 Samaresh Panda 2008-01-26 03:26:59 UTC
*** Issue 118753 has been marked as a duplicate of this issue. ***
Comment 8 Samaresh Panda 2008-06-24 04:54:47 UTC
06-23-2008: test with a freshly made build. Seems to be working fine.
Comment 9 Samaresh Panda 2008-06-24 05:05:12 UTC
Actually I'm able to reproduce this, very hard to reproduce though. But once "no suggestion" appears, tab doesn't work.
Comment 10 Samaresh Panda 2008-06-27 00:39:48 UTC
There won't be no suggestion all the time. If there is suggestion while typing, it'll be shown, else no. However, it'll
show no suggestion if requested by user that is if user presses Ctrl+Space.

Fix integrated: http://hg.netbeans.org/main?cmd=changeset;node=d822324e23df.
Comment 11 tonybeckham 2008-06-27 18:07:16 UTC
Fix Verified, works as described in the fix.

Product Version: NetBeans IDE Dev (Build 200806270102)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)