E Text Editor | The Power of Textmate on Windows

 
Author Message

Index  >  Technical Support  ~  ruby: no such file to load -- ubygems (LoadError)

sb
Posted: Sat Apr 21, 2007 5:43 pm Reply with quote
Registered User Joined: 21 Apr 2007 Posts: 2
Hi,

i am using E since a few weeks and im convinced of the editor, nonetheless i have some problems and im not sure whether it's a bug or my system.

Since 1.1.119 some bundle commands doesn't work e.g. strg+shift+6 for converting characters in entities. All i got is the error message in the subject. Ruby and rubygems are installed. What me confuses is the fact that the error message is exactly "ubygems" and not "rubygems".

Another problem is the settings button in the bottom right corner of the project view. By pressing it E terminates without any message.

The next point is that im using a sony vaio with a mousepad whose right area is used for scrolling vertically by dragging on it. That works but only in the first tab. It's always interupting my workflow what is really harring.

I would be glad if someone have an idea to solve these problems above all the none working bundle commands.

nonetheless best editor i ever worked with
View user's profile Send private message
bjchrist
Posted: Sat Apr 21, 2007 8:17 pm Reply with quote
Beta tester Joined: 01 Aug 2005 Posts: 277 Location: Denmark
The the HTML bundle command "Convert Character / Selection to Entities" works fine for me (v1.1.120 beta). You could enable the bundle debug mode (menu: Bundles -> Edit Bundles -> Enable Debug Mode) and then check the tmcmd log file located in the apps settings dir (something like "c:\Documents and Settings]\[username]\Application Data\e\tmcmd.log"), that might give some hints.

The latest executed bundle command is stored the "tmcmd" file (also located in your apps settings dir), so you could try and run the bundle command from bash, by doing the following:
1) Start a cygwin bash shell
2) cd to your apps settings dir
3) Set the "TM_BUNDLE_SUPPORT" env var, i.e.:
Code:
export TM_BUNDLE_SUPPORT="/cygdrive/c/Program Files/e/Bundles/HTML.tmbundle/Support"

(this is the only env. var that is used for this bundle command)
4) Run the tmcmd script, i.e.:
Code:
echo "&" | ruby ./tmcmd


The
Code:
echo "&" |
will pass the "&" as input to the script, and should output
Code:
&


Does that work?

I haven't been able to reproduce your problem with the project settings...
View user's profile Send private message
bjchrist
Posted: Sat Apr 21, 2007 8:23 pm Reply with quote
Beta tester Joined: 01 Aug 2005 Posts: 277 Location: Denmark
I just saw that thelorax is having the same Ruby LoadError you got:
http://www.e-texteditor.com/forum/viewtopic.php?p=4115#4115
View user's profile Send private message
gtcaz
Posted: Sat Apr 21, 2007 9:50 pm Reply with quote
Registered User Joined: 23 Dec 2006 Posts: 732
http://www.e-texteditor.com/forum/viewtopic.php?p=1559#1559

If you don't have rubygems installed, yet have your RUBYOPT environment variable set by the One Click Installer, you'll get this error:

Code:
ruby: no such file to load -- ubygems (LoadError)


To fix that, unset RUBYOPT.

Conversely, if you did install rubygems, you need to export RUBYOPT=-rubygems or ruby won't see your gems (you'll get an error any time you try to require a gem).

(Edit for clarity.)


Last edited by gtcaz on Mon Apr 23, 2007 6:53 am; edited 2 times in total
View user's profile Send private message
sb
Posted: Mon Apr 23, 2007 6:46 am Reply with quote
Registered User Joined: 21 Apr 2007 Posts: 2
http://www.pluitsolutions.com/2006/03/30/install-ruby-on-rails-ror-on-cygwin/

thanks, the bundle commands are working
View user's profile Send private message
Typh
Posted: Sun Apr 29, 2007 7:21 pm Reply with quote
Registered User Joined: 29 Apr 2007 Posts: 4
gtcaz wrote:
http://www.e-texteditor.com/forum/viewtopic.php?p=1559#1559

If you don't have rubygems installed, yet have your RUBYOPT environment variable set by the One Click Installer, you'll get this error:

Code:
ruby: no such file to load -- ubygems (LoadError)


To fix that, unset RUBYOPT.

Conversely, if you did install rubygems, you need to export RUBYOPT=-rubygems or ruby won't see your gems (you'll get an error any time you try to require a gem).

(Edit for clarity.)

I have no idea what any of this means, and no experience with cygwin. I am getting frustrated with this error. When it first happened, I re-installed everything. It was fixed, but now, spontaneously, I have it again. If someone is able to, I'd greatly appreciate some one-on-one help resolving this issue over jabber: jwpeddle at gmail.com

Thanks
View user's profile Send private message
gtcaz
Posted: Mon Apr 30, 2007 5:38 am Reply with quote
Registered User Joined: 23 Dec 2006 Posts: 732
Try this:

Go to the cygwin bash prompt. If you don't know how to get there, use Start -> Run -> c:\cygwin\cygwin.bat.

Type:
echo unset RUBYOPT >> .bashrc

Type:
. .bashrc

Type:
irb

If you see:
irb(main):001:0>

You should be good to go.
View user's profile Send private message
Typh
Posted: Mon Apr 30, 2007 11:21 pm Reply with quote
Registered User Joined: 29 Apr 2007 Posts: 4
Quote:
If you see:
irb(main):001:0>

You should be good to go.

This was the case before I did anything, but I'm still (before and after these steps) experiencing this issue.

This is with alt-shift-, by the way.

Thank you for your help though.
View user's profile Send private message
freeb0rn
Posted: Tue May 01, 2007 1:54 am Reply with quote
Registered User Joined: 14 Apr 2007 Posts: 16
Out of curiosity, what is alt+shift+- supposed to do?
View user's profile Send private message
charlesroper
Posted: Tue May 01, 2007 7:20 am Reply with quote
Registered User Joined: 06 Mar 2007 Posts: 1204 Location: UK
freeb0rn wrote:
Out of curiosity, what is alt+shift+- supposed to do?


It's alt+shift+, (comma) and it converts the word under the caret into an HTML tag.

Typh: did you install the Windows One-Click version of Ruby?
View user's profile Send private message Visit poster's website
freeb0rn
Posted: Tue May 01, 2007 8:07 am Reply with quote
Registered User Joined: 14 Apr 2007 Posts: 16
charlesroper wrote:
freeb0rn wrote:
Out of curiosity, what is alt+shift+- supposed to do?


It's alt+shift+, (comma) and it converts the word under the caret into an HTML tag.

Typh: did you install the Windows One-Click version of Ruby?

Touche. Any idea what alt+shift+- is supposed to do, though? I can't quite figure it out.
View user's profile Send private message
charlesroper
Posted: Tue May 01, 2007 12:21 pm Reply with quote
Registered User Joined: 06 Mar 2007 Posts: 1204 Location: UK
It toggles CamelCase, which can be found in the Source bundle. So HotFlamingCats would become hot_flaming_cats and vice versa.
View user's profile Send private message Visit poster's website
freeb0rn
Posted: Tue May 01, 2007 3:34 pm Reply with quote
Registered User Joined: 14 Apr 2007 Posts: 16
Thanks again.
View user's profile Send private message
Typh
Posted: Tue May 01, 2007 9:36 pm Reply with quote
Registered User Joined: 29 Apr 2007 Posts: 4
charlesroper wrote:
freeb0rn wrote:
Out of curiosity, what is alt+shift+- supposed to do?


It's alt+shift+, (comma) and it converts the word under the caret into an HTML tag.

Typh: did you install the Windows One-Click version of Ruby?

I did, but I ended up removing it and using InstantRails instead.

I probably should have noted, this issue only started after I used the one-click installer, and not when I was just using InstantRails. Now that it is removed, however, the problem persists.
View user's profile Send private message
gtcaz
Posted: Tue May 01, 2007 9:51 pm Reply with quote
Registered User Joined: 23 Dec 2006 Posts: 732
Normally unset RUBYOPT is the solution for this: the one click installer sets this under Windows.

Maybe it's a side-effect of e now reading in Windows system variables. Try going to My Computer, right click, Properties, Advanced tab, Environment Variables button, and under System variables find the RUBYOPT variable, highlight it and click delete. You may need to reboot or log out and in again. See if this fixes things.

If that doesn't work, we need to dig a little more.

What does the command output into e? What happens if you start bash again and type irb? Do you have gems installed under cygwin? Enable debug under the bundle menu and let us know what tmcmd and tmcmd.com show.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 2
Goto page 1, 2  Next
Post new topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum