Rspec 捆绑包在 TextMate 和 rvm 中损坏
自从我开始使用rvm以来,我经历了一段困难时期。我已完成所有 rvm/textmate 设置并拥有最新的捆绑包,但我仍然无法从 textmate 运行 Rspec 测试。
我有来自
github.com/rspec/rspec-tmbundle.git
的最新捆绑包 它安装在~/Library/Application\ Support/TextMate/Bundles/ 中 RSpec.tmbundle
RVM 默认使用系统 ruby 1.8.6
Rspec gem 版本
宝石列表--本地| grep 规范 blue_light_special (0.2.0) rspec (2.2.0) rspec-核心(2.2.1、2.0.1) rspec 期望(2.2.0、2.0.1) rspec-模拟(2.2.0、2.0.1) rspec-rails (2.0.1, 1.3.2)
TextMate
TM_RUBY=/Users/jspooner/.rvm/bin/rvm-auto-ruby
错误:rspec/core (LoadError)
/Users/jspooner/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/rspec/mate.rb:29:in
require': 没有要加载的文件 -- rspec/core (LoadError)来自 /Users/jspooner/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/rspec/mate.rb:29 来自 /tmp/textmate-command-8073.rb:2:in require' 来自 /tmp/textmate-command-8073.rb:2
I've had a difficult time since I started using rvm. I've done all the rvm/textmate set up and have the latest bundles but I still can't run Rspec test from textmate.
I have the latest bundle from
github.com/rspec/rspec-tmbundle.git
and it's installed in~/Library/Application\ Support/TextMate/Bundles/
RSpec.tmbundleRVM default is using the system ruby 1.8.6
Rspec gem versions
gem list --local | grep spec
blue_light_special (0.2.0)
rspec (2.2.0)
rspec-core (2.2.1, 2.0.1)
rspec-expectations (2.2.0, 2.0.1)
rspec-mocks (2.2.0, 2.0.1)
rspec-rails (2.0.1, 1.3.2)TextMate
TM_RUBY=/Users/jspooner/.rvm/bin/rvm-auto-ruby
The Error: rspec/core (LoadError)
/Users/jspooner/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/rspec/mate.rb:29:in
require': no such file to load -- rspec/core (LoadError) from /Users/jspooner/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/rspec/mate.rb:29 from /tmp/textmate-command-8073.rb:2:in
require' from /tmp/textmate-command-8073.rb:2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我发现的最佳解决方案来自 Jacques Crocker。
http://groups.google.com/group/rubyversionmanager/browse_thread /thread/64b84bbcdf49e9b?fwc=1
它需要用下面的代码替换textmate_ruby的内容,并且不再运行rvm包装器xxx textmate。
这也解决了黄瓜束的相同问题。
The best solution I've found is from Jacques Crocker.
http://groups.google.com/group/rubyversionmanager/browse_thread/thread/64b84bbcdf49e9b?fwc=1
It requires replacing the contents of textmate_ruby with the code below and never running rvm wrapper xxx textmate again.
This has also fixed the same issue with the cucumber bundle.
您是否尝试按照此处的说明进行操作:http://rvm.io/integration/textmate/
Did you try following the instructions here: http://rvm.io/integration/textmate/
我的情况略有不同,但花了我一个多小时才弄清楚:
原来我在使用 rvm 安装 ree 后运行了
rvm 包装器 ree textmate
一段时间,同时 ree 简写形式的含义从ree-1.8.7-2010.01
更改为ree-1.8.7-2010.02
以下是我的消息的更多详细信息:
https://gist.github.com/721987
我也将其发布在这里,因为它我在试图弄清楚这一点时登陆的第一页之一。
My case is slightly different but took me more than an hour to figure out:
Turns out I ran
rvm wrapper ree textmate
a while after installing ree with rvm and in the mean time the ree shorthand changed from meaningree-1.8.7-2010.01
toree-1.8.7-2010.02
here's more details on my message:
https://gist.github.com/721987
I'm posting it here too because it's one of the first pages I landed onto while trying to figure this one out.
我遇到了类似的问题,并发现我的文本伙伴 ruby 包装器指向不同的版本。我能够通过将以下内容放入 projectx/.rvmrc
rvm 1.9.2@projectx --create
rvm 包装器 1.9.2@projectx textmate
希望这会有所帮助。
I've got a similar problem and figured out that my textmate ruby wrapper is pointing to a different version. I was able to get it work by putting below content in projectx/.rvmrc
rvm 1.9.2@projectx --create
rvm wrapper 1.9.2@projectx textmate
Hope this helps.