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 270908

Summary: Overzealous code completion for HTML when editing PHP documents
Product: ide Reporter: kbush
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot showing the behavior mentioned

Description kbush 2017-06-19 16:41:51 UTC
Created attachment 164571 [details]
Screenshot showing the behavior mentioned

When editing a PHP document and outside of the PHP tags (in HTML space) hitting the Tab, Space, or Enter key activates the code completion dialog and it is populated with HTML form elements.  This behavior is *highly* disruptive to normal workflow as it always seems way out of context. 

To duplicate:
Easiest way is to create a new PHP document, delete everything from the document, hit the Tab, Space, or Enter key a few times. (Will attach an image)

Additional Notes:
- This bug does not always seem to happen when text or an element is immediately near the cursor. It seems to happen more if there is a space or new line directly near the cursor. 
- This behavior cannot be stopped by disabling "Auto Popup Completion Window" under HTML code completion settings. This setting does seem to work when editing an actual HTML file however.  I'm guessing the code completion module for PHP does it's own form of HTML completion and is to blame here.


Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)