I tried running a spec with command-r in TextMate and got: /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/ lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems (LoadError) from /Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ temp_textmate.GplhPr:3:in `require'' from /tmp/temp_textmate.GplhPr:3 The spec runs fine from the command line. Any ideas? Thanks, Brian
I don''t have any help to offer, but I can confirm that I''m experiencing this issue right now, as well as some other people I have spoken with. -Bryan On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote:> I tried running a spec with command-r in TextMate and got: > > /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/ > lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems > (LoadError) from /Library/Application Support/TextMate/Bundles/ > RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ > temp_textmate.GplhPr:3:in `require'' from /tmp/temp_textmate.GplhPr:3 > > The spec runs fine from the command line. > > Any ideas? > > Thanks, > Brian > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Sounds like TM is running a Ruby interpreter that doesn''t have Rubygems installed. Tell TM to run a different Ruby - it''s documented somewhere, but I don''t remember where. Aslak On 1/10/07, Bryan Helmkamp <bhelmkamp at gmail.com> wrote:> I don''t have any help to offer, but I can confirm that I''m > experiencing this issue right now, as well as some other people I have > spoken with. > > -Bryan > > On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote: > > I tried running a spec with command-r in TextMate and got: > > > > /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/ > > lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems > > (LoadError) from /Library/Application Support/TextMate/Bundles/ > > RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ > > temp_textmate.GplhPr:3:in `require'' from /tmp/temp_textmate.GplhPr:3 > > > > The spec runs fine from the command line. > > > > Any ideas? > > > > Thanks, > > Brian > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
I do have TM_RUBY set to the same Ruby interpreter as the one I use from the terminal. ---Brian On Jan 10, 2007, at 1:49 AM, aslak hellesoy wrote:> Sounds like TM is running a Ruby interpreter that doesn''t have > Rubygems installed. > > Tell TM to run a different Ruby - it''s documented somewhere, but I > don''t remember where. > > Aslak > > On 1/10/07, Bryan Helmkamp <bhelmkamp at gmail.com> wrote: >> I don''t have any help to offer, but I can confirm that I''m >> experiencing this issue right now, as well as some other people I >> have >> spoken with. >> >> -Bryan >> >> On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote: >>> I tried running a spec with command-r in TextMate and got: >>> >>> /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/ >>> Support/ >>> lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems >>> (LoadError) from /Library/Application Support/TextMate/Bundles/ >>> RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ >>> temp_textmate.GplhPr:3:in `require'' from /tmp/temp_textmate.GplhPr:3 >>> >>> The spec runs fine from the command line. >>> >>> Any ideas? >>> >>> Thanks, >>> Brian >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Let''s narrow it down a little to see if this is a problem with the bundle or your environment. Try this: 1) Create a file called foo.rb 2) Add one line to it: require ''rubygems'' 3) Open it in TextMate 4) Run it from TextMate (Cmd-R - Run) Do you get the same error? If so, your environment is bad. Aslak On 1/10/07, Brian Yamabe <brian at yamabe.net> wrote:> I do have TM_RUBY set to the same Ruby interpreter as the one I use > from the terminal. > > ---Brian > > On Jan 10, 2007, at 1:49 AM, aslak hellesoy wrote: > > > Sounds like TM is running a Ruby interpreter that doesn''t have > > Rubygems installed. > > > > Tell TM to run a different Ruby - it''s documented somewhere, but I > > don''t remember where. > > > > Aslak > > > > On 1/10/07, Bryan Helmkamp <bhelmkamp at gmail.com> wrote: > >> I don''t have any help to offer, but I can confirm that I''m > >> experiencing this issue right now, as well as some other people I > >> have > >> spoken with. > >> > >> -Bryan > >> > >> On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote: > >>> I tried running a spec with command-r in TextMate and got: > >>> > >>> /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/ > >>> Support/ > >>> lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems > >>> (LoadError) from /Library/Application Support/TextMate/Bundles/ > >>> RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ > >>> temp_textmate.GplhPr:3:in `require'' from /tmp/temp_textmate.GplhPr:3 > >>> > >>> The spec runs fine from the command line. > >>> > >>> Any ideas? > >>> > >>> Thanks, > >>> Brian > >>> _______________________________________________ > >>> rspec-users mailing list > >>> rspec-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rspec-users > >>> > >> _______________________________________________ > >> rspec-users mailing list > >> rspec-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rspec-users > >> > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Tried it and it worked without a problem, so it looks like a bundle problem. I don''t know much about bundles, but I''d be happy to work with someone who has suggestions for how to fix this. Thank, Aslak. You and David do a great job on this list. ---Brian On Jan 10, 2007, at 7:00 AM, aslak hellesoy wrote:> Let''s narrow it down a little to see if this is a problem with the > bundle or your environment. > > Try this: > > 1) Create a file called foo.rb > 2) Add one line to it: require ''rubygems'' > 3) Open it in TextMate > 4) Run it from TextMate (Cmd-R - Run) > > Do you get the same error? If so, your environment is bad. > > Aslak > > On 1/10/07, Brian Yamabe <brian at yamabe.net> wrote: >> I do have TM_RUBY set to the same Ruby interpreter as the one I use >> from the terminal. >> >> ---Brian >> >> On Jan 10, 2007, at 1:49 AM, aslak hellesoy wrote: >> >>> Sounds like TM is running a Ruby interpreter that doesn''t have >>> Rubygems installed. >>> >>> Tell TM to run a different Ruby - it''s documented somewhere, but I >>> don''t remember where. >>> >>> Aslak >>> >>> On 1/10/07, Bryan Helmkamp <bhelmkamp at gmail.com> wrote: >>>> I don''t have any help to offer, but I can confirm that I''m >>>> experiencing this issue right now, as well as some other people I >>>> have >>>> spoken with. >>>> >>>> -Bryan >>>> >>>> On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote: >>>>> I tried running a spec with command-r in TextMate and got: >>>>> >>>>> /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/ >>>>> Support/ >>>>> lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems >>>>> (LoadError) from /Library/Application Support/TextMate/Bundles/ >>>>> RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ >>>>> temp_textmate.GplhPr:3:in `require'' from /tmp/ >>>>> temp_textmate.GplhPr:3 >>>>> >>>>> The spec runs fine from the command line. >>>>> >>>>> Any ideas? >>>>> >>>>> Thanks, >>>>> Brian >>>>> _______________________________________________ >>>>> rspec-users mailing list >>>>> rspec-users at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>>> >>>> _______________________________________________ >>>> rspec-users mailing list >>>> rspec-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Please submit a bug report at Rubyforge for this. I''m currently without Internet at home so it will take a while before I get to it. On 1/10/07, Brian Yamabe <brian at yamabe.net> wrote:> Tried it and it worked without a problem, so it looks like a bundle > problem. > I don''t know much about bundles, but I''d be happy to work with someone > who has suggestions for how to fix this. > > Thank, Aslak. You and David do a great job on this list. > > ---Brian > > On Jan 10, 2007, at 7:00 AM, aslak hellesoy wrote: > > > Let''s narrow it down a little to see if this is a problem with the > > bundle or your environment. > > > > Try this: > > > > 1) Create a file called foo.rb > > 2) Add one line to it: require ''rubygems'' > > 3) Open it in TextMate > > 4) Run it from TextMate (Cmd-R - Run) > > > > Do you get the same error? If so, your environment is bad. > > > > Aslak > > > > On 1/10/07, Brian Yamabe <brian at yamabe.net> wrote: > >> I do have TM_RUBY set to the same Ruby interpreter as the one I use > >> from the terminal. > >> > >> ---Brian > >> > >> On Jan 10, 2007, at 1:49 AM, aslak hellesoy wrote: > >> > >>> Sounds like TM is running a Ruby interpreter that doesn''t have > >>> Rubygems installed. > >>> > >>> Tell TM to run a different Ruby - it''s documented somewhere, but I > >>> don''t remember where. > >>> > >>> Aslak > >>> > >>> On 1/10/07, Bryan Helmkamp <bhelmkamp at gmail.com> wrote: > >>>> I don''t have any help to offer, but I can confirm that I''m > >>>> experiencing this issue right now, as well as some other people I > >>>> have > >>>> spoken with. > >>>> > >>>> -Bryan > >>>> > >>>> On 1/9/07, Brian Yamabe <brian at yamabe.net> wrote: > >>>>> I tried running a spec with command-r in TextMate and got: > >>>>> > >>>>> /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/ > >>>>> Support/ > >>>>> lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems > >>>>> (LoadError) from /Library/Application Support/TextMate/Bundles/ > >>>>> RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ > >>>>> temp_textmate.GplhPr:3:in `require'' from /tmp/ > >>>>> temp_textmate.GplhPr:3 > >>>>> > >>>>> The spec runs fine from the command line. > >>>>> > >>>>> Any ideas? > >>>>> > >>>>> Thanks, > >>>>> Brian > >>>>> _______________________________________________ > >>>>> rspec-users mailing list > >>>>> rspec-users at rubyforge.org > >>>>> http://rubyforge.org/mailman/listinfo/rspec-users > >>>>> > >>>> _______________________________________________ > >>>> rspec-users mailing list > >>>> rspec-users at rubyforge.org > >>>> http://rubyforge.org/mailman/listinfo/rspec-users > >>>> > >>> _______________________________________________ > >>> rspec-users mailing list > >>> rspec-users at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rspec-users > >> > >> _______________________________________________ > >> rspec-users mailing list > >> rspec-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rspec-users > >> > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >