server error w/ stacktrace
http://www.rubydoc.info/github/mislav/will_paginate/b1a5beeec9f56ec...
is producing a stacktrace saying that you have a nil percolating
through your system!
recommended viewing:
https://www.destroyallsoftware.com/screencasts/catalog/how-and-why-...
All of those screencasts are pretty good.
here is the stacktrace produced:
undefined method gsub' for nil:NilClass
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/doc_server_helper.rb:43:in
url_for_frameset'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/templates/default/layout/html/script_setup.erb:9:in
_erb_cache_2'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:279:in
erb'
/var/www/apps/rubydoc.info/releases/yard/templates/default/layout/html/headers.erb:13:in
_erb_cache_1'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:279:in
erb'
/var/www/apps/rubydoc.info/releases/yard/templates/default/layout/html/layout.erb:7:in
_erb_cache_0'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:279:in
erb'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:357:in
render_section'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:251:in
block
(2 levels) in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in
each'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in
block
in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:386:in
add_options'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:247:in
run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:135:in
run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/engine.rb:88:in
render'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/code_objects/base.rb:480:in
format'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/base.rb:141:in
render'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/display_object_command.rb:23:in
run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/base.rb:95:in
call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/library_command.rb:65:in
call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:135:in
route_docs'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:110:in
route'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:54:in
call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/rack_adapter.rb:51:in
call'
/var/www/apps/rubydoc.info/releases/20100829162740/app.rb:321:in
block
in class:DocServer'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1292:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1292:in
block
in compile!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
[]'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
block
(3 levels) in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:876:in
route_eval'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in
block
(2 levels) in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:897:in
block in process_route'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in
catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in
process_route'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:859:in
block
in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:858:in
each'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:858:in
route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:963:in
block in dispatch!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
block
in invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:960:in
dispatch!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:794:in
block
in call!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
block in invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:946:in
invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:794:in
call!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:780:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/deflater.rb:25:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/xss_header.rb:27:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/path_traversal.rb:16:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/json_csrf.rb:17:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/base.rb:48:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/base.rb:48:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.3.2/lib/rack/protection/xss_header.rb:27:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/logger.rb:15:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:161:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:154:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:124:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1417:in
block in call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1497:in
synchronize'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1497:in
synchronize'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.3.4/lib/sinatra/base.rb:1417:in
call'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.1/lib/unicorn/http_server.rb:552:in
process_client'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.1/lib/unicorn/http_server.rb:632:in
worker_loop'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.1/lib/unicorn/http_server.rb:500:in
spawn_missing_workers'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.1/lib/unicorn/http_server.rb:142:in
start'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.1/bin/unicorn:126:in
<top (required)>'
/usr/local/bin/unicorn:23:in
load'
/usr/local/bin/unicorn:23:in `'
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by lsegal on 02 Mar, 2013 11:30 PM
This may be due to a bug from our upgrade to Ruby 2, RubyGems 2, and RDoc 4. That said, the SHA the the docs refer to doesn't seem to exist (anymore?) in will_paginate, so there are a number of reasons the build failed, one of which was there was some odd syntax (or edge case) in the Ruby code that caused YARD to go into an inconsistent state. These are rare but there are some known coding styles that YARD is incompatible with and can cause weird results. I would look into this, but I can't track down a reproduction scenario here, so I would suggest a pull request if you know what the root cause was. It's also important to note that YARD is not perfect, and bugs happen, so reporting those on http://github.com/lsegal/yard is more than appreciated-- submitting a patch is even better.
Let me know if you have other issues.
lsegal closed this discussion on 02 Mar, 2013 11:30 PM.
Byron Anderson re-opened this discussion on 03 Mar, 2013 12:58 AM
2 Posted by Byron Anderson on 03 Mar, 2013 12:58 AM
Got it- I have never looked into documentation generation like this, thanks
for the tip!
lsegal closed this discussion on 20 Mar, 2013 06:58 PM.