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
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
********************
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
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:
Les
···
On 7/6/06, Damaris Fuentes <dfl_maradentro@yahoo.es> wrote:
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
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
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