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 - Overzealous code completion for HTML when editing PHP documents
Summary: Overzealous code completion for HTML when editing PHP documents
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-19 16:41 UTC by kbush
Modified: 2017-06-19 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing the behavior mentioned (54.89 KB, image/png)
2017-06-19 16:41 UTC, kbush
Details

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