jEdit Community - Resources for users of the jEdit Text Editor
jEdit + RVM + console
Submitted by Clyssandre on Tuesday, 7 December, 2010 - 22:10
Hi there,

In my long journey trying to find a comfortable IDE for Ruby on Rails on
Ubuntu, I found this tutorial to set up jedit :
http://www.wikihow.com/Install-Jedit-for-Rails

It looks fine for the moment but I have one slight problem with the
console plugin : it can't find RVM. Consequently it can't find any rails
version and I can't run any ruby scripts or rake commands. RVM works
properly in a usual terminal of course.

rvm -v doesn't work (unknown) but anything else like firefox -v does. So
I guess the console plugin simply doesn't load RVM when it starts.

I posted on two rails forums and couldn't find any answer at the moment. Could anyone help me fix this ?

Thanks, Lily
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
RVM
by patchworker on Tue, 07/12/2010 - 22:51
Hi,

you can look around in the SVN repository http://jedit.svn.sourceforge.net/viewvc/jedit/plugins/ - but it seems, that the author of the RubyPlugin just maintains this one. Can you look there in the source files and in the console-plugin in the source, if you find something about rvm?

Greets!
Daniel
What answers do You get in Te
by Robert Schwenn on Tue, 07/12/2010 - 22:43
What answers do You get in Terminal and in jEdit Console when You invoke the following commands?
which firefox
which rvm

I don't know Ruby. What do You mean by "console ... doesn't load RVM"? I.e. firefox isn't loaded by Console pugin, too. But You say, that "firefox -v" gives an answer in Console, doesn't it?

Robert
 
Thanks both of you for your a
by Clyssandre on Thu, 09/12/2010 - 18:22
Thanks both of you for your answers.

In the jEdit console, the which and -v commands give the following :

~/workspace/RubyonRails/myproject> which firefox
/usr/bin/firefox
Process which exited with code 0
~/workspace/RubyonRails/myproject> firefox -v
Process firefox exited with code 0
Mozilla Firefox 3.6.12, Copyright (c) 1998 - 2010 mozilla.org
~/workspace/RubyonRails/myproject> which rvm
Process which exited with code 1
~/workspace/RubyonRails/myproject> rvm -v
Process rvm exited with code 127
/bin/bash: rvm : commande introuvable
~/workspace/RubyonRails/myproject>

The same in the terminal :lily@Ottawux:~$ rvm -v

rvm 0.1.40 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]

lily@Ottawux:~$ which rvm
/home/lily/.rvm/bin/rvm
lily@Ottawux:~$ firefox -v
Mozilla Firefox 3.6.12, Copyright (c) 1998 - 2010 mozilla.org
lily@Ottawux:~$ which firefox
/usr/bin/firefox

I don't think I'm good enought to search into ruby-plugin what could be wrong. Though I really think it's not a ruby plugin problem but just an RVM related problem. I think the console plugin in jEdit doesn't know RVM, simply.
For the moment, RVM is loaded thanks to a few lines in .bash_profile, as adviced in RVM web sites. Do you think jEdit console could use another file to load a bash console ?
 
PATH
by Robert Schwenn on Thu, 09/12/2010 - 21:27
Since the rvm shell script is found by Terminal but not by jEdit's Console, the PATH variable should be different.

Please try now the following commands again in both Terminal and jEdit Console to get the actual content of two shell variables:
printenv PATH
printenv SHELL
 
Thanks again for your reply.
by Clyssandre on Fri, 10/12/2010 - 05:57
Thanks again for your reply. Here is the result of the two commands :

lily@Ottawux:~$ printenv PATH
/home/lily/.rvm/gems/ruby-1.8.7-p174@rails235/bin:/home/lily/.rvm/gems/ruby-1.8.7-p174@global/bin:/home/lily/.rvm/rubies/ruby-1.8.7-p174/bin:/home/lily/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
lily@Ottawux:~$ printenv SHELL
/bin/bash


rvm doesn't appear with the shell command. Is this the problem ? If so, could you explain how I can fix this ?
 
This is how I fixed it
by flanderb on Sat, 26/01/2013 - 17:24
I understand this is 2 1/2 years old but it is still an issue and this is how I fixed it.

Find there the rvm binaries are, mine are in /usr/local/rvm/bin/

add this to the Console option under Plugin Options->Console->System Shell->Subshell extra PATH.
User login
Browse archives
« September 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   98100
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   17480
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