Skip to content

Instantly share code, notes, and snippets.

@jannisg
Created April 25, 2012 20:24
Show Gist options
  • Save jannisg/2493042 to your computer and use it in GitHub Desktop.
Save jannisg/2493042 to your computer and use it in GitHub Desktop.
Error in MiddleMan 3.0.0.beta.2
SyntaxError at /
/Volumes/Storage2/Sites/git/michael-braid.com/templates/source/partials/_header.erb:4: syntax error, unexpected ')' ...ex.html", :class => 'logo' do ).to_s); @_out_buf.concat "\n" ... ^ /Volumes/Storage2/Sites/git/michael-braid.com/templates/source/partials/_header.erb:38: syntax error, unexpected keyword_ensure, expecting ')' /Volumes/Storage2/Sites/git/michael-braid.com/templates/source/partials/_header.erb:40: syntax error, unexpected keyword_end, expecting ')'
Ruby /Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in instance_eval, line 209
Web GET localhost/
Jump to:
GETPOSTCookiesENV
Traceback (innermost first)
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in instance_eval
scope.instance_eval(source, eval_file, line - offset)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in evaluate_source
scope.instance_eval(source, eval_file, line - offset)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in cached_evaluate
evaluate_source(scope, locals, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in evaluate
cached_evaluate(scope, locals, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in render
evaluate scope, locals || {}, &block...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file
template.render(context, locs, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/core_extensions/rendering.rb: in render
render_individual_file(found_partial, locals, options, self, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/vendor/padrino-helpers-0.10.6/lib/padrino-helpers/render_helpers.rb: in partial
render(explicit_engine, template_path, options.dup)...
/Volumes/Storage2/Sites/git/michael-braid.com/templates/source/index.html.erb: in block in singletonclass
---...
/Volumes/Storage2/Sites/git/michael-braid.com/templates/source/index.html.erb: in instance_eval
/Volumes/Storage2/Sites/git/michael-braid.com/templates/source/index.html.erb: in singletonclass
/Volumes/Storage2/Sites/git/michael-braid.com/templates/source/index.html.erb: in __tilt_70105497292500
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in call
method.bind(scope).call(locals, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in cached_evaluate
method.bind(scope).call(locals, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in evaluate
cached_evaluate(scope, locals, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/tilt-1.3.3/lib/tilt/template.rb: in render
evaluate scope, locals || {}, &block...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file
template.render(context, locs, &block)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/core_extensions/rendering.rb: in render_template
content = render_individual_file(path, locs, opts, context)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/sitemap/resource.rb: in render
result = app.render_template(source_file, locs, opts)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/application.rb: in process_request
res.write resource.render...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/application.rb: in block in call
process_request...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/application.rb: in catch
catch(:halt) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/application.rb: in call
catch(:halt) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/builder.rb: in call
to_app.call(env)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/urlmap.rb: in block in call
return app.call(env)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/urlmap.rb: in each
@mapping.each do |host, location, match, app|...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/urlmap.rb: in call
@mapping.each do |host, location, match, app|...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/showexceptions.rb: in call
@app.call(env)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/builder.rb: in call
to_app.call(env)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/connection.rb: in block in pre_process
response = @app.call(@request.env)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/connection.rb: in catch
catch(:async) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/connection.rb: in pre_process
catch(:async) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/connection.rb: in process
post_process(pre_process)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/connection.rb: in receive_data
process if @request.parse(data)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb: in run_machine
run_machine...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb: in run
run_machine...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/backends/base.rb: in start
EventMachine.run(&starter)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.3.1/lib/thin/server.rb: in start
@backend.start...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/handler/thin.rb: in run
server.start...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/server.rb: in start
server.run wrapped_app, options, &blk...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/application.rb: in start_server
server.start...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in bootup
::Middleman.start_server(opts)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in block in start
bootup...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in fork
@server_job = fork {...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in start
@server_job = fork {...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in initialize
start...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in new
self.singleton = new(options)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/watcher.rb: in start
self.singleton = new(options)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/cli/server.rb: in server
Middleman::Watcher.start(params)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb: in run
instance.send(name, *args) : instance.class.handle_no_task_error(name)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb: in invoke_task
task.run(self, *args)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor.rb: in dispatch
new(args, opts, config).invoke_task(task, trailing || [])...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/base.rb: in start
dispatch(nil, given_args.dup, nil, config)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/lib/middleman-core/cli.rb: in method_missing
klass.start(args, :shell => self.shell)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb: in run
instance.send(name, *args) : instance.class.handle_no_task_error(name)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb: in run
super...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb: in invoke_task
task.run(self, *args)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor.rb: in dispatch
new(args, opts, config).invoke_task(task, trailing || [])...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/base.rb: in start
dispatch(nil, given_args.dup, nil, config)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/bin/middleman: in block in <top (required)>
Middleman::Cli::Base.start...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/bin/middleman: in chdir
Dir.chdir(ENV["MM_ROOT"] || Dir.pwd) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/gems/middleman-core-3.0.0.beta.2/bin/middleman: in <top (required)>
Dir.chdir(ENV["MM_ROOT"] || Dir.pwd) do...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/bin/middleman: in load
load Gem.bin_path('middleman-core', 'middleman', version)...
/Users/jannis/.rvm/gems/ruby-1.9.2-p290/bin/middleman: in <main>
load Gem.bin_path('middleman-core', 'middleman', version)...
Request information
GET
No GET data.
POST
No POST data.
COOKIES
Variable Value
plushRefreshRate
"4"
plushHistPerPage
"40"
plushQueuePerPage
"10"
plushContainerWidth
"80%"
plushNoTopMenu
"0"
Rack ENV
Variable Value
GATEWAY_INTERFACE
CGI/1.2
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_CHARSET
UTF-8,*;q=0.5
HTTP_ACCEPT_ENCODING
gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.8
HTTP_CACHE_CONTROL
no-cache
HTTP_CONNECTION
keep-alive
HTTP_COOKIE
plushRefreshRate=4; plushHistPerPage=40; plushQueuePerPage=10; plushContainerWidth=80%25; plushNoTopMenu=0
HTTP_HOST
localhost:4567
HTTP_PRAGMA
no-cache
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.165 Safari/535.19
HTTP_VERSION
HTTP/1.1
PATH_INFO
/
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/
REQUEST_URI
/
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
4567
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
thin 1.3.1 codename Triple Espresso
async.callback
#<Method: Thin::Connection#post_process>
async.close
#<EventMachine::DefaultDeferrable:0x007f856ae08980>
rack.errors
#<IO:<STDERR>>
rack.input
#<StringIO:0x007f856ae0a5c8>
rack.multiprocess
false
rack.multithread
false
rack.request.cookie_hash
{"plushRefreshRate"=>"4", "plushHistPerPage"=>"40", "plushQueuePerPage"=>"10", "plushContainerWidth"=>"80%", "plushNoTopMenu"=>"0"}
rack.request.cookie_string
plushRefreshRate=4; plushHistPerPage=40; plushQueuePerPage=10; plushContainerWidth=80%25; plushNoTopMenu=0
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 0]
You're seeing this error because you use Rack::ShowExceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment