dturnbull/closure-script — Issue #13: Rails 3.1: Updated gems, now get stack level too deep error
Author: robert-stuttaford
Created: 2011-11-29 12:03:45+00:00
State: open

Using Rails 3.1.1.

config.ru:

# This file is used by Rack-based servers to start the application.

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

require 'closure'

if Rails.env == 'development'
Closure.add_source :soy, '/soy'
Closure.add_source './app/javascripts/closure-library', '/closure-library'
Closure.add_source './app/javascripts/myapp', '/myapp'
end

use Closure::Middleware

run MyAppServer::Application

When visiting /myapp/compiler.js, the web server shows this error message:

!! Unexpected error while processing request: stack level too deep

I haven't the faintest idea of how to proceed with debugging this. Please help! :)