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 184263 - syntax errors
Summary: syntax errors
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 11:26 UTC by nbphpuser
Modified: 2011-11-03 07:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (1.60 MB, application/octet-stream)
2010-04-16 15:49 UTC, nbphpuser
Details
thread dump (95.74 KB, application/octet-stream)
2010-04-16 15:51 UTC, nbphpuser
Details
screenshot with errors (197.32 KB, image/png)
2010-04-16 15:52 UTC, nbphpuser
Details
ide log (36.40 KB, application/octet-stream)
2010-04-16 16:24 UTC, nbphpuser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nbphpuser 2010-04-15 11:26:22 UTC
getting syntax errors:

<script type="text/javascript">
    var bar = {TPL{$foo}TPL};
</script>
Comment 1 nbphpuser 2010-04-15 12:02:31 UTC
custom delimiters were defined globally
Comment 2 Martin Fousek 2010-04-15 12:14:29 UTC
I suppose that you will hit more issues related to wrong HTML Hints. So all these troubles have the same cause.

I will evaluate what can be done here...
Comment 3 nbphpuser 2010-04-16 15:49:18 UTC
Created attachment 97547 [details]
sample project
Comment 4 nbphpuser 2010-04-16 15:51:10 UTC
Created attachment 97548 [details]
thread dump

thread dump, because of slowness
Comment 5 nbphpuser 2010-04-16 15:52:49 UTC
Created attachment 97549 [details]
screenshot with errors

screenshot with errors. Sorry, don't know how to add multiple attachments at once
Comment 6 nbphpuser 2010-04-16 16:24:40 UTC
Created attachment 97552 [details]
ide log

and finally, ide log
Comment 7 Martin Fousek 2010-04-21 10:53:08 UTC
fixed in http://hg.netbeans.org/main/contrib/rev/69f4f57f3a36

should be working well in version 1.21 - it could be tomorrow on Dev UC
Comment 8 nbphpuser 2010-08-28 11:17:54 UTC
Still have issue with this. Using latest dev build

<head>
    <title></title>
    <script type="text/javascript">
        var bar = {T{$foo}T};
    </script>
</head>
<body>
<div style="width:{T{$l.width}T}px;">bar</div>
</body>


see also https://netbeans.org/bugzilla/show_bug.cgi?id=184264
Comment 9 Quality Engineering 2011-08-27 14:15:08 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0469afeee1ea
User: Martin Fousek <marfous@netbeans.org>
Log: #184263: syntax errors, #184264: unexpected symbols errors
Comment 10 Martin Fousek 2011-11-03 07:28:38 UTC
Since fix web-main #05deae5a8241 works well also for custom delimiters now.
BTW, there isn't still working properly this code with custom delimiters:
<div style="width:{T{$l.width}T}px;">bar</div>

But about errors in style tags is issue #184264.