Format code, IDE

outside of eclipse or netbeans plugins, is there an open source ruby
IDE?

Even just using GNU fm to format code would be sufficient, but I’m not
sure how to go about that. For now I find myself firing up netbeans
from
time to time, which is inconvenient, to say the least.

I tried installing arcadia, but but that failed :frowning:

thufir@ARRAKIS:~/projects/aggregator$
thufir@ARRAKIS:~/projects/aggregator$
thufir@ARRAKIS:~/projects/aggregator$ gem install arcadia
WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and
/var/lib/gems/1.8/bin aren’t both writable.
WARNING: You don’t have /home/thufir/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while…
ERROR: Error installing arcadia:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install arcadia
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /home/thufir/.gem/ruby/1.8/gems/
linecache-0.43 for inspection.
Results logged to /home/thufir/.gem/ruby/1.8/gems/linecache-0.43/ext/
gem_make.out
thufir@ARRAKIS:~/projects/aggregator$
thufir@ARRAKIS:~/projects/aggregator$

thanks,

Thufir

On Wed, Sep 23, 2009 at 2:53 AM, Thufir [email protected] wrote:

outside of eclipse or netbeans plugins, is there an open source ruby IDE?

Even just using GNU fm to format code would be sufficient, but I’m not
sure how to go about that. For now I find myself firing up netbeans from
time to time, which is inconvenient, to say the least.

If your needs are a simple as formatting code, both emacs and vim (in
order of alphabet) have ruby support which will do that and more.


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

I tried installing arcadia, but but that failed :frowning:
/usr/bin/ruby1.8 extconf.rb install arcadia
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:1

Looks like you may need some packages

http://mentalized.net/journal/2006/01/24/no_such_file_to_load_mkmf

Also checkout http://github.com/rogerdpack/ruby_beautifier
GL.
-r

On Wed, Sep 23, 2009 at 8:21 AM, Rick DeNatale [email protected]
wrote:

If your needs are a simple as formatting code, both emacs and vim (in
order of alphabet) have ruby support which will do that and more.

I love the little disclaimer. Afraid to start a holy war? :smiley:

Seriously though, I love vim’s auto indentation. It’s very rarely
wrong and when it is, it usually gets it wrong on javascript embedded
in HTML or something like that. I had to give up on emacs a few years
ago because most of my ruby development is in Rails, and I could never
get the hang of two-mode-mode to edit the views.

Jason

On Wed, Sep 23, 2009 at 2:53 AM, Thufir [email protected] wrote:

outside of eclipse or netbeans plugins, is there an open source ruby IDE?

I started to use Aptana, you might want to check it out for yourself
and see if you like it.

I have to admit it took me a while to get going to create a “Hello
World” test project. I found out I needed to edit the environment.rb
file and comment out the version of Rails it was expecting, after this
I was able to view my test page inside the IDE browser. Also took me a
while to figure out how to use webrick for dev instead of mongrel
which I also have installed on my dev box.

Anyways I think it’s a nice IDE, I was using Bluefish / Kate to edit
my code before :wink:

WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and

thanks,

Thufir


Kind Regards,
Rajinder Y.

May the { source } be with you !

On Sep 23, 11:23 am, Roger P. [email protected] wrote:
[…]

Also checkouthttp://github.com/rogerdpack/ruby_beautifier
GL.

This has fit the bill perfectly so far.

-Thufir