undefined method `new' for nil:NilClass
Hi folks,
I'm trying to add a newly minted gem to rdoc.info for the first time. You can find the gem here: https://github.com/LoganBarnett/monad-oxide
When I go to create or visit the gem in rdoc.info, I see this error:
undefined method new' for nil:NilClass /home/app/.gems/bundler/gems/yard-e21c9323bba8/lib/yard/templates/helpers/html_helper.rb:103:in
html_markup_org' /home/app/.gems/bundler/gems/yard-e21c9323bba8/lib/yard/templates/helpers/html_helper.rb:62:in htmlify' /home/app/.gems/gems/yard-sd-0.0.4/lib/yard-sd/sequence_diagram_mixin.rb:5:in
htmlify' /home/app/.gems/bundler/gems/yard-e21c9323bba8/templates/default/layout/html/setup.rb:67:in diskfile' /home/app/.gems/bundler/gems/yard-e21c9323bba8/lib/yard/templates/template.rb:369:in
render_section'
The entire error + stack is included as an attachment.
I am able to run Yard successfully on my local machine. However, I did have to install org-ruby to make it work, since I use .org (of org-mode fame/infamy) for my document format in this gem. That `html_markup_org' is in the error stack makes me think the org-mode processing might be involved in this error.
This is a successful run from yard:
@ bundle exec yard Files: 5
Modules: 1 ( 0 undocumented)
Classes: 7 ( 0 undocumented)
Constants: 1 ( 0 undocumented)
Attributes: 1 ( 0 undocumented)
Methods: 28 ( 0 undocumented)
100.00% documented
Any help here would be appreciated. Thanks!
- error.txt 7.75 KB
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
1 Posted by logustus on 23 Jul, 2022 12:53 AM
I forgot to add, here's the rdoc.info link to the gem: https://rdoc.info/github/LoganBarnett/monad-oxide/main
Support Staff 2 Posted by lsegal on 23 Jul, 2022 07:31 AM
Based on a brief read of our Gemfile, it does not seem like we have any orgmode markup libraries installed. This is something we can fix, but this should explain the error.