{"action":"opened","issue":{"url":"https://api.github.com/repos/lsegal/yard-go/issues/1","labels_url":"https://api.github.com/repos/lsegal/yard-go/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lsegal/yard-go/issues/1/comments","events_url":"https://api.github.com/repos/lsegal/yard-go/issues/1/events","html_url":"https://github.com/lsegal/yard-go/issues/1","id":100314549,"number":1,"title":"html creation fails when struct inherits from other struct of the same package","user":{"login":"MalteJ","id":646688,"avatar_url":"https://avatars.githubusercontent.com/u/646688?v=3","gravatar_id":"","url":"https://api.github.com/users/MalteJ","html_url":"https://github.com/MalteJ","followers_url":"https://api.github.com/users/MalteJ/followers","following_url":"https://api.github.com/users/MalteJ/following{/other_user}","gists_url":"https://api.github.com/users/MalteJ/gists{/gist_id}","starred_url":"https://api.github.com/users/MalteJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalteJ/subscriptions","organizations_url":"https://api.github.com/users/MalteJ/orgs","repos_url":"https://api.github.com/users/MalteJ/repos","events_url":"https://api.github.com/users/MalteJ/events{/privacy}","received_events_url":"https://api.github.com/users/MalteJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T13:47:51Z","updated_at":"2015-08-11T13:47:51Z","closed_at":null,"body":"e.g.\r\n\r\n    package foo\r\n    \r\n    type Bar struct {\r\n        Abc string\r\n    }\r\n    \r\n    type Baz struct {\r\n        Bar\r\n        Xyz string\r\n    }\r\n\r\ndoes not work:\r\n\r\n    $ bundle exec yard\r\n    [error]: Exception occurred while generating 'foo.html'\r\n    Files:           2\r\n    Constants:       0 (    0 undocumented)\r\n    Methods:         0 (    0 undocumented)\r\n    Packages:        1 (    1 undocumented)\r\n    Structs:         2 (    2 undocumented)\r\n    Interfaces:      0 (    0 undocumented)\r\n    Fields:          2 (    2 undocumented)\r\n    0.00% documented\r\n\r\n`--debug` shows:\r\n\r\n\t[error]: Exception occurred while generating 'foo.html'\r\n\t[error]: NameError: undefined local variable or method `method_listing' for Template(default/bare_struct/html) [section=inherited_fields]:Object\r\n\t[error]: Stack trace:\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-go-350d139e3d34/templates/default/bare_struct/html/inherited_fields.erb:9:in `block in _erb_cache_32'\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-go-350d139e3d34/templates/default/bare_struct/html/inherited_fields.erb:4:in `each'\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-go-350d139e3d34/templates/default/bare_struct/html/inherited_fields.erb:4:in `_erb_cache_32'\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-106c5d0987d4/lib/yard/templates/template.rb:279:in `erb'\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-106c5d0987d4/lib/yard/templates/template.rb:357:in `render_section'\r\n\t\t/Users/malte/.bundler/ruby/2.0.0/yard-106c5d0987d4/lib/yard/templates/template.rb:251:in `block (2 levels) in run'\r\n\r\n\tFiles:           2\r\n\tConstants:       0 (    0 undocumented)\r\n\tMethods:         0 (    0 undocumented)\r\n\tPackages:        1 (    1 undocumented)\r\n\tStructs:         2 (    2 undocumented)\r\n\tInterfaces:      0 (    0 undocumented)\r\n\tFields:          2 (    2 undocumented)\r\n\t 0.00% documented\r\n\r\nBut it would work, if `Bar` was in another package and you would reference it by `otherpackage.Bar`"}}