{"action":"created","issue":{"url":"https://api.github.com/repos/guard/guard-rspec/issues/326","labels_url":"https://api.github.com/repos/guard/guard-rspec/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/guard/guard-rspec/issues/326/comments","events_url":"https://api.github.com/repos/guard/guard-rspec/issues/326/events","html_url":"https://github.com/guard/guard-rspec/issues/326","id":89560910,"number":326,"title":"No such file or directory @ rb_sysopen - tmp/rspec_guard_result","user":{"login":"dgmstuart","id":393167,"avatar_url":"https://avatars.githubusercontent.com/u/393167?v=3","gravatar_id":"","url":"https://api.github.com/users/dgmstuart","html_url":"https://github.com/dgmstuart","followers_url":"https://api.github.com/users/dgmstuart/followers","following_url":"https://api.github.com/users/dgmstuart/following{/other_user}","gists_url":"https://api.github.com/users/dgmstuart/gists{/gist_id}","starred_url":"https://api.github.com/users/dgmstuart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgmstuart/subscriptions","organizations_url":"https://api.github.com/users/dgmstuart/orgs","repos_url":"https://api.github.com/users/dgmstuart/repos","events_url":"https://api.github.com/users/dgmstuart/events{/privacy}","received_events_url":"https://api.github.com/users/dgmstuart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guard/guard-rspec/labels/info%20needed","name":"info needed","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-19T13:08:04Z","updated_at":"2015-07-10T20:30:44Z","closed_at":null,"body":"I'm getting the following failure, intermittently but very regularly:\r\n\r\n```ruby\r\nGuard::RSpec failed to achieve its <run_on_modifications>, exception was:\r\nErrno::ENOENT: No such file or directory @ rb_sysopen - tmp/rspec_guard_result\r\n```\r\nHere's the command I'm running with guard:\r\n```ruby\r\nguard :rspec, cmd: \"zeus rspec --tag ~js\", all_after_pass: true, failed_mode: :none do\r\n```\r\nThe error might be only when running acceptance specs with capybara, but it looks like it's failing before actually running any specs and I haven't been able to narrow it down because it's happening maybe once in every 15 runs.\r\n\r\nSounds similar to #316 and maybe #314, but @e2 said to report crashes as new issues (https://github.com/guard/guard-rspec/issues/316#issuecomment-108604997)\r\n\r\nI'm using:\r\n* guard-rspec-4.5.2\r\n* rspec 3.2.0\r\n* ruby 2.2.0\r\n* rails 4.2.2\r\n\r\nProject: https://github.com/dgmstuart/swingoutlondon2/tree/ad42c55c2b6dbd79be3487fc155e3d967a673448\r\n\r\nStack trace:\r\n```ruby\r\nGuard::RSpec failed to achieve its <run_on_modifications>, exception was:\r\n> [#] Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/rspec_guard_result\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/results.rb:11:in `readlines'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/results.rb:11:in `initialize'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:76:in `new'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:76:in `_command_output'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:94:in `_process_run_result'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:47:in `block in _run'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:45:in `tap'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:45:in `_run'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:32:in `run'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec.rb:42:in `block in run_on_modifications'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec.rb:48:in `_throw_if_failed'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec.rb:42:in `run_on_modifications'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:82:in `block in _supervise'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:79:in `catch'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:79:in `_supervise'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:61:in `block (3 levels) in run_on_changes'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:56:in `each'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:56:in `block (2 levels) in run_on_changes'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:119:in `block (2 levels) in _run_group_plugins'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:117:in `each'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:117:in `block in _run_group_plugins'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:116:in `catch'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:116:in `_run_group_plugins'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:54:in `block in run_on_changes'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:53:in `each'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/runner.rb:53:in `run_on_changes'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/internals/queue.rb:23:in `process'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/commander.rb:43:in `start'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/cli/environments/valid.rb:16:in `start_guard'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/cli.rb:122:in `start'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/aruba_adapter.rb:32:in `execute'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/lib/guard/aruba_adapter.rb:19:in `execute!'\r\n> [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-2.12.6/bin/_guard-core:11:in `<main>'\r\n```\r\nActually it comes out with odd staggering in my terminal, so it's more like this: \r\n\r\n```ruby\r\nGuard::RSpec failed to achieve its <run_on_modifications>, exception was:\r\n                                                                                            > [#] Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/rspec_guard_result\r\n                       > [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/results.rb:11:in `readlines'\r\n                                                                                                                                                        > [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/results.rb:11:in `initialize'\r\n                                                                                                                                 > [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/guard/rspec/runner.rb:76:in `new'\r\n                                                                                                  > [#] /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/guard-rspec-4.5.2/lib/g\r\n# etc...\r\n```"},"comment":{"url":"https://api.github.com/repos/guard/guard-rspec/issues/comments/120514257","html_url":"https://github.com/guard/guard-rspec/issues/326#issuecomment-120514257","issue_url":"https://api.github.com/repos/guard/guard-rspec/issues/326","id":120514257,"user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T20:30:44Z","updated_at":"2015-07-10T20:30:44Z","body":"I sent a PR to fix the issues with Guard::RSpec - since you're using Zeus, there's a special workaround (mentioned in the Readme). Maybe I should detect the issue better.\r\n\r\nThe results of running `zeus test` on your project:\r\n\r\n```\r\nPending: (Failures listed here are expected and do not affect your suite's status)\r\n  1) EventGenerator Validations validates that date is a date\r\n     # Not yet implemented\r\n     # ./spec/models/event_generator_spec.rb:13\r\n  2) EventInstance Validations validates that date is a date\r\n     # Not yet implemented\r\n     # ./spec/models/event_instance_spec.rb:12\r\n  3) Admin adds an event with invalid venue postcode\r\n     # Not yet implemented\r\n     # ./spec/acceptance/create_event/create_event_with_venue_spec.rb:27\r\nFinished in 12.9 seconds (files took 8.1 seconds to load)\r\n110 examples, 0 failures, 3 pending\r\nRandomized with seed 57825\r\n```\r\n\r\nIf you have a different issue, just open a new issue and link to the repo so I can reproduce this.\r\n\r\nThanks very much for the reports and the repo to test - it helped a lot!"}}