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 123130 - Improvements in the Ruby/RHTML/YAML editors
Summary: Improvements in the Ruby/RHTML/YAML editors
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
Depends on:
Reported: 2007-11-30 12:24 UTC by Petr Jiricka
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2007-11-30 12:24:05 UTC
Various improvements in the editing of Ruby, RHTML and YAML files.
Comment 1 piter 2008-01-10 10:33:03 UTC

In Rails fixtures you can always use some Ruby code in such way as in erb templates. For example you can write:

<% i = 1 %>
<% 5.times do %>
rec_<%= i += 1 %>
  name: <%= "Name#{i}" %>
<% end %>

Unfortunately NB editor reports it as error: "unexpected token %"
Comment 2 Torbjorn Norbye 2008-01-10 15:28:20 UTC
Hi Piter, in which filetypes do you find code like the below? Can you attach a simple sample file?
Comment 3 piter 2008-01-10 18:13:24 UTC
I mean that Rails fixtures (*.yml, wich are YAML files) allows you embed ruby code within them. This functionality
allows you to use Ruby to help you generate some large sets of testing data. I wrote example in my last comment and as I
said --- editor reports such embeded Ruby code in <% and %> as error.
Comment 4 Petr Jiricka 2008-02-21 16:01:15 UTC
Removing 6.1 planning keyword, but let's keep this open for the post-6.1 purposes.