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 257771

Summary: No Javascript validation inside a PHP file
Product: javascript Reporter: kleeh
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3 Keywords: USABILITY
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description kleeh 2016-01-30 06:45:00 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) Client VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  * Create a PHP project (OR use an existing one)
  * Put an invalid javascript statement in one of the PHP files. I used <script type="text/javascript"> alrt("Hey Dude!!"); when x == 1 y = 2;</script>
ACTUAL:
 There is no error for the "when x == 1 y = 2", and there is no error for the incorrect word "alrt"

EXPECTED:
  I should be getting syntax hillights at least, and preferably an "error" in the Error Stripe for these two thing
Comment 1 kleeh 2016-01-30 06:45:09 UTC
Created attachment 158303 [details]
IDE log
Comment 2 Tomas Mysik 2016-05-25 07:57:52 UTC
Could this be error in our JS support? The coloring is correct but a hint is missing (the hint is present in an HTML file, I just tested it).

Please evaluate, thanks.