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 - No Javascript validation inside a PHP file
Summary: No Javascript validation inside a PHP file
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2016-01-30 06:45 UTC by kleeh
Modified: 2016-05-25 07:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (106.10 KB, text/plain)
2016-01-30 06:45 UTC, kleeh

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

  * 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>
 There is no error for the "when x == 1 y = 2", and there is no error for the incorrect word "alrt"

  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.