[SVN] Re: Ruby's Require statement is broken
Allan Odgaard
mailinglist at textmate.org
Tue Oct 28 12:24:48 UTC 2008
On 28 Oct 2008, at 12:48, Stephen Malone wrote:
> I am coding an IRC bot in Ruby, and the require statement does not
> work within Textmate. Using "ruby bot.rb" in the Terminal, the program
> operates fine, but in Textmate's own RubyMate environment (which is
> initialized with Cmd+R), any require statement that loads a file
> outside of Ruby's standard library (i.e.: a file you've made yourself)
> will return the LoadError error message.
Try in Terminal to run: ruby -e 'p $:'
Then try run the same line from the file that requires bot.rb (before
the require, so it actually gets to run).
More information about the textmate-dev
mailing list