sstephenson/sprockets — Issue #236: Sprockets::CircularDependencyError after CoffeeScript syntax error
Author: samgro
Created: 2011-11-01 18:44:04+00:00
State: open

When I have a CoffeeScript syntax error, after the first call to my compiled JS asset, I get a Sprockets::CircularDependencyError until I restart the server. Sprockets 2.0.2, Rails 3.0.9.

My environment is set up in config.ru:

require ::File.expand_path('../config/environment', __FILE__)
require 'sprockets'

map '/assets' do
environment = Sprockets::Environment.new
environment.append_path 'app/assets/coffeescripts'
environment.append_path 'app/assets/javascripts'
environment.append_path 'app/assets/stylesheets'
environment.append_path 'vendor/assets/javascripts'
run environment
end

map '/' do
run Gpg::Application
end