# Ruby plugin in EasyEclipse

**URL:** <https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859>\
**Category:** Ruby\
**Created:** [July 2, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859 "2006-07-02T19:10:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 2, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/1 "2006-07-02T19:10:43Z")

</div>

## Hi you all, anybody knows and/or uses Ruby plugin for Eclipse or EasyEclipse? If not, just don’t keep on reading 🙂 If yes… I am writing a simple program:

## print "Enter your new idea: " idea = gets print “I get your idea”

When I run the program in EasyEclipse nothing appears in the console. I  
have to type my idea and then the two “print’s” appear together at the  
end. Do you know how can I get a real interactive view of the console?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 2, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/2 "2006-07-02T19:21:06Z")

</div>

> When I run the program in EasyEclipse nothing appears in the console. I  
> have to type my idea and then the two “print’s” appear together at the  
> end. Do you know how can I get a real interactive view of the console?  
> Thanks 🙂

Read thg first FAQ and you should get a good explanation and answer to  
your question at: [Aptana.com | Axway](http://rubyeclipse.sourceforge.net/faq.rdt.html)

Parv

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 2, 2006, 7:34pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/3 "2006-07-02T19:34:22Z")

</div>

Parv G wrote:

> Read thg first FAQ and you should get a good explanation and answer to  
> your question at: [Aptana.com | Axway](http://rubyeclipse.sourceforge.net/faq.rdt.html)
> 
> Parv

Thanks! It works! 😃  
(however, I was not working with that plugin; I was referring to  
[http://www.easyeclipse.org/site/plugins/rubyeclipse.html](http://www.easyeclipse.org/site/plugins/rubyeclipse.html))

I would like, anyway, to see a behaviour such as the one of FreeRIDE,  
even though I prefer to write the statement and keep on working with  
Eclipse 🙂

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 6, 2006, 9:57pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/4 "2006-07-06T21:57:36Z")

</div>

On 7/6/06, Damaris F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> while sentence.include? '('
> 
> ```
> 
> wipe\_mutterings\_from( 123 )  
> print what\_he\_said
> 
> * * *
> 
> Theoretically, the console has to show the “what he said” sentence and  
> then the error… However, it occurs the other way round, even with the  
> $stdout set to true. Suggestions will be welcome 😃

It may be that errors are being sent out of stderr instead of stdout.  
In that case you’d also need:

$stderr.sync = true

You can find a list of these global ($) variables here:

> **[Ruby | zenspider.com | by ryan davis](https://www.zenspider.com/ruby/)**
>
> Ruby facts, opinions, source code, links, and stuff.

Les

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 6, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/5 "2006-07-06T21:05:58Z")

</div>

Well… now I have another problem…

I write:

* * *

def wipe\_mutterings\_from( sentence )  
unless sentence.respond\_to? :include?  
raise ArgumentError, “cannot wipe mutterings from a #{  
sentence.class }”  
end  
while sentence.include? ‘(’  
open = sentence.index( ‘(’ )  
close = sentence.index( ‘)’, open )  
sentence[open…close] = ‘’ if close  
end  
end

$stdout.sync = true  
what\_he\_said = “But, strangely (em-pithy-dah),I learned upon.”  
wipe\_mutterings\_from( what\_he\_said )  
print what\_he\_said

wipe\_mutterings\_from( 123 )  
print what\_he\_said

* * *

Theoretically, the console has to show the “what he said” sentence and  
then the error… However, it occurs the other way round, even with the  
$stdout set to true. Suggestions will be welcome 😃

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 8, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/6 "2006-07-08T23:20:02Z")

</div>

Well… I am seeing that with stderr it works… but not always…

---

<div class="post-metadata">

**Author:** ![damaris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@damaris](https://www.ruby-forum.com/u/damaris)\
**Post date:** [July 7, 2006, 1:03am UTC](https://www.ruby-forum.com/t/ruby-plugin-in-easyeclipse/96859/7 "2006-07-07T01:03:08Z")

</div>

um…yes…I tried with that variable… and it dind’t  
work…however…I have tried right now and it already works fine…I  
should be doing something wrong… thanks 😃
