Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Little indenting bug in Vim's ruby.vim (version 2005-10-07)

Reply
Thread Tools

Little indenting bug in Vim's ruby.vim (version 2005-10-07)

 
 
Vincent Foley
Guest
Posts: n/a
 
      04-05-2006
Hi,

A few months ago, I posted a message in which I said I found a bug in
Vim's Ruby indenting. I tried the version from October 7th today, and
the bug I had reported has been fixed. However, I uncovered a new one:
blocks in arrays.

The following code (indented in Emacs)
arr = [
MyClass.new { |x|
x.some_method
},

MyClass.new { |x|
x.some_other_method
}
]

Is indented like this in vim:
arr = [
MyClass.new { |x|
x.some_method
},

MyClass.new { |x|
x.some_other_method
}
]


I know full well that vim script is a horrible language and that
getting indenting right must be a very hard task, but I hope someone
with enough knowledge of Vim can fix this issue.

 
Reply With Quote
 
 
 
 
Gavin Sinclair
Guest
Posts: n/a
 
      04-09-2006

Vincent Foley wrote:

> A few months ago, I posted a message in which I said I found a bug in
> Vim's Ruby indenting. I tried the version from October 7th today, and
> the bug I had reported has been fixed. However, I uncovered a new one:
> blocks in arrays.


Hi Vince,

I can't promise anything, but I passed the report on to the vim-ruby
mailing list. Sorry to say we usually have a slow turnaround.

Cheers,
Gavin

 
Reply With Quote
 
 
 
 
Martin DeMello
Guest
Posts: n/a
 
      04-09-2006
Gavin Sinclair <(E-Mail Removed)> wrote:
>
> Vincent Foley wrote:
>
> > A few months ago, I posted a message in which I said I found a bug in
> > Vim's Ruby indenting. I tried the version from October 7th today, and
> > the bug I had reported has been fixed. However, I uncovered a new one:
> > blocks in arrays.

>
> Hi Vince,
>
> I can't promise anything, but I passed the report on to the vim-ruby
> mailing list. Sorry to say we usually have a slow turnaround.


What's the recommended place to file a bug? I entered one into the
rubyforge tracker, but if the mailing list is preferred i'll refile it.

martin
 
Reply With Quote
 
Vincent Foley
Guest
Posts: n/a
 
      04-09-2006
No problem, like I said, I know how sucky vim script is, so I can
understand not wanting to fix the bug right away.

 
Reply With Quote
 
Gavin Sinclair
Guest
Posts: n/a
 
      04-10-2006

Martin DeMello wrote:

> > I can't promise anything, but I passed the report on to the vim-ruby
> > mailing list. Sorry to say we usually have a slow turnaround.

>
> What's the recommended place to file a bug? I entered one into the
> rubyforge tracker, but if the mailing list is preferred i'll refile it.


I'd say the tracker is preferred. No need to make people join a
mailing list just to file a bug.

I have no opposition to problems simply being discussed in this forum
either. Sometimes it happens that people don't have the latest
version.

Thanks for filing,
Gavin

 
Reply With Quote
 
Gavin Sinclair
Guest
Posts: n/a
 
      04-10-2006

Martin DeMello wrote:

> > I can't promise anything, but I passed the report on to the vim-ruby
> > mailing list. Sorry to say we usually have a slow turnaround.

>
> What's the recommended place to file a bug? I entered one into the
> rubyforge tracker, but if the mailing list is preferred i'll refile it.


I'd say the tracker is preferred. No need to make people join a
mailing list just to file a bug.

I have no opposition to problems simply being discussed in this forum
either. Sometimes it happens that people don't have the latest
version.

Thanks for filing,
Gavin

 
Reply With Quote
 
Gavin Sinclair
Guest
Posts: n/a
 
      04-10-2006

Crap. Sorry about the double post!

Gavin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
1 little 2 little 3 little Kennedys dale Digital Photography 0 03-23-2008 01:03 PM
Indenting INPUT Yama ASP .Net 1 11-14-2005 01:04 PM
Indenting text from an arraylist... RAB ASP .Net 2 11-06-2005 02:16 AM
indenting dropDownList items when pulling from XML Darrel ASP .Net 2 10-31-2004 01:53 AM
Indenting with XHTML John HTML 29 09-13-2004 01:22 PM



Advertisments