Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Using the Ruby Dev-Tools plug-in for Eclipse

ScuttleMonkey posted more than 8 years ago | from the more-than-one-way-to-skin-an-app dept.

Programming 108

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."

cancel ×

108 comments

What doesn't Eclipse do? (2, Funny)

stoolpigeon (454276) | more than 8 years ago | (#13812916)

Really.
 
I think there is a plug in that should scratch just about any itch. Nice.

Shhhh! (0)

Anonymous Coward | more than 8 years ago | (#13812997)

Don't give them ideas!

Re:What doesn't Eclipse do? (1)

Jubalicious (203314) | more than 8 years ago | (#13813019)

Actually that's not necessarily true... I have this one itch that not even my doctor can take care of... damn hookers.

Re:What doesn't Eclipse do? (5, Informative)

Coryoth (254751) | more than 8 years ago | (#13813024)

I think there is a plug in that should scratch just about any itch. Nice.

Indeed, the Python [sourceforge.net] and Perl [sourceforge.net] plugins are both very nice and from the look of it more featureful than the Ruby plugin at the moment (though I expect it's only a short matter of time before that evens out). I think its more a matter of what languages aren't currently covered? There are apparently plugins for Eiffel [sourceforge.net] and Haskell and Ocaml [sourceforge.net] and SPARK [sri.com] and Scheme [eclipse-plugins.info] (though I can't vouch for quality on any of those) and pretty much anything else you can imagine (given that those were random searches on my part).

Jedidiah.

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13813070)

Here you go. [2y.net]
Tons of language plugins.

Re:What doesn't Eclipse do? (1)

ScottyH (791307) | more than 8 years ago | (#13813084)

I can't find one for Objective C. I've been looking.

Re:What doesn't Eclipse do? (1)

Coryoth (254751) | more than 8 years ago | (#13813186)

Wow, you're right, I can't find much beyond this [robrohan.com] which is a mutlipurpose plugin, but does at least support Objective C, though only really providing syntax highlighting and not all the goodies you can expect from other eclipse plugins.

Jedidiah.

Re:What doesn't Eclipse do? (1)

GileadGreene (539584) | more than 8 years ago | (#13813322)

The Haskell plugin is pretty limited at this point. The Ocaml one even more so. But then, they are both considered alpha-level.

As for non-supported languages, I haven't seen a plugin for occam or occam-pi yet...

Re:What doesn't Eclipse do? (2, Interesting)

Mechanik (104328) | more than 8 years ago | (#13814166)

You forgot CDT Project [eclipse.org] for C and C++ development. The project is growing in popularity to the point where we're having our own developer's conference in a couple of weeks, totally separate from EclipseCon.

It's starting to seem like everyone and their brother that's doing a C/C++ IDE is standardizing on CDT. If the trend continues, perhaps one day we will unseat Visual Studio as king of the heap, although there is a long way to go still.

The most important thing I can say, regardless of your language of choice, is to grab a keyboard and lend a hand, if you're able, to your favourite project. Eclipse (and CDT especially) are community driven, and the best way you can help these tools succeed is by giving us some of your spare cycles, even if it's just filing the bugs that you find. If you submit patches for them along with the bug report we'll love you forever :-)

who would have thunk (0)

Anonymous Coward | more than 8 years ago | (#13814263)

Who would have thought the slashdot world would praise things like IDE's and plugins.

Re:What doesn't Eclipse do? (2, Interesting)

Anonymous Writer (746272) | more than 8 years ago | (#13815314)

Anything on Forth? I heard of a language module [apple.com] for BBEdit a while back. Just curious because of this article [slashdot.org] that came out some time ago .

Re:What doesn't Eclipse do? (1, Interesting)

Anonymous Coward | more than 8 years ago | (#13813114)

block / column mode cut/copy/paste support..

mcedit supports it (shift-f3)
ultraedit supports it (alt-c)
vim supoprts it (through some odd macro based extension)
emacs supports it (obviously)

now, not all have as nice of a support as ultraedit (my fave editor), but eclipse lacks this *BADLY*.

Re:What doesn't Eclipse do? (2, Informative)

John Whitley (6067) | more than 8 years ago | (#13813309)

[Eclipse lacks] block / column mode cut/copy/paste support..

No, it doesn't. This is currently provided by the Lunar Eclipse [sourceforge.net] project, which publishes a few Eclipse plugins. Specifically, look at the rectangle copy/cut/paste/edit operations in the Editor Enhancements plugin created by that project. (Note: the Emacs-style Alt-/ completion mentioned on these pages was integrated as a part of Eclipse itself.)

Also, Eclipse has a useful stock feature which covers one use case for rectangular edits: block indent change. Highlight a few lines of text, then hit tab/S-tab to increase/decrease the indent of all highlighted lines uniformly. It's such a simple feature, but I love it.

Re:What doesn't Eclipse do? (1)

Monokeros (200892) | more than 8 years ago | (#13816369)


[Eclipse lacks] block / column mode cut/copy/paste support..

No, it doesn't. This is currently provided by the Lunar Eclipse project . . .


That's not really block selection though, is it? Block selection is drawing a selection rectangle on the text and then being able to directly edit that block by typing or pasting some text. The Lunar Eclipse plugin doesn't get you a selection block on the screen that makes it obvious what you're selecting. It also doesn't let you directly edit the (unseen) block. You have to invoke a dialog to do anything.

It's better than nothing--which is what eclipse has now. However, it's not what people expect when they ask for block/column mode selection.

Re:What doesn't Eclipse do? (1)

lewp (95638) | more than 8 years ago | (#13813390)

vim supoprts it (through some odd macro based extension)


Isn't this just C-V? Seems to work for me in stock Vim. Not really on topic, I guess. Sue me :(.

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13813243)

It doesn't have VIM!!

Re:What doesn't Eclipse do? (1)

sien (35268) | more than 8 years ago | (#13813258)

The emacs plugin is fantastic. You can now run the whole of emacs inside Eclipse.

The emacs developers are also hard at work on a complimentary cross plugin too I hear.

Re:What doesn't Eclipse do? (1)

lewp (95638) | more than 8 years ago | (#13813373)

Emacs running inside Eclipse...

I think I'm going to need a bigger boat^W^Wmore memory.

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13815854)

1989 called, they wanted their bloated Emacs joke back.

Re:What doesn't Eclipse do? (4, Insightful)

Dan Farina (711066) | more than 8 years ago | (#13813314)

...Truly the emacs of this generation.

From vi, to emacs, to eclipse (ratios of memory usage in each generation maintained!)

I actually do not like the eclipse editor component as much as emacs. Ideally, I'd want the GUI-esque browsing/completion/etc of eclipse with the emacs editor. (There have been attempts at this, but none of them feel "right")

It's also harder to write ad-hoc extensions to an eclipse plugin, which is one large benefit emacs has over it.

df

Re:What doesn't Eclipse do? (1)

richieb (3277) | more than 8 years ago | (#13816121)

...Truly the emacs of this generation.

How true!

It's also harder to write ad-hoc extensions to an eclipse plugin, which is one large benefit emacs has over it.

Hmmm... maybe we need a Elisp plugin ;-)

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13813498)

There is no good C# plugin. Improve is old and crufty.

Re:What doesn't Eclipse do? (1)

Dlugar (124619) | more than 8 years ago | (#13813499)

How about a free Vi plugin that doesn't suck? (There's only one vi plugin that I know of, it costs money, and it basically sucks.)

If anyone's interested, I'm wanting to write one. I've got the Java skills, but I don't have the Eclipse-plugin-writing skills. Let me know if you can help out.

Dlugar

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13813730)

It doesn't auto put-on-save (if you need FTP); this is my biggest issue with Eclipse. Better, more up to date, would be nice for CF too. Although I'd love to use it every day, it makes my work too difficult for me.

Re:What doesn't Eclipse do? (2, Funny)

DamienMcKenna (181101) | more than 8 years ago | (#13814170)

Word wrapping?

Dmaien

Re:What doesn't Eclipse do? (1)

Naikrovek (667) | more than 8 years ago | (#13814258)

Personally, and this may sound stupid, but I'd like to see Eclipse understand Vi commands and behave as Vi does.

the shortcuts that Vi uses are superior for me, and Eclipse (being the best Java IDE for me) I'd like to see Eclipse use Vi keyboard commands through a plugin.

Anyone have a free plugin for that?

Re:What doesn't Eclipse do? (0)

Anonymous Coward | more than 8 years ago | (#13815487)

I think there is a plug in that should scratch just about any itch. Nice.

My ass itches (too many CmdrTacos!). Do they have a butt plug for me?

Re:What doesn't Eclipse do? (1)

Pleb'a.nz (712848) | more than 8 years ago | (#13815779)

One word (acronym) SCP.

There hasn't been a reliable SCP plugin for 3.x, only for 2.x days. Where did it go?

RadRails (5, Informative)

TedCheshireAcad (311748) | more than 8 years ago | (#13812917)

Making use of this and the Eclipse RCP, the RadRails [radrails.org] is also making a big contribution to the community.

Re:RadRails (3, Interesting)

Trejkaz (615352) | more than 8 years ago | (#13813268)

RadRails is great, but the setup is a bit of a pain in the butt. I have to tell it where Ruby is, for instance... something it doesn't even need to know. It could just run "ruby" and let the path take care of it.

But anyway, any steps towards autocompletion and automated code refactoring for Ruby are fine by me. And moving into an IDE which is capable of these things is a step. :-)

Workflow (0)

Anonymous Coward | more than 8 years ago | (#13813976)

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 [microsoft.com] 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)?

first-rate Ruby development environment (-1, Troll)

Anonymous Coward | more than 8 years ago | (#13812945)

please, post wich are the "first-rate Ruby development environment".

Gaining Popularity (1)

matr0x_x (919985) | more than 8 years ago | (#13813017)

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!

but can it (0)

Anonymous Coward | more than 8 years ago | (#13813033)

But can it knit stupor heroes?

Radrails (5, Informative)

augustz (18082) | more than 8 years ago | (#13813045)

Checkout RadRails [radrails.org]

RadRails is an integrated development environment for the Ruby on Rails framework. The goal of this project is to provide Rails developers with everything they need to develop, manage, test and deploy their applications. Features include source control, debugging, WEBrick servers, generator wizards, syntax highlighting, data tools and much much more.

The RadRails IDE is built on the Eclipse RCP, and includes plugins from RDT and Subclipse. The RadRails tools are also available as Eclipse plugins.

Uses RDT plus others, and a nice, clean install.

RDT is good, but... (4, Interesting)

MarkWatson (189759) | more than 8 years ago | (#13813050)

... 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.

Re:RDT is good, but... (1)

mordors9 (665662) | more than 8 years ago | (#13813116)

But then real men use assembly ;-) --- means I am kidding... lighten up.

Re:RDT is good, but... (2, Funny)

mctk (840035) | more than 8 years ago | (#13813155)

I hard wire all of my applications.

Re:RDT is good, but... (0)

Anonymous Coward | more than 8 years ago | (#13813217)

I suppose if you are an electircal engineer you probally would.

Re:RDT is good, but... (1)

sammy baby (14909) | more than 8 years ago | (#13814474)

Hand wire. Feh! I train the magic gnomes that power my computers personally!

Re:RDT is good, but... (2, Interesting)

hutchike (837402) | more than 8 years ago | (#13813170)

I agree. Auto-complete is the one thing that we could really do with here, but is sadly lacking. Sure I can press Ctrl+space and get a Ruby language list, but I really want to see methods available on the current object. This is not possible today. Having said that, RDT is WAY WAY better than the alternatives. Having installed Mondrian, Scite and FreeRide, RDT on Eclipse blows them all away. Regarding RadRails, yes it's nice but it's not a huge leap forwards from RDT - it just adds server start/stop in a new "Rails" perspective. Here's a toast to Ruby as the Web 2.0 language of choice for rapid and happy web development!

Re:RDT is good, but... (0)

Anonymous Coward | more than 8 years ago | (#13816224)

Try Komodo and enjoy working autocomplete and other nifty stuff for Ruby, Python, Perl, and a number of other dynamic languages.

Re:RDT is good, but... (1)

gnuLNX (410742) | more than 8 years ago | (#13813191)

I have not used eclipse, but I use KDevelop quite a bit. I supports quite a few languages natively. C/C++/Ruby/Python/Perl. It even has special QT projects for each of these languages.

My biggest gripe (and it is hardly a valid gripe) is that KDevelop moves to quickly. I do think the current version is quite stable tho.

I would welcome a comarison of the two by someone who has spent considerable time with both.

Thanks

Re:RDT is good, but... (1)

Richard J Dale (919447) | more than 8 years ago | (#13815790)

I haven't tried Eclipse, but KDevelop 3.2.x includes the following ruby features:

  • Syntax highlighting (it uses Kate)
  • Code folding
  • Class Browser
  • Shell window with irb
  • Qt Designer support with ruby code generation
  • Powerful debugger
  • Several QtRuby and KDE Korundum project templates

Comparing features with RDT - it doesn't have a unit test front end, or an ri graphic front end yet. Apart from that they are pretty much equivalent as far as I can see.

Re:RDT is good, but... (1)

zhiwenchong (155773) | more than 8 years ago | (#13813879)

I don't see why it can't be done though.

IPython does autocompletion for Python methods and attributes on the command line.

Re:RDT is good, but... (1)

jma05 (897351) | more than 8 years ago | (#13814669)

IPython is an interpreter. PyDev is an IDE (Editor). In IPython, your program is already in run state. Not so in an editor. So it's comparing apples to oranges.

IPython is not the first to do this either. PythonWin for example has had auto-complete for ages in it's internal interpreter.

Ruby..... (4, Insightful)

james_in_denver (757233) | more than 8 years ago | (#13813225)

It rocks...... I'm using Ruby at work to parse millions of lines of source code across 4 different systems and link that back to literally hundreds of requirements documents. The end result is stored in a database and made available via "Ruby on Rails" [rubyonrails.org] . It's saved the client literally hundreds of hours of debugging and integration time, and the "documentation"? It never gets out of date... Just run the programs against the source code and document repositories nightly and everything is current.....

And Eclipse? simply the best development IDE available IMHO...... And all of that in only a few thousand lines of code.....

Re:Ruby..... (1)

bljohnson0 (114084) | more than 8 years ago | (#13813282)

IMHO Ruby seems to have a "quirky" syntax. I checked it out for a short period of time and was thinking about adding it to my list of programming languages. I just don't care for the syntax. I could care less about it being interpreted, etc, it's the syntax that's killing it for me. I come from a C/Perl/Java background, and Ruby just seems too different I can't tell whether it's work taking the time to learn or not.

But, that being said, I really like Eclipse and use it for my Java coding. Maybe I'll give Ruby another shot since I can play around with it in Eclipse.

Re:Ruby..... (3, Informative)

geniusj (140174) | more than 8 years ago | (#13813401)

I come from a C/Perl/Java background, and Ruby just seems too different I can't tell whether it's work taking the time to learn or not.

Once you learn it, you'll find that it is very consistent throughout development. You don't need to worry about certain syntax not working in certain situations, etc. Language consistency is the main reason I use Ruby. If I don't know it, I can guess and be right 95% of the time. It's almost creepy.

That said, I'd have to imagine that closures are the main issue you have with Ruby's syntax, since that's really the only part of Ruby's syntax that differs from other scripting languages.

e.g.

1.upto(5) do |number|
    puts number
end
1
2
3
4
5

    Just know that closures are incredibly powerful and can be used to simplify a great deal of things. Don't let the use of |s turn you away.

Re:Ruby..... (1)

pyrrhonist (701154) | more than 8 years ago | (#13814243)

Once you learn it, you'll find that it is very consistent throughout development. You don't need to worry about certain syntax not working in certain situations, etc. Language consistency is the main reason I use Ruby. If I don't know it, I can guess and be right 95% of the time. It's almost creepy.

I totally agree. That, the clear documentation, and the familiar API (somewhat consistent with Java) are the three things that enabled me to learn it so fast.

I have a rule I use when learning a new language - I don't write "hello world" applications. I try to create an actual application that I would want to use. For Ruby, I decided to write a web server from scratch. This is a pretty good test of the language since it touches on parsing, network operations, file manipulation, and threading.

It only took 10 hours for me to learn Ruby and write a web server (which is fast for me, since I am a slow coder). I probably could have spent less time on it, but I created a separate module to do HTML output (using blocks and yield) so that I could provide fancy indexing for directories and server status pages. Basically, I was impressed enough with Ruby that I wanted to add more features onto my basic server.

Re:Ruby..... (0)

Anonymous Coward | more than 8 years ago | (#13815272)

Wow, it only took me 15 seconds to write a web-server in Ruby.

require 'webrick'

server = WEBrick::HTTPServer.new(
:Port => 2000,
:DocumentRoot => Dir::pwd + "/public"
)

trap("INT"){ server.shutdown }
server.start

Re:Ruby..... (1)

dtolton (162216) | more than 8 years ago | (#13814264)

"1.upto(5) do |number|
        puts number
end
1
2
3
4
5
"

This is not an example of a closure, but an example of a block. Of course this is compounded by the fact that closures are enabled by blocks. You probably don't need to worry about closures in order to pick up Ruby, but if you don't know what they are, they are well worth learning. The C equavalent to this particular code is a for loop:

int i;
for (i = 1; i =5; ++i) {
    printf("%s", i)
} /* I believe this is syntactically correct, but I'm too lazy to compile it to check :-p */

Re:Ruby..... (1)

b4stard (893180) | more than 8 years ago | (#13815339)

One could also argue that the code is an example of a ruby iterator. Either way, your C-code will segv due to the format string. s/%s/%d\\\\n/ and you'll be fine.

Re:Ruby..... (3, Insightful)

pivo (11957) | more than 8 years ago | (#13813535)

I find it hard to believe that someone with a Perl background is complaining that Ruby has a quirky syntax. I think if you spend a little more time with Ruby you'll find that it has a nice, well thought-out syntax. I think you'll also come to think of Perl as the real quirky language.

Re:Ruby..... (1)

gtrubetskoy (734033) | more than 8 years ago | (#13813861)

I find it hard to believe that someone with a Perl background is complaining that Ruby has a quirky syntax.

Heh... As someone with Python background, I definitely find Ruby syntax very quirky. My theory is that most Ruby users are people who started out with Perl and would never learn Python "because of the whitespace issue" (in truth they just didn't have a need, the time or what it takes to break old habits). Then as Python started becoming more and more popular, it became more and more difficult to admit that Python is indeed a really good language, while their language of choice was really getting tired by the minute. Then came about Ruby - now you can learn a language other than Perl or Java and yet not admit defeat to Python.

My humble advice is that if you made the jump from Perl (or Java) to Ruby, might as well go all the way and learn Python.

Re:Ruby..... (1)

geniusj (140174) | more than 8 years ago | (#13813972)

Unfortunately, Python is not 100% OO, so I'd just be jumping from one inconsistent language to another one. Granted, it is much more consistent than Perl.

Re:Ruby..... (4, Interesting)

Samus (1382) | more than 8 years ago | (#13814238)

You know, I tried Python for a while. It really is nice with the builtin data structures and the slicing and dicing that you can do with sequences. The whitespace thing is kind of annoying. I like having {} or do end or begin end markers around my code blocks. I think it is one feature that they Python community should just give up on. It really is holding the language back. For example it can't easily be embedded into web pages (has it been truly done at all?) because of the whitespace issue. Just about all of the popular languages out there that can be used to generate web pages just use the language itself for embedding. I remember back in 2000 using the Python ASP integration on windows to embedd Python and it wasn't much fun. Another thing that bothered me about Python were the core modules. They just didn't seem consistent and as well structured as what Java uses. Sure there are weird things in weird places in Java but overall I prefer the class libraries available to Java over the Python ones.

I'm currently giving Ruby a shot implementing a little project and so far I find it ok but the syntax in Python or Java definitely seem cleaner. Having to use punctuation to help the compiler|interpreter figure out scope (think @'s in front of variables for object vars) is just plain lazyness on the part of the authors.

The last thing I'm having trouble getting over is the dynamic nature of the languages. Static typing seems to be such a nice warm cozy safety blanket that it is hard to give up. I see where it can be powerful and useful and allow you to take many shortcuts. In fact much of Rails would be impossible without the dyanamic typing and openness of the class structure, but I miss the static class definitions when working with my model objects. It gives me a weird feeling to have to look at the tables themselves so I can figure out what the attributes on my obects are. Yes I know DRY...

It'll be an interesting next few years to say the least. Maybe Ruby will be the next big thing or maybe something else will. I for one would like to see a revamped Python that took the things they did right and fixed the things they did wrong. Perl 6 anyone?

Re:Ruby..... (2, Interesting)

afd8856 (700296) | more than 8 years ago | (#13814618)

Python encourages good programming practices.
Among other, indentation, always document, short code modules, and best of all DO NOT EMBED CODE IN WEB TEMPLATES!
Take a look at ZPT (and possibly Kid) if you need to understand why you shouldn't do that. (they succesfully survive round tripping through HTML visual editing, generate only valid html, etc.)

Re:Ruby..... (2, Insightful)

Samus (1382) | more than 8 years ago | (#13816337)

I see no problem with embedding code that deals strictly with presentation. I wouldn't advocate putting business logic into a page and in fact would whack someone upside the head if I caught them doing that. In this day and age there is no excuse for it. Even php has templating capability. The real issue is having to learn a second language to do it. I'd rather learn a small api to do presentation than a whole new template language. A loop in an rhtml (rails) file is the same as it is in ruby just as a loop in asp and jsp is the same as their respective languages. Ok java tag libs can go a little too far sometimes but I don't have to use them if I don't want to.

What exactly in Python encourages short code and documentation? I would venture to say that it is more the community that encourages this practice and not the language itself. Indentation is an easy one as long as everyone on your team uses the same indentation scheme. I may look at Kid someday if I ever get the urge to look more deeply at Turbogears. Though I was kind of surprised and a bit disgusted to see in the demo video that to do a redirect the guy had to raise an exception. I don't see how exceptions as flow control can be considered a good practice.

Re:Ruby..... (1)

btobin (906080) | more than 8 years ago | (#13813837)

IMHO Ruby seems to have a "quirky" syntax..I come from a C/Perl/Java background..

In other words, you've only ever learned one syntax. That's kind of sad.

Re:Ruby..... (0)

Anonymous Coward | more than 8 years ago | (#13815374)

Not as sad as your one legged hunchbacked mother.

Nice work! (0, Flamebait)

cies (318343) | more than 8 years ago | (#13813301)

Ruby indeed needs a good IDE to really shine!

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/Ch angelog.txt [sourceforge.net]

cheers!
Cies Breijs

Nice plugins, a few problems installing on Breezy (1)

Hutchizon (696741) | more than 8 years ago | (#13813332)

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.

Re:Nice plugins, a few problems installing on Bree (1)

Shawn is an Asshole (845769) | more than 8 years ago | (#13815908)

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.

jEdit's got one too... (1)

tcopeland (32225) | more than 8 years ago | (#13813339)

...a Ruby plugin [jedit.org] , 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 [blogs.com] if that's all you need.

Complete HOWTO (0, Redundant)

Dont tempt me (237205) | more than 8 years ago | (#13813349)

There's a complete setup guide over at http://www.napcs.com/howto/railsonwindows.html [napcs.com]

Steps through the RDT plugin, as well as many other extras, like connecting to a Database with Eclipse, running WEBrick, etc...

Good stuff...

RDT rocks. (2, Insightful)

WWWWolf (2428) | more than 8 years ago | (#13813399)

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 [www.iki.fi] .)

Re:RDT rocks. (0, Offtopic)

jericho4.0 (565125) | more than 8 years ago | (#13813909)

Miller's Quest is the most fun I've had playing an RPG in years! Nice work.

trollish comment (1)

Ranger (1783) | more than 8 years ago | (#13813449)

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.

Re:trollish comment (1)

WilliamSChips (793741) | more than 8 years ago | (#13813624)

Ruby's pretty much a repeat of Smalltalk (Which is cooler, more powerful and has less people caring, and in people actually using it, was unsuccessful. But it did influence Java some) with "normal" syntax. Although I do hope Ruby overtakes that blastedly inconsistent language known as Perl.

Re:trollish comment (1)

Ranger (1783) | more than 8 years ago | (#13814118)

I do hope Ruby overtakes that blastedly inconsistent language known as Perl.

Them's fightin' words, sorta. That blasted inconsistentcy is why I love Perl. It's the Swiss Army Chainsaw of programming languages.

Smalltalk!?! **choke** **gasp** **coke-coming-out-my-noise** It burnses! It burnses! Make it stop! I had to learn Objective-C (for WebObjects) which is a close to Smalltalk as I want to get. OK I'll take smalltalk over Java any day. Perl will always be the first programming language I fell in love with, though I'm pretty productive in PHP. I am not enamoured of any PHP based CMS. The PHP CMS community is seriously fragmented. I'm leaning towards Python/Zope/Plone paradigm. And yes, Ruby/Amiga comparison is valid. It engenders the same doomed devotion as the Amiga did.

Re:trollish comment (0)

Anonymous Coward | more than 8 years ago | (#13813648)

First of all I think people do care. It seems more and more people are using it. And secondly even if it ends up that most don't care, it just doesn't matter. It's still being developed and is available on most major platforms. Just because it's not popular doesn't make it not worth learning, especially if accomplishing a task with ruby makes your job easier or more enjoyable.

Re:trollish comment (3, Interesting)

JLyle (267134) | more than 8 years ago | (#13813711)

I know you're just trolling (and being honest about it), but I just got back from the fifth annual Ruby Conference. The attendance at this year's conference was three times what it was at last year's, due in no small part to the success of Rails over the last year. The latest Rails book, Agile Web Development with Rails, is hovering around the number two spot on Amazon.com's list of popular "Computers & Internet" books. I'm told that they've sold some 20,000 copies of the book since it was published in July. So, apparently, someone cares...

Re:trollish comment (2, Interesting)

meatball_mulligan (633993) | more than 8 years ago | (#13813813)

Actually, I think Ruby might just be picking up some steam, thanks to Rails. David Heinemeier Hansson won the "Hacker of the Year" award at OSCON for Rails. Just about every week it seems like I see a new article in this magazine or that one about it. Ruby has surpassed Python in Japan. Who knows?

m.m.

Re:trollish comment (2, Insightful)

jericho4.0 (565125) | more than 8 years ago | (#13814041)

Then Rails is Ruby's Video Toaster. Rails is pretty hot, and it doesn't seem to be slowing down.

I'd use Eclipe, but... (0)

Anonymous Coward | more than 8 years ago | (#13813618)

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.

I know of 1 SFTP plugin (http://klomp.org/eclipse/org.klomp.eclipse.team.s ftp/ [klomp.org] ), but I haven't gotten it to work with the last 2 releases of Eclipse.

Anyone know of anything that would do the trick?

Re:I'd use Eclipe, but... (0)

Anonymous Coward | more than 8 years ago | (#13814160)

The version from the auto-installer inside eclipse works fine for 2.0. Just go to Help->Software Updates->New Remote Site and enter "http://klomp.org/eclipse/updates/". This will install the latest sftp support for 2.x.

Admittedly, it is very misleading if you search the web, as only the 1.x versions appear to be avaliable, and it looks like development is dead. The other annoying thing is I had to jump through hoops to get the updater to go through my corporate firewall (Found a proxy that didn't use NTLM authentication on one network, installed it under linux eclipse, found the installed files, zipped them up, emailed them to the other network with NTLM, unzipped them, off I went). Sometimes, a zip file sitting on a web site really is the best installer.

However, if you don't have firewall issues the auto-installer works just fine.

You owe to yourself to try this (1)

Wansu (846) | more than 8 years ago | (#13813761)



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.
 

Why use Eclipse? (1)

hobo sapiens (893427) | more than 8 years ago | (#13813770)

Pfffttt! Eclipse is lame. I use jEdit [jedit.org] . 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!

Re:Why use Eclipse? (0)

Anonymous Coward | more than 8 years ago | (#13814198)

Pfffttt! jEdit is lame. I use notepad.exe. I have used jEdit quite a bit, but it is just way too fat IMHO. notepad.exe can work for just about any language (including Java) and it is just a lot leaner. Try it! You'll like it!

Re:Why use Eclipse? (0, Offtopic)

hobo sapiens (893427) | more than 8 years ago | (#13814206)

Haha, now, that's what I am talking about! You sir, are a real hacker.

Re:Why use Eclipse? (0)

Anonymous Coward | more than 8 years ago | (#13816052)

Why is the average /.er so lame nowadays? I remember when this site was read pretty much only by geeks...

Text editor vs. IDE (1, Informative)

Anonymous Coward | more than 8 years ago | (#13814225)

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.

Re:Why use Eclipse? (1)

FlameboyC11 (711446) | more than 8 years ago | (#13814248)

I've found this too. When you're running a shitty laptop, every bit of fat really shows. jEdit is actually quite nice, and I'm not trying to toot hobo_sapiens horn either.

Debugger (0)

Anonymous Coward | more than 8 years ago | (#13815028)

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.

Re:Why use Eclipse? (-1, Flamebait)

Anonymous Coward | more than 8 years ago | (#13818403)

jEdit is your typical bit of Java coding -- fatfatafafat FAT CUNT of an application. By the time the JVM, the class libaries (including the megabloat of Swing) and finally the jEdit code have oozed into memory, you could have loaded emacs (hardly a svelt app itself) 50 or 60 times.

the best thing about this (1)

cygnus (17101) | more than 8 years ago | (#13813783)

is that it forces a bunch of Ruby devs to run a Java program to get their work done...

that must really roast their beans. har har...

Re:the best thing about this (2, Insightful)

chaves (824310) | more than 8 years ago | (#13814095)

The JVM and the J2SE class libraries are the most important contributions made by Sun under the Java technology umbrella. The Java language itself is irrelevant. Many people dislike the language syntax, and they have the right to do so. Syntax is a matter of taste - everybody should be able to program using the language they like the most (for the task at hand). But portability, interoperability, security, and other core features of the Java runtime are often underestimated.

People should stop fighting over language syntax and recognize that what we should be striving for is a feature-rich platform independent runtime, and that is what Java is in its essence. Groovy [codehaus.org] , Jython [jython.org] and JRuby [sourceforge.net] are initiatives that recognize that.

Re:the best thing about this (1)

nickos (91443) | more than 8 years ago | (#13816070)

Mod parent up. This is what MS realised with .NET - many languages, one CLT.

A C# JVM bytecode compiler would be nice too...

Re:the best thing about this (1)

rubycodez (864176) | more than 8 years ago | (#13814172)

nah, most Ruby coders are or were Java developers. I did java for five years. We just like Ruby better and feel it is much more powerful, beautiful and satisfying, as well as usually requiring one third or less the typing....

Does this support dynamic variable highlighting? (3, Interesting)

Mustang Matt (133426) | more than 8 years ago | (#13814102)

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?

Re:Does this support dynamic variable highlighting (0)

Anonymous Coward | more than 8 years ago | (#13816108)

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.

Nice Ruby OS X editor: TextMate (3, Insightful)

5n3ak3rp1mp (305814) | more than 8 years ago | (#13814276)

A pretty neat Ruby code editor on OS X is TextMate [macromates.com] . Some powerful stuff in there if you lie somewhere between the vi/emacs camp and the notepad/bbedit camp...

Why is Ruby gaining such media attention? (0, Troll)

Refrozen (833543) | more than 8 years ago | (#13814722)

I don't really understand. The syntax is disgusting, and it seems to offer nothing new/interesting, why the big huff?

Re:Why is Ruby gaining such media attention? (0)

Anonymous Coward | more than 8 years ago | (#13815961)

Snakes are SO last season. It's nothing but gemstones now, dahhhling, and they'll lose their lustre to cutlery eventually.

That's right. Spork++ - coming soon to an amazon near you.

Re:Why is Ruby gaining such media attention? (4, Interesting)

TerrapinOrange (805326) | more than 8 years ago | (#13816258)

Have you actually tried Ruby? I mean, gave it an honest to goodness chance.. say a dozen or so hours of coding and perhaps the first few chapters of a good reference book? I just find it really hard to believe than anyone who actually knew Ruby's syntax would call it disqusting. It is, by a fairly wide margin, the nicest language I've ever used. Everything is incredibly easy and intuitive. If I don't know how to do something, I can usually guess it on my first or second try, and it makes it so easy to write reusable, modular code that it's stupid not to, even for what appears to be a throwaway program.

Ruby is hugely productive. Pretty much everything I've ever wanted to do requires less code, less configuration, and simply less hassle than in every other language I've used.

Now, this is mostly evident when compairing to more traditional statically typed languages like Java and C#, but Ruby's has plenty to offer folks who already use agile languages like Python or Lisp. Ruby has an easy to use and powerful package managment system, Gems. An excellent build tool, Rake. RDoc, a powerful JavaDoc like documentation system. Rails, which is probably the most productive web devleopment platform on the planet. Watir, a web scripting system that makes functional and system testing a breeze. MouseHole, a really slick scriptable proxy. Two extremely well written, freely available books: the first edition of Programming Ruby, and Why's Poignant Guide. An extremely helpful user community. The list goes on and on.

Maybe you should be asking yourself why you dislike Ruby so much, rather than why everyone else likes it. That's not to say that everyone should like it as much as I do, but I suspect you're missing something important.

mo]d up (-1, Offtopic)

Anonymous Coward | more than 8 years ago | (#13814784)

Said. 'Screaming Watershed essay, ass until I hit my the most. Look at all know we wantt. users of NetBSD won't vote in the gay niggers

MySQL (0)

Anonymous Coward | more than 8 years ago | (#13814989)

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.

Eclipse (1)

oldCoder (172195) | more than 8 years ago | (#13816024)

I tried the Ruby plugin for eclipse and it was too hard to get things to work. It all went together okay but when I started to use it, the thing kept on asking me for pathnames and which workspace to use. I had no idea which workspace to use, I just wanted to edit and run a ruby file.

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.

Re:Eclipse (1)

Samus (1382) | more than 8 years ago | (#13817086)

Eclipse is a project based IDE not a plain old editor. If all you want is an editor then by all means pick up your favorite editor. If you want to work in a project mode then use an IDE like Eclipse.
Load More Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...