patshaughnessy / code_buddy Goto Github PK
View Code? Open in Web Editor NEWSinatra app to view a Ruby stack trace
Home Page: http://patshaughnessy.net/code_buddy
License: MIT License
Sinatra app to view a Ruby stack trace
Home Page: http://patshaughnessy.net/code_buddy
License: MIT License
Hi Pat
In the Mike Hartl tutorial on rails3 I followed your instructions for adding your gem to Gemfile and doing bundle install. So the app has only a single model with a name:string and a title:string. Here is the versioning info:
ruby-1.9.2-p180@rails3tutorial $ rails -v
rails -v
Rails 3.0.7
ruby-1.9.2-p180@rails3tutorial $ ruby -v
ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
I made the changes that JezC made and here is the trace I got:
ruby-1.9.2-p180@rails3tutorial $ rails s
rails s
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-05-11 18:47:52] INFO WEBrick 1.3.1
[2011-05-11 18:47:52] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0]
[2011-05-11 18:47:52] INFO WEBrick::HTTPServer#start: pid=68690 port=3000
Error during failsafe response: ActionView::Template::Error
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/_trace.erb:23:in block in ___sers_cmmagid__rvm_gems_ruby_______p____rails_tutorial_gems_code_buddy_______lib_code_buddy_rails__templates_rescues__trace_erb___3116821895429172383_2158403340_2373106795731895733' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/_trace.erb:21:in
each'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/_trace.erb:21:in ___sers_cmmagid__rvm_gems_ruby_______p____rails_tutorial_gems_code_buddy_______lib_code_buddy_rails__templates_rescues__trace_erb___3116821895429172383_2158403340_2373106795731895733' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/template.rb:135:in
block in render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54:in instrument' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/template.rb:127:in
render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:59:in block in _render_template' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in instrument' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:56:in _render_template' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:26:in
render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/diagnostics.erb:9:in ___sers_cmmagid__rvm_gems_ruby_______p____rails_tutorial_gems_code_buddy_______lib_code_buddy_rails__templates_rescues_diagnostics_erb___3454362574266022188_2158441140_2373106795731895733' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/template.rb:135:in
block in render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:54:in instrument' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/template.rb:127:in
render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:59:in block in _render_template' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in instrument' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:56:in _render_template' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_view/render/rendering.rb:26:in
render'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:88:in rescue_action_locally' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/railtie.rb:19:in
rescue_action_locally'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:68:in render_exception' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:59:in
call'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/middleware.rb:14:in call' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in
call'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rack-1.2.2/lib/rack/runtime.rb:17:in call' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/activesupport-3.0.7/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rack-1.2.2/lib/rack/lock.rb:11:in block in call' <internal:prelude>:10:in
synchronize'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rack-1.2.2/lib/rack/lock.rb:11:in call' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/actionpack-3.0.7/lib/action_dispatch/middleware/static.rb:30:in
call'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.7/lib/rails/application.rb:168:in call' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.7/lib/rails/application.rb:77:in
method_missing'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in call' /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rack-1.2.2/lib/rack/content_length.rb:13:in
call'
/Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52:in service' /Users/cmmagid/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service'
/Users/cmmagid/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /Users/cmmagid/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'
Started GET "/users" for 127.0.0.1 at 2011-05-11 18:47:59 -0400
Processing by UsersController#index as HTML
User Load (12.6ms) SELECT "users".* FROM "users"
Completed in 70ms
RuntimeError (oops):
app/controllers/users_controller.rb:9:in `index'
Rendered /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/_trace.erb (61.2ms)
Rendered /Users/cmmagid/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/code_buddy-0.1.0/lib/code_buddy/rails3/templates/rescues/diagnostics.erb within rescues/layout (63.9ms)
C-c C-c[2011-05-11 18:52:53] INFO going to shutdown ...
[2011-05-11 18:52:53] INFO WEBrick::HTTPServer#start done.
Exiting
Don't know how much work this is. Personally I'm a mac vim user, but it would be absolutely awesome if we could have clickable links to the relevant file in a text editor.
I've not looked at implementation, but metric_fu has txmt:// links. I'm willing to look at adding the feature, but thought I'd put it out there in case anyone has the necessary know-how already
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.