我已完成所有rvm / textmate设置并拥有最新的捆绑包但 I still can't run Rspec test from textmate .
-
我有来自
github.com/rspec/rspec-tmbundle.git
的最新捆绑包,它已安装在~/Library/Application\ Support/TextMate/Bundles/ RSpec.tmbundle
中 -
RVM默认使用系统ruby 1.8.6
-
Rspec宝石版本
宝石列表 - 本地| 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 = /用户/ jspooner / .rvm /斌/ RVM-自动红宝石
- 错误: 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
4 回答
我发现的最佳解决方案来自Jacques Crocker . http://groups.google.com/group/rubyversionmanager/browse_thread/thread/64b84bbcdf49e9b?fwc=1
它需要用下面的代码替换textmate_ruby的内容,并且再也不要运行rvm wrapper xxx textmate .
这也解决了与黄瓜束相同的问题 .
您是否尝试按照此处的说明操作:http://rvm.io/integration/textmate/
我的情况稍有不同,但花了我一个多小时才弄明白:
事实证明,在用rvm安装ree之后我跑了
rvm wrapper ree textmate
,同时 ree 速记从含义ree-1.8.7-2010.01
变为ree-1.8.7-2010.02
这里有关于我的消息的更多细节:https://gist.github.com/721987
我是第一个登陆的页面之一,试图找出这个 .
我有一个类似的问题,并发现我的textmate ruby包装器指向不同的版本 . 通过将下面的内容放在projectx / .rvmrc中,我能够使它工作
rvm 1.9.2@projectx - 创建
rvm wrapper 1.9.2@projectx textmate
希望这可以帮助 .