# Format code, IDE

**URL:** <https://www.ruby-forum.com/t/format-code-ide/175975>\
**Category:** Ruby\
**Created:** [September 23, 2009, 8:54am UTC](https://www.ruby-forum.com/t/format-code-ide/175975 "2009-09-23T08:54:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 23, 2009, 8:54am UTC](https://www.ruby-forum.com/t/format-code-ide/175975/1 "2009-09-23T08:54:09Z")

</div>

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 ☹

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

---

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 23, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975/2 "2009-09-23T14:21:59Z")

</div>

On Wed, Sep 23, 2009 at 2:53 AM, Thufir [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)

---

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 23, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975/3 "2009-09-23T20:23:45Z")

</div>

> I tried installing arcadia, but but that failed ☹  
> /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](http://mentalized.net/journal/2006/01/24/no_such_file_to_load_mkmf)

Also checkout [http://github.com/rogerdpack/ruby\_beautifier](http://github.com/rogerdpack/ruby_beautifier)  
GL.  
-r

---

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 23, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975/4 "2009-09-23T14:26:40Z")

</div>

On Wed, Sep 23, 2009 at 8:21 AM, Rick DeNatale [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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? 😃

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

---

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 23, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975/5 "2009-09-23T21:06:02Z")

</div>

On Wed, Sep 23, 2009 at 2:53 AM, Thufir [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

> **[Axway – Data integration, Content Collaboration, Hybrid Integration Platform](https://www.axway.com/en)**
>
> Unlock your enterprise data to open everything: new digital experiences, new offerings, and new markets.

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 😉

> WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and
> 
> thanks,
> 
> Thufir

–  
Kind Regards,  
Rajinder Y.

May the { source } be with you !

---

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [September 24, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975/6 "2009-09-24T13:30:40Z")

</div>

On Sep 23, 11:23 am, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
[…]

> Also checkouthttp://github.com/rogerdpack/ruby\_beautifier  
> GL.

This has fit the bill perfectly so far.

-Thufir
