dnagir/guard-rails-assets — Issue #18: Failing to find a file that does exist
Author: duncan-bayne
Created: 2012-01-30 21:09:17+00:00
State: open

When I run Guard, it complains that a particular Javascript file can't be found:

$ bundle exec guard
Guard uses Libnotify to send notifications.
Guard is now watching at '/home/duncan/avia'
Compiling rails assets with Guard::RailsAssets::RailsRunner.
Booting Rails for test environment.
rm -rf /home/duncan/avia/public/assets
mkdir -p /home/duncan/avia/public/assets/helpers
mkdir -p /home/duncan/avia/public/assets/support
...
mkdir -p /home/duncan/avia/public/assets
mkdir -p /home/duncan/avia/public/assets
An error occurred compiling assets: /home/duncan/avia/avia.js isn't in paths: /home/duncan/avia/spec/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-core-1.1.0/lib/jasmine-core, /home/duncan/avia/app/assets/images, /home/duncan/avia/app/assets/javascripts, /home/duncan/avia/app/assets/stylesheets, /home/duncan/avia/vendor/assets/stylesheets, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-rails-0.0.2/app/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-rails-0.0.2/app/assets/stylesheets, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/backbone-rails-0.5.3.1/vendor/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-1ccd2fabce71/app/assets/images, /home/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-1ccd2fabce71/app/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-1ccd2fabce71/app/assets/stylesheets, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/bootstrap-sass-1.4.4/vendor/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/bootstrap-sass-1.4.4/vendor/assets/stylesheets, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/remotipart-1.0.1/vendor/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/haml-sprockets-81f100ccaa9b/vendor/assets/javascripts, /home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/jquery-rails-1.0.19/vendor/asset
s/javascripts
Failed to compile assets.
Guard::JasmineHeadlessWebkit is running.
Guard::JasmineHeadlessWebkit running all specs...

However, that file does exist in one of the paths in the list:

$ ls -l /home/duncan/avia/app/assets/javascripts/avia.js
-rw-rw-r-- 1 duncan duncan 12 2012-01-23 07:21 /home/duncan/avia/app/assets/javascripts/avia.js

I'm running the following gems:

* guard (1.0.0)
* guard-jasmine-headless-webkit (0.3.2)
* guard-rails-assets (0.0.8)
* guard-rspec (0.6.0)