0

尝试设置 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,因为它将控制台输出变成废话并引发错误。

对于所有类别,文件的权限为“F”(ull):

D:\WebDevelop\sample_app>cacls tmp\rspec_guard_result D:\WebDevelop\sample_app\tmp\rspec_guard_result

  • 内置\用户:(ID)F
  • NT AUTHORITY\Authenticated:(ID)F
  • 内置\管理员:(ID)F
  • NT AUTHORITY\system:(ID)F

我应该在此处提供哪些其他信息?

4

1 回答 1

1

这似乎是一个锁定问题——而不是权限问题。为了我:

C:\Ruby19\lib\ruby\gems\1.9.1\gems\guard-rspec-4.0.3\lib\guard\rspec\inspector.rb def _focused_pa​​th 中的第 51 行。该代码尝试删除 rspec_guard_result 但不能因为它是打开的。所以......在文件被删除之前关闭它。

更新:截至 2013 年 11 月 7 日,修复已在https://github.com/guard/guard-rspec(主分支)

于 2013-11-05T20:59:11.797 回答