{"action":"closed","issue":{"url":"https://api.github.com/repos/nanoc/nanoc/issues/914","repository_url":"https://api.github.com/repos/nanoc/nanoc","labels_url":"https://api.github.com/repos/nanoc/nanoc/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/nanoc/nanoc/issues/914/comments","events_url":"https://api.github.com/repos/nanoc/nanoc/issues/914/events","html_url":"https://github.com/nanoc/nanoc/issues/914","id":166736698,"number":914,"title":"Extremely opaque error message for `layout '*', :erb`","user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nanoc/nanoc/labels/enhancement","name":"enhancement","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/nanoc/nanoc/milestones/32","html_url":"https://github.com/nanoc/nanoc/milestones/4.2.4","labels_url":"https://api.github.com/repos/nanoc/nanoc/milestones/32/labels","id":1861697,"number":32,"title":"4.2.4","description":"","creator":{"login":"ddfreyne","id":6269,"avatar_url":"https://avatars.githubusercontent.com/u/6269?v=3","gravatar_id":"","url":"https://api.github.com/users/ddfreyne","html_url":"https://github.com/ddfreyne","followers_url":"https://api.github.com/users/ddfreyne/followers","following_url":"https://api.github.com/users/ddfreyne/following{/other_user}","gists_url":"https://api.github.com/users/ddfreyne/gists{/gist_id}","starred_url":"https://api.github.com/users/ddfreyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddfreyne/subscriptions","organizations_url":"https://api.github.com/users/ddfreyne/orgs","repos_url":"https://api.github.com/users/ddfreyne/repos","events_url":"https://api.github.com/users/ddfreyne/events{/privacy}","received_events_url":"https://api.github.com/users/ddfreyne/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":12,"state":"open","created_at":"2016-07-03T10:04:46Z","updated_at":"2016-07-24T09:22:54Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-21T04:48:57Z","updated_at":"2016-07-24T09:22:54Z","closed_at":"2016-07-24T09:22:54Z","body":"To reproduce, let's have no content and just this in `Rules`:\r\n```\r\nlayout '*', :erb\r\n```\r\n\r\nRunning `nanoc` gives:\r\n```\r\nCrashlog created at 2016-07-21 04:47:39 +0000\r\n\r\n===== MESSAGE:\r\n\r\nNoMethodError: undefined method `[]' for nil:NilClass\r\n\r\n===== COMPILATION STACK:\r\n\r\n  (empty)\r\n\r\n===== STACK TRACE:\r\n\r\n  0. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/rule_dsl/rule_memory_calculator.rb:88:in `block in new_rule_memory_for_layout'\r\n  1. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/rule_dsl/rule_memory_calculator.rb:87:in `tap'\r\n  2. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/rule_dsl/rule_memory_calculator.rb:87:in `new_rule_memory_for_layout'\r\n  3. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/rule_dsl/rule_memory_calculator.rb:36:in `[]'\r\n  4. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/memoization.rb:87:in `block in memoize'\r\n  5. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/rule_dsl/action_provider.rb:36:in `memory_for'\r\n  6. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/compilation/compiler.rb:114:in `block in store'\r\n  7. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/compilation/compiler.rb:113:in `each'\r\n  8. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/compilation/compiler.rb:113:in `store'\r\n  9. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/compilation/compiler.rb:90:in `run'\r\n  10. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/compilation/compiler.rb:77:in `run_all'\r\n  11. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/base/entities/site.rb:30:in `compile'\r\n  12. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/commands/compile.rb:367:in `block in run'\r\n  13. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/commands/compile.rb:409:in `run_listeners_while'\r\n  14. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/commands/compile.rb:366:in `run'\r\n  15. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/command_runner.rb:12:in `block in call'\r\n  16. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/error_handler.rb:64:in `handle_while'\r\n  17. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/error_handler.rb:22:in `handle_while'\r\n  18. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/command_runner.rb:11:in `call'\r\n  19. /home/whitequark/.gem/ruby/2.3.0/gems/cri-2.7.0/lib/cri/command_dsl.rb:233:in `block in runner'\r\n  20. /home/whitequark/.gem/ruby/2.3.0/gems/cri-2.7.0/lib/cri/command.rb:294:in `run_this'\r\n  21. /home/whitequark/.gem/ruby/2.3.0/gems/cri-2.7.0/lib/cri/command.rb:247:in `run'\r\n  22. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/commands/nanoc.rb:37:in `block in define'\r\n  23. /home/whitequark/.gem/ruby/2.3.0/gems/cri-2.7.0/lib/cri/command.rb:294:in `run_this'\r\n  24. /home/whitequark/.gem/ruby/2.3.0/gems/cri-2.7.0/lib/cri/command.rb:247:in `run'\r\n  25. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli.rb:53:in `block in run'\r\n  26. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/error_handler.rb:64:in `handle_while'\r\n  27. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli/error_handler.rb:22:in `handle_while'\r\n  28. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/lib/nanoc/cli.rb:51:in `run'\r\n  29. /home/whitequark/.gem/ruby/2.3.0/gems/nanoc-4.2.3/bin/nanoc:9:in `<top (required)>'\r\n  30. /home/whitequark/.gem/ruby/2.3.0/bin/nanoc:23:in `load'\r\n```\r\n\r\nThere is no indication of what's wrong whatsoever. This is not good."}}
{"actor":{"display_login":"ddfreyne"}}