Questions tagged [watchr]
12 questions
15
votes
6 answers
Automatically reloading ghci & running hlint on file updates
I was thinking about my ideal haskell editing workflow:
I open three terminals (split using iterm2).
Terminal 1 runs vim for editing the haskell source files.
Terminal 2 automatically runs hlint on the changed files whenenver a file in the current…

Joe Van Dyk
- 6,828
- 8
- 57
- 73
8
votes
2 answers
Ruby's watchr equivalent in Python?
I like the concept of watchr: it monitor the file system and run a callback when something changes. Is there a pure Python equivalent? Preferably pip installable.

Bite code
- 578,959
- 113
- 301
- 329
6
votes
3 answers
Path, /usr/bin/ and /usr/local/bin/
I installed watchr on OS X (10.8.3) using gem install watchr. And it's installed in /usr/bin/watchr
$ which watchr
/usr/bin/watchr
However, when I tried to call it $ watchr -v, the system couldn't find it.
$ watchr -v
-bash: /usr/local/bin/watchr:…

moey
- 10,587
- 25
- 68
- 112
1
vote
0 answers
Watchr doesn't use the colors from Turn
I'm using Minitest and the Turn gem for pretty test output. But when I run the tests in Watchr, none of the colors carry over. So I get all of the nice spacing and formatting, but none of the red/green color coding. Is there anything special I need…

tubbo
- 598
- 10
- 21
1
vote
0 answers
rails-3.2.14.rc2,spork 0.9.2,watchr-0.7 and rspec 3.1.0 = uninitialized constant RSpec::Core::CommandLine (NameError)
***rails_helper.rb***
require 'spec_helper'
ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.use_transactional_fixtures =…

Gourab Das
- 31
- 7
1
vote
1 answer
Automatically concatenating files using Watchr
I have a bunch of JS files that I split up, but want to concatenate automatically (so I don't define a bunch of files in HTML). Right now, I copied the command from Twitter Bootstrap. Makefile:
scripts:
cat scripts/*.js >…

Jonathan Ong
- 19,927
- 17
- 79
- 118
0
votes
1 answer
Ruby/Rails continuous automated testing with notifications and html output?
I'm a newbie in ruby/rails, currently doing the railstutorial book as a part of a university course.
I'm using ubuntu 11.04, ruby 1.9.2p290, and Rails 3.0.9, watchr (0.7), rspec (2.6.0), rspec-formatter-webkit (2.1.3) and spork (0.9.0.rc).
On github…

tpv
- 153
- 9
0
votes
1 answer
How do I allow a watchr script to be in the scope of my ActiveRecord models
I have a watchr script running on my Ruby on Rails 3.1 app and inside the script I need to make a call like: game = Game.find(0)
except whenever the script is being executed I receive this error: uninitialized constant…

Teddy
- 579
- 1
- 4
- 17
0
votes
1 answer
Watchr: Undefined method `watch' for main:Object
I am using watchr to watch and compile my stylus and haml files, but as soon as I run the watchr command, I get an error message saying: : undefined method watch' for main:Object (NoMethodError).
My watchr.rb file looks like this
def…

ALEX
- 64
- 1
- 6
0
votes
1 answer
Test all subclasses on file update
I am learning unit testing with PHP and am following the TDD session on tutsplus: http://net.tutsplus.com/sessions/test-driven-php/
I have set up a ruby watchr script to run the PHPUnit unit tests every time a file is modified using Susan Buck's…

Aaron Luman
- 635
- 1
- 10
- 29
0
votes
1 answer
Twitter Bootstrap: Which watchr to `make watch`?
To make watch Twitter Bootstrap, are we supposed to use watchr for Node.js or gem watchr? This discussion suggested to use gem watchr.
I tried it with gem watchr, installed by (as instructed in https://github.com/mynyml/watchr):
gem install…

moey
- 10,587
- 25
- 68
- 112
0
votes
1 answer
watchr: Is it possible to do something when a file stopped changing?
Here's the description of the debounce function from Underscore.js:
Creates and returns a new debounced version of the passed function that will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked.…

Barnaba
- 657
- 5
- 19