format code, IDE

T

Thufir

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
 
R

Rick DeNatale

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. =A0For now I find myself firing up netbeans fr= om
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.

--=20
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
 
J

Jason Stewart

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? :D

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
 
R

Rajinder Yadav

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.

http://www.aptana.com/

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 ;)
Even just using GNU fm to format code would be sufficient, but I'm not
sure how to go about that. =A0For now I find myself firing up netbeans fr= om
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: =A0Installing to ~/.gem since /var/lib/gems/1.8 and
=A0 =A0 =A0 =A0 =A0/var/lib/gems/1.8/bin aren't both writable.
WARNING: =A0You don't have /home/thufir/.gem/ruby/1.8/bin in your PATH,
=A0 =A0 =A0 =A0 =A0gem executables will not run.
Building native extensions. =A0This could take a while...
ERROR: =A0Error installing arcadia:
=A0 =A0 =A0 =A0ERROR: 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)
=A0 =A0 =A0 =A0from 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



--=20
Kind Regards,
Rajinder Yadav

May the { source } be with you !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top