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

Summary: Parsing the following rhtml should trigger an error for unmatch starting bracket/parentisis (, but does not
Product: ruby Reporter: xlash911 <xlash911>
Component: RHTMLAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of the issue

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.