Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-2343

Ruby Formatter Throwing Errors in ERB for mixed HTML/Ruby blocks

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Ruby

      Description

      {html}<div><p>When I use the Source -> Format command I'm getting an error
      in the editor on really simple views.</p>
      <pre>
      <code>Code formatter error (parsing) - Ruby parser error</code>
      </pre>
      <p>This seems to happen in any file where there is a block...
      example:</p>
      <pre>
      <code><%= div_for contact, :class => 'record' do %>
      <%= link_to(contact.name, admin_contact_path(contact)) %>
      <% end %></code>
      </pre>
      <p>I think this error has cropped up recently (since 3.0.1) but I'm
      not sure the editor ever formatted blocks like this correctly</p></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                aaronchi aaronchi
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code