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 235659 - Error in phtml/js/php parsing
Summary: Error in phtml/js/php parsing
Status: CLOSED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-08 20:46 UTC by danielslcosta
Modified: 2013-09-09 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
js code with php inside (5.59 KB, application/octet-stream)
2013-09-08 20:46 UTC, danielslcosta
Details
js code with php inside (10.76 KB, application/octet-stream)
2013-09-08 20:46 UTC, danielslcosta
Details
js code with php inside (20.76 KB, application/octet-stream)
2013-09-08 20:46 UTC, danielslcosta
Details
js code with php inside (5.59 KB, text/plain)
2013-09-08 20:47 UTC, danielslcosta
Details
js code with php inside (10.76 KB, text/plain)
2013-09-08 20:48 UTC, danielslcosta
Details
js code with php inside (20.76 KB, text/plain)
2013-09-08 20:48 UTC, danielslcosta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description danielslcosta 2013-09-08 20:46:07 UTC
Created attachment 139804 [details]
js code with php inside

Netbeans 7.3.1 shows various errors while parsing these files, even though they are correct.

The errors appears in JS code with PHP code inside - when I remove the PHP code the error is gone. Tried to change PHP code to use brackets instead of "foreach (): (...) endforeach;" but same problem.

Netbeans 7.4 also showed this erros (and others too), I'll put them in a separate bug report.
Comment 1 danielslcosta 2013-09-08 20:46:29 UTC
Created attachment 139805 [details]
js code with php inside
Comment 2 danielslcosta 2013-09-08 20:46:43 UTC
Created attachment 139806 [details]
js code with php inside
Comment 3 danielslcosta 2013-09-08 20:47:55 UTC
Created attachment 139807 [details]
js code with php inside

I'm uploading the files again with correct MIME type
Comment 4 danielslcosta 2013-09-08 20:48:12 UTC
Created attachment 139808 [details]
js code with php inside
Comment 5 danielslcosta 2013-09-08 20:48:24 UTC
Created attachment 139809 [details]
js code with php inside
Comment 6 Ondrej Brejla 2013-09-09 09:28:56 UTC
All examples work properly for me in the dev build.

Product Version: NetBeans IDE Dev (Build 20130909-510e581e8264)
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.8.0-29-generic running on i386; UTF-8; cs_CZ (nb)
Comment 7 danielslcosta 2013-09-09 13:44:17 UTC
So I installed the dev trunk and it didn't show any problem as well. I guess that's resolved.

Thanks.