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 157397 - Parsing the following rhtml should trigger an error for unmatch starting bracket/parentisis (, but does not
Summary: Parsing the following rhtml should trigger an error for unmatch starting brac...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 21:08 UTC by xlash911
Modified: 2011-01-28 20:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue (62.85 KB, text/plain)
2009-01-24 21:10 UTC, xlash911
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xlash911 2009-01-24 21:08:25 UTC
The following rhtml is shown having no error, but can't compile because of line 6, where there is one too many closing
bracket/parentisis.

<div id="discussion_thread_box">
  <h1>Discussion</h1>
  
  <table  border="1">
    <% for @comment in @howto.comments %>
        <%=render(:partial => 'display_comment'))%>
    <% end %>
  </table>
  <% form_remote_tag :url=> {:action => 'comment', :id => @howto} do %>
    <label for="comment_comment">description</label><br/>

    <% if user_logged_in? %>
        <%= text_field 'comment', 'comment'  %>
        <%= submit_tag 'Comment' %>
    <%else%>
        Please Log in before commenting
        <%= text_field 'comment', 'comment', :disabled  %>
        <%= submit_tag 'Comment', :disabled %>
    <% end %>
  <% end %>
</div>
Comment 1 xlash911 2009-01-24 21:10:08 UTC
Created attachment 76205 [details]
Screenshot of the issue
Comment 2 Martin Schovanek 2009-01-26 12:33:38 UTC
Reproducible in 7.0 as well.

Note:
-----
1) paste the attached code into a .html.erb file and go to the line 6, (| represents cursor):
   <%=render(:partial => 'display_comment')|)%>
2) save the doc
3) type: ;;
4) save the document
5) delete the ;;
- 'Unexpected tRPAREN' error appears.
6) save the doc
- The error disappears.
Comment 3 Erno Mononen 2009-05-29 16:37:52 UTC
Still valid.