Using the Ruby Dev-Tools plug-in for Eclipse
An anonymous reader writes "IBM Developerworks is running an article that introduces using the Ruby Development Tools (RDT) plug-in for Eclipse, which allows Eclipse to become a first-rate Ruby development environment. Ruby developers who want to learn how to use the rich infrastructure of the Eclipse community to support their language will benefit, as will Java developers who are interested in using Ruby."
Really.
I think there is a plug in that should scratch just about any itch. Nice.
It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
Making use of this and the Eclipse RCP, the RadRails is also making a big contribution to the community.
Don't give them ideas!
My employer (a major high-tech corporation) has recently been encouraging the use of this plug-in for Eclipse. From what I can see, RDTs will take off in the near future!
LINUX ONLINE POKER: Linux Poker
But can it knit stupor heroes?
Uses RDT plus others, and a nice, clean install.
... because Ruby is a dynamic language it is more difficult for IDEs to autocomplete, etc.
I do most of my development in Java, so I mostly use IntelliJ (best Java IDE, IMHO). However, I also really like Eclipse because in one IDE you can code in Java, C++, Ruby, Python, etc.
And Eclipse? simply the best development IDE available IMHO...... And all of that in only a few thousand lines of code.....
Ruby indeed needs a good IDE to really shine!
h angelog.txt
In the article (10oct) you read about the next RDT release 0.6, which is out since 29nov:
****
0.6.0 Released (2005-09-29)
Release 0.6.0 is out: read the news, check the documentation, download and enjoy, feedback very much appreciated!
****
more:
****
The new features of 0.6.0 are [...]:
Code Folding - Folding can be enabled for classes and methods
Outline view - more detailed, e.g. support for local variables
RI view - use Ruby's ri utility from an RDT view
Task tags - creates tasks for configurable keywords (like TODO, FIXME) in ruby comments
Editor improvements - Auto-complete of brackets, parens, and single/double quotes; better code-assist
Inspection shortcuts - Configurable shortcuts for frequently used inspections during a debug session, like showing all methods of an object, global constants and so on.
****
full changelog:
http://rubyeclipse.sourceforge.net/nightlyBuild/C
cheers!
Cies Breijs
I've been using Eclipse with the RDT + Sublipse + RadRails plugins for a week or two on Windows. Its really quite nice. I didn't see an easy way to convert an existing Rails project into one that loads up nicely in the UI. I ended up creating a test project in Eclipse, taking that projects .project file and modifying it, then sticking it over in my existing project's directory. Load the .project file and voila, the IDE shows all the directors (M, V, C, etc). Very nice, and no surprise that .2 doesn't have a migration yet.
I've been trying to live more in more in the other half of my dual-boot machine, especially now with Ubuntu's Breezy Badger release that has solved some of my issues such as notebook suspend. *Anyway*, when trying to install the RDT plugin, I am getting error messages. It all just worked in Windows and I was hoping for the same experience for Ubuntu.
...a Ruby plugin, that is; this one done by Rob McKinnon. It's a good piece of work, although of course all the "code completion is hard for dynamic languages" applies here as well.
For what it's worth, enscript works fine for doing Ruby syntax highlighting if that's all you need.
The Army reading list
There's a complete setup guide over at http://www.napcs.com/howto/railsonwindows.html
Steps through the RDT plugin, as well as many other extras, like connecting to a Database with Eclipse, running WEBrick, etc...
Good stuff...
----- I hate sigs.
Here I was, happily writing stuff with XEmacs, but somehow, there was something missing from my coding stuff and things started to feel a bit wooden.
Weirdly enough, when I grabbed RDT, things started to look surprisingly bright and writing code was not that boring anymore. There are some emacsisms that I miss, but otherwise, this thing is really great. Eclipse was clearly made for bigger projects and it worked just fine when I got the crazy tendency to split my code across zillion little files! Wish XEmacs had this good file browser...
(And the silly little Ruby project I've worked on lately was Miller's Quest.)
Is it me, or does Ruby seem to be the Amiga of programming languages? It's cool. It's powerful. And no one cares. Oh and it's bound to be just as successful.
"You'll get nothing, and you'll like it!"
I'd use Eclipse if I could find a supported SFTP plugin. I do about 90% of my dev work on a remote machine, and if an IDE doesn't support SFTP then its, well, useless for me.
s ftp/), but I haven't gotten it to work with the last 2 releases of Eclipse.
I know of 1 SFTP plugin (http://klomp.org/eclipse/org.klomp.eclipse.team.
Anyone know of anything that would do the trick?
The Ruby Eclipse plugin is the best debugger I know of. It's been indespensble. The time you spend setting it up will pay off big.
Wansu, th' chinese sailor
Pfffttt! Eclipse is lame. I use jEdit. I have used Eclipse quite a bit, but it is just way too fat IMHO. jEdit can work for just about any language (including Ruby) and it is just a lot leaner. Try it! You'll like it!
blah blah blah
that must really roast their beans. har har...
Just raise the taxes on crack.
I am more interested in seeing a workflow solution from FOSS given that topics like "Getting Started with Microsoft Windows Workflow Foundation: A Developer Walkthrough" http://msdn.microsoft.com/windowsvista/building/wo rkflow/default.aspx?pull=/library/en-us/dnlong/htm l/WWFGetStart.asp are interesting.
My question: How much of your code is actual code and how much is glue that hooks together the different parts?
In other words, how much of your code is business logic and how much could be done via a workflow engine (i.e, no code)?
One cool features in Ecipse's native mode is when you click on a variable it highlights every other instance of that variable within your current source. I haven't seen any other IDE's do this and the PHPEclipse plugin doesn't do it either. Does this plugin for Ruby-on-rails support it?
The man who trades freedom for security does not deserve nor will he ever receive either. - Benjamin Franklin
Why use Eclipse? Why indeed. How about:
- best of breed Java development tools, including full refactoring support and full debugger
- team integration (comes with CVS support, other stuff can be added with plugins)
- awesome browsing support
- automatic incremental builds take place in the background. NEVER PRESS THE COMPILE BUTTON AGAIN. Just type some code, hit Save, and see the compile errors appear in the margin immediately. Since there's no need to stop and compile, you can Debug or Run your application at any time. (of course you can turn off auto builds if you prefer to build manually)
- RCP makes a good target platform for GUI apps. Use native widgets in your Java code. Develop Eclipse plugins in Eclipse.
- Useful frameworks like GEF (Graphical Editor Framework) and EMF (Eclipse Modeling Framework) can accelerate your development cycle.
I've been using Eclipse for Java development for about 3 years and I can't imagine writing Java code without it. Who wants to perform refactorings by hand, or debug with some crappy command-line debugger? Whether you're writing little hack utilities in Java or giant GUI apps, JDT just can't be beat.
Who would have thought the slashdot world would praise things like IDE's and plugins.
A pretty neat Ruby code editor on OS X is TextMate. Some powerful stuff in there if you lie somewhere between the vi/emacs camp and the notepad/bbedit camp...
I don't really understand. The syntax is disgusting, and it seems to offer nothing new/interesting, why the big huff?
Does anyone know how to get it to work with mysql? I have put the correct configuration in database.yml,it's not localhost. When I try to create a scaffold or start WEBrick it says it can't connect to database server. I can't find any database settings in eclipse so I don't know what else I have to do. Please help.
I like jEdit too.. but I found that a good debugger is very important to understand large projects. jEdit doesn't have a GOOD debugger.
Did you install a Sun version of Java? I have Breezy installed and it had gcj aliased as "java". When I tried to install Eclipse I got all kinds of errors. After realizing the problem and installing Java 1.5_05 it works flawlessly. Just make sure the real java is in the PATH before gcj.
"It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
Also, it kept on giving me lists of errors I could not understand.
I went back to scite and jEdit. I'm thinking of going back to emacs, actually.
I18N == Intergalacticization
JBuilder has had that for a while now. What I find better is that it goes beyond just highlighting variables. For instance, showing which methods implement an interface or which method calls will this exception catch block handle.
After seeing this article, I followed the instructions from the referred page,
o c111133460
also the article at
http://www.napcs.com/howto/railsonwindows.html#_T
My real goal was to debug Ruby on Rails programs with the plugin.
In theory I was able to do it, but not very usefully. I found that even a very
simple Rails program kept throwing off uncaught exceptions which kept stopping the debugger.
I could press the 'Continue' button to resume, but I would have to step through about
15 exceptions before the browser would be updated.
If this was fixed, it would be a very powerful IDE.
Unless I was very quick hitting the keys, the browser would time out. Something
needs to be improved before this would be a useful tool. Either Rails has to
be cleaned up to stop throwing those exceptions, or the plugin would need an
option to ignore those exceptions, if they are indeed normal.