jEdit Community - Resources for users of the jEdit Text Editor
Complete newbie problem with jedit+Ruby
Submitted by Sadaharu on Sunday, 4 September, 2011 - 03:22
Hi everyone.

I'm completely new to jedit, ruby and programming in general.
Was trying to execute a simple bit of code in jedit:

puts 'Hallo'
puts "Hello there, and what\'s your name?"
name = gets.chomp
puts 'Your name is ' + name + '? What a lovely name!'
puts 'Pleased to meet you, ' + name + '. :)'

When I run it, it gives a blank prompt without printing the initial "Hallo" and 2nd line puts. If I execute it in Komodo I get the same problem.

If I run it in terminal, however, it works fine.

I have the ruby console plug-in.

Also - I cannot figure out how to get the console to use ruby 1.9.2 instead of 1.8.7. I did manage to upgrade terminal ruby version.

I would greatly appreciate any help! Please remember that I'm not so savvy, you know, if you could limit yourself to simpleton-speak, I'd be much obliged.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Mailing List
by Robert Schwenn on Sun, 04/09/2011 - 21:16
First, I don't know Ruby Eye-wink

Regarding Ruby version:
I think that the plugin comes with Ruby integrated and You cannot change the Ruby version. The other way would be, that the plugin requires You to provide an externally installed Ruby and lets You choose this in the Plugin options. Take a look there.

Regarding code executing:
I guess the question is how it's intended to execute Ruby code. Have You had a look at the help?

Maybe You should ask at the Mailing List ( https://lists.sourceforge.net/lists/listinfo/jedit-devel ). There are the developers.

Robert
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300