Questions tagged [guard]

Guard is a command line tool to easily handle events on file system modifications.

Guard is a command line tool to easily handle events on file system modifications (FSEvent / Inotify / Polling support).

851 questions
200
votes
10 answers

Unresolved specs during Gem::Specification.reset:

When launching Guard, I'm getting this output: $ guard WARN: Unresolved specs during Gem::Specification.reset: lumberjack (>= 1.0.2) ffi (>= 0.5.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. What…
reneruiz
  • 2,286
  • 2
  • 19
  • 16
63
votes
4 answers

What is the difference between Pattern Matching and Guards?

I am very new to Haskell and to functional programming in general. My question is pretty basic. What is the difference between Pattern Matching and Guards? Function using pattern matching check :: [a] -> String check [] = "Empty" check (x:xs) =…
Varun Natarajan
  • 683
  • 1
  • 5
  • 6
53
votes
5 answers

Is it impossible to use Guard with RubyMine?

For some inexplicable reason, RubyMine autosaves every change you make and so every key stroke will trigger Guard to run your tests! And the most ridiculous thing is that there's apparently no way to disable this autosaving "feature". I'm just…
yiinewbie
  • 1,045
  • 11
  • 19
40
votes
3 answers

How to run a single test in guard for rspec?

I use guard-rspec to automatically run necessary rspec tests as my files changes, and I love how it works. However, when I'm debugging a file with multiple tests, sometimes I just want an individual test to be re-run. For example, with rspec from…
eirikir
  • 3,634
  • 2
  • 17
  • 36
28
votes
2 answers

Guard-rails not providing REPL for binding.pry

I'm using guard-rails to run my rails server, my problem is I can't access the REPL when I add binding.pry I just get From: /home/martinr/code/app/controllers/tools_controller.rb @ line 2 ToolsController#index: 2: def index => 3: …
Martinffx
  • 2,264
  • 3
  • 28
  • 56
25
votes
2 answers

Problems with Guard, Spork, Rspec & Rails 3

I've followed the spork railscast video and it gives me the following error when I try to run guard: Guard is now watching at '/Users/m/work/' Starting Spork for Test::Unit & RSpec Couldn't find a supported test framework that begins with…
Mike Neumegen
  • 2,236
  • 1
  • 22
  • 34
25
votes
8 answers

NullInjectorError: No provider for JwtHelperService

I'm in Angular 5. First: npm install @auth0/angular-jwt --save Then I import it: import { JwtHelperService } from '@auth0/angular-jwt'; This is my authentication service: import { JwtHelperService } from '@auth0/angular-jwt'; @Injectable() export…
ValRob
  • 1,797
  • 4
  • 26
  • 33
24
votes
6 answers

Is there a way to automatically have a "rake db:migrate RAILS_ENV=test" after "rake db:migrate" in development environment?

Is there a way to automatically do a rake db:migrate RAILS_ENV=test after each rake db:migrate when in development environment? I have guard and guard-rspec running, and I am really annoyed about the failing tests, even if it works manually in the…
NobbZ
  • 1,300
  • 3
  • 14
  • 29
23
votes
2 answers

Angular guards, unclear statement in the docs

I'm trying to understand angular deeply, so i read the docs and it was very helpful. now i'm studying the guards. and i read this statement in the docs. The router checks the CanDeactivate and CanActivateChild guards first, from the deepest child…
Raed Khalaf
  • 1,801
  • 10
  • 25
22
votes
3 answers

Guard causing "Error: can't modify string; temporarily locked"

When running guard in a Rails 4 project with guard-rspec, I sporadically see the following error when opening/closing files in vim. I've tried upgrading/downgrading guard, guard-rspec, pry, and other libraries without luck. ruby 2.0.0p247…
Charles Maresh
  • 3,183
  • 20
  • 29
21
votes
2 answers

Guard::RSpec error: No cmd option specified, unable to run specs

After upgrading to guard 2.6.1 guard stopped executing specs for changed file 13:27:09 - INFO - LiveReload is waiting for a browser to connect. 13:27:09 - INFO - Guard::RSpec is running 13:27:09 - INFO - Guard is now watching at '[path to…
Serge Seletskyy
  • 13,566
  • 6
  • 59
  • 76
20
votes
1 answer

Error with running Guard process: can't find singularize method

I followed the Rails Tutorial on setting up automated tests with Guard and Spork. Every once in a while, especially when saving an unedited template in my editor, Guard will complain (full backtrace): ERROR: Problem with watch action! undefined…
jrhorn424
  • 1,863
  • 1
  • 21
  • 24
19
votes
1 answer

Is it possible to retrieve an exception inside a guard-statement with "try?"?

In swift, is it possible to use the shorter guard let try? and get the occuring exception if entering the else block? guard let smth = try? myThrowingFunc() else { print(error) //can I access the exception here somehow? return } vs let…
smat88dd
  • 1,534
  • 1
  • 17
  • 35
18
votes
7 answers

Where can I find a good Scope Guard implementation for my C++ projects?

I just recently learned about Scope Guard C++ idiom. Unfortunately I can't find any good implementation of it. Can anyone point me to some good and usable Scope Guard implementation in C++? Thanks, Boda Cydo.
bodacydo
  • 63,809
  • 83
  • 206
  • 303
18
votes
3 answers

Error on start when using Spork and Guard

Here's the problem. When added the Guard gem everything was fine when I was calling Guard. When I added Spork, I get the following error that doesn't affect testing my tests but it brings it up every time I try to restart Guard. 19:01:28 - INFO -…
PericlesTheo
  • 2,319
  • 2
  • 17
  • 30
1
2 3
56 57