尝试设置rspec-guard-spork,以便从http://ruby.railstutorial.org/
学习应用在Windows7上使用Ruby 2.0,Rails 4.0(我知道:()
当开始守卫时,得到:
23:02:51 - ERROR - Guard::RSpec failed to achieve its <run_on_modifications>, exception was:
> [#] Errno::EACCES: Permission denied - ./tmp/rspec_guard_result
...
根据教程编辑所有gemfile,guardfile等。除了1)从gemfile中删除win32console gem,因为它将控制台输出变为废话并引发错误。
对于所有cattegories,文件的权限为&#34; F&#34;(ull):
D:\ WebDevelop \ sample_app&gt; cacls tmp \ rspec_guard_result D:\ WebDevelop \ sample_app \ tmp \ rspec_guard_result
我应该在此提供哪些其他信息?
答案 0 :(得分:1)
这似乎是一个锁定问题 - 而不是权限问题。对我来说:
在def _focused_path中的C:\ Ruby19 \ lib \ ruby \ gems \ 1.9.1 \ gems \ guard-rspec-4.0.3 \ lib \ guard \ rspec \ inspector.rb第51行。代码尝试删除rspec_guard_result,但不能,因为它是打开的。所以...在文件被删除之前关闭它。
更新:自2013年11月7日起,修复工作在https://github.com/guard/guard-rspec(主分公司)