[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Refactoring IDE for Ruby ?

Squeak Smalltalk

8/3/2006 11:32:00 AM

Hi,

I need to do some refactoring of my Ryby code.
Where can I find a ide with refactoring features ?

Running. Mac Os X

Best R.
W.

14 Answers

David Pollak

8/3/2006 1:01:00 PM

0

No refactoring IDEs for Ruby that I know of.

On OS X, I use TextMate... an awesome editor... It has a lot of Ruby
constructs built in.

There's also RadRails http://www.rad... It's editor isn't as
nice as TextMate (although it does have better emacs key bindings) but
it's got better rails integration.

My 2 cents.

Thanks,

David

On 8/3/06, Squeak Smalltalk <wallenberg@gmail.com> wrote:
> Hi,
>
> I need to do some refactoring of my Ryby code.
> Where can I find a ide with refactoring features ?
>
> Running. Mac Os X
>
> Best R.
> W.
>
>


--
--------
David Pollak's Ruby Playground
http://d...

Mat Schaffer

8/3/2006 1:20:00 PM

0


On Aug 3, 2006, at 9:01 AM, David Pollak wrote:

> No refactoring IDEs for Ruby that I know of.
>
> On OS X, I use TextMate... an awesome editor... It has a lot of Ruby
> constructs built in.
>
> There's also RadRails http://www.rad... It's editor isn't as
> nice as TextMate (although it does have better emacs key bindings) but
> it's got better rails integration.

RadRails also (by virtue of Eclipse) has really amazing version
control. And there's even a (commercial) plugin that makes the
editor operate a lot like vim :)
-Mat

M. Edward (Ed) Borasky

8/3/2006 2:32:00 PM

0

Mat Schaffer wrote:
>
> RadRails also (by virtue of Eclipse) has really amazing version
> control. And there's even a (commercial) plugin that makes the editor
> operate a lot like vim :)
Speaking of vim ... vim 7.0 introduced a "feature" where something,
presumably of interest to someone, is displayed in the leftmost two
columns by default. I haven't been able to figure out what it's called
or how to turn it off. It's really annoying to me ... a combination of
not knowing what it is or how to turn it off, losing two columns of
terminal width, and having it propagate when I do a copy and paste into
an email. Does anyone on this list know how to get rid of it?



Logan Capaldo

8/3/2006 2:44:00 PM

0


On Aug 3, 2006, at 10:32 AM, M. Edward (Ed) Borasky wrote:

> Mat Schaffer wrote:
>>
>> RadRails also (by virtue of Eclipse) has really amazing version
>> control. And there's even a (commercial) plugin that makes the
>> editor operate a lot like vim :)
> Speaking of vim ... vim 7.0 introduced a "feature" where something,
> presumably of interest to someone, is displayed in the leftmost two
> columns by default. I haven't been able to figure out what it's
> called or how to turn it off. It's really annoying to me ... a
> combination of not knowing what it is or how to turn it off, losing
> two columns of terminal width, and having it propagate when I do a
> copy and paste into an email. Does anyone on this list know how to
> get rid of it?
>
>
>

I'm running vim 7, I do not see this extra information in the
leftmost two columns. What do you see there?



M. Edward (Ed) Borasky

8/3/2006 2:58:00 PM

0

Logan Capaldo wrote:
>
> On Aug 3, 2006, at 10:32 AM, M. Edward (Ed) Borasky wrote:
>
>> Mat Schaffer wrote:
>>>
>>> RadRails also (by virtue of Eclipse) has really amazing version
>>> control. And there's even a (commercial) plugin that makes the
>>> editor operate a lot like vim :)
>> Speaking of vim ... vim 7.0 introduced a "feature" where something,
>> presumably of interest to someone, is displayed in the leftmost two
>> columns by default. I haven't been able to figure out what it's
>> called or how to turn it off. It's really annoying to me ... a
>> combination of not knowing what it is or how to turn it off, losing
>> two columns of terminal width, and having it propagate when I do a
>> copy and paste into an email. Does anyone on this list know how to
>> get rid of it?
>>
>>
>>
>
> I'm running vim 7, I do not see this extra information in the leftmost
> two columns. What do you see there?

'>def my-first-ruby-program
puts "What's that junk in the left two columns?"
0>end

~


~


~


~


~


~


~


~


~


~


~


~


~


~


~


~


~


~


~


~

"ruby-test.rb" [converted] 3L, 81C
3,1 All




Logan Capaldo

8/3/2006 3:23:00 PM

0


On Aug 3, 2006, at 10:57 AM, M. Edward (Ed) Borasky wrote:

> Logan Capaldo wrote:
>>
>> On Aug 3, 2006, at 10:32 AM, M. Edward (Ed) Borasky wrote:
>>
>>> Mat Schaffer wrote:
>>>>
>>>> RadRails also (by virtue of Eclipse) has really amazing version
>>>> control. And there's even a (commercial) plugin that makes the
>>>> editor operate a lot like vim :)
>>> Speaking of vim ... vim 7.0 introduced a "feature" where
>>> something, presumably of interest to someone, is displayed in the
>>> leftmost two columns by default. I haven't been able to figure
>>> out what it's called or how to turn it off. It's really annoying
>>> to me ... a combination of not knowing what it is or how to turn
>>> it off, losing two columns of terminal width, and having it
>>> propagate when I do a copy and paste into an email. Does anyone
>>> on this list know how to get rid of it?
>>>
>>>
>>>
>>
>> I'm running vim 7, I do not see this extra information in the
>> leftmost two columns. What do you see there?
>
> '>def my-first-ruby-program
> puts "What's that junk in the left two columns?"
> 0>end
> ~
[snip]
>

It _almost_ looks like fold indicators

What happends if you do :set foldcolumn=0


Chad Perrin

8/3/2006 6:41:00 PM

0

On Fri, Aug 04, 2006 at 12:23:07AM +0900, Logan Capaldo wrote:
>
> On Aug 3, 2006, at 10:57 AM, M. Edward (Ed) Borasky wrote:
>
> >Logan Capaldo wrote:
> >>
> >>I'm running vim 7, I do not see this extra information in the
> >>leftmost two columns. What do you see there?

Ditto -- I'm using 7, and I don't see anything like that.


> >
> >'>def my-first-ruby-program
> > puts "What's that junk in the left two columns?"
> >0>end
> > ~
> [snip]
> >
>
> It _almost_ looks like fold indicators

I really don't think that's what it is. I've seen it somewhere before,
but I'm drawing a blank right now. Regardless, it seems that there's a
nondefault setting that the rest of us don't have. Perhaps it has
something to do with the way Vim was installed in this case, if it
hasn't been set explicitly -- or perhaps there have been some
configuration changes made via an example .vimrc found on the web, or
something like that. I can only guess.


>
> What happends if you do :set foldcolumn=0

Simply entering
:set foldcolumn
should tell you what is currently set for the foldcolumn option.

Unfortunately, Google won't let me search for the greater than symbol,
and I'm having a tough time finding something relevant in the Vim
documentation on this computer, so I'm not getting very far in
attempting to figure out what's going on. Perhaps we could be of more
help if we saw the /etc/vim/vimrc, /usr/share/vim/vimrc, and
of course ~/.vimrc files. Erm. Assuming this is on Linux. What's the
operating system? I suppose I should have asked that first.

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
This sig for rent: a Signify v1.14 production from http://www.d...

M. Edward (Ed) Borasky

8/4/2006 3:26:00 AM

0

Chad Perrin wrote:
> On Fri, Aug 04, 2006 at 12:23:07AM +0900, Logan Capaldo wrote:
>
>> On Aug 3, 2006, at 10:57 AM, M. Edward (Ed) Borasky wrote:
>>
>>
>>> Logan Capaldo wrote:
>>>
>>>> I'm running vim 7, I do not see this extra information in the
>>>> leftmost two columns. What do you see there?
>>>>
>
> Ditto -- I'm using 7, and I don't see anything like that.
>
>
>
>>> '>def my-first-ruby-program
>>> puts "What's that junk in the left two columns?"
>>> 0>end
>>> ~
>>>
>> [snip]
>>
>> It _almost_ looks like fold indicators
>>
>
> I really don't think that's what it is. I've seen it somewhere before,
> but I'm drawing a blank right now. Regardless, it seems that there's a
> nondefault setting that the rest of us don't have. Perhaps it has
> something to do with the way Vim was installed in this case, if it
> hasn't been set explicitly -- or perhaps there have been some
> configuration changes made via an example .vimrc found on the web, or
> something like that. I can only guess.
>
>
>
>> What happends if you do :set foldcolumn=0
>>
>
> Simply entering
> :set foldcolumn
> should tell you what is currently set for the foldcolumn option.
>
> Unfortunately, Google won't let me search for the greater than symbol,
> and I'm having a tough time finding something relevant in the Vim
> documentation on this computer, so I'm not getting very far in
> attempting to figure out what's going on. Perhaps we could be of more
> help if we saw the /etc/vim/vimrc, /usr/share/vim/vimrc, and
> of course ~/.vimrc files. Erm. Assuming this is on Linux. What's the
> operating system? I suppose I should have asked that first.
>
>
Gentoo Linux and CygWin are both doing it. I haven't tried the Windows
one and I don't have access to a Mac. I think I'm going to try the Vim
web site and see if they have a mailing list.

It has something to do with syntax coloring and may only happen with
some languages. When I first open a file, it's not there, but a few
seconds into the edit, the colors and the two mysterious columns appear.
IIRC it happens with Ruby and Perl, but not with R. And when I turn
":syn off" it doesn't go away.

Anyhow, I was hoping someone else here at least knew what it was called.
I promised myself I'd learn "emacs" some day anyhow ... :)



Martin DeMello

8/4/2006 4:29:00 AM

0

On 8/4/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:
> >
> Gentoo Linux and CygWin are both doing it. I haven't tried the Windows
> one and I don't have access to a Mac. I think I'm going to try the Vim
> web site and see if they have a mailing list.
>
> It has something to do with syntax coloring and may only happen with
> some languages. When I first open a file, it's not there, but a few
> seconds into the edit, the colors and the two mysterious columns appear.
> IIRC it happens with Ruby and Perl, but not with R. And when I turn
> ":syn off" it doesn't go away.

Try creating a new user with a minimal vimrc and see if it goes away?
I run vim7 under gentoo with zero problems (I'm using the vim-ruby gem
for the ruby-specific stuff and matchit.vim). Here's my vimrc:

set nocompatible
syntax on
filetype on
filetype indent on
filetype plugin on
set sw=2
set ignorecase
set smartcase
set showmatch
set incsearch


martin

Chad Perrin

8/4/2006 6:55:00 AM

0

On Fri, Aug 04, 2006 at 12:26:24PM +0900, M. Edward (Ed) Borasky wrote:
> >
> Gentoo Linux and CygWin are both doing it. I haven't tried the Windows
> one and I don't have access to a Mac. I think I'm going to try the Vim
> web site and see if they have a mailing list.

How did you install it? Did you use emerge on Gentoo? Did you compile
from tarball for Cygwin? As I mentioned, I'm using Debian
(Etch/Testing, specifically), and though I have the same version number
I'm not having the same problem. Then again, I haven't tried it with
syntax highlighting.


>
> It has something to do with syntax coloring and may only happen with
> some languages. When I first open a file, it's not there, but a few
> seconds into the edit, the colors and the two mysterious columns appear.
> IIRC it happens with Ruby and Perl, but not with R. And when I turn
> ":syn off" it doesn't go away.

It sounds like there's something going on with your syntax highlighting
configuration.

Have you tried opening an R file while it's already open in a Ruby or
Perl file, or vice-versa, to check behavior?

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
Brian K. Reid: "In computer science, we stand on each other's feet."