undefined method `new' for nil:NilClass

logustus's Avatar

logustus

22 Jul, 2022 09:53 PM

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:inhtml_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:inhtmlify' /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:inrender_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!

  1. 1 Posted by logustus on 23 Jul, 2022 12:53 AM

    logustus's Avatar

    I forgot to add, here's the rdoc.info link to the gem: https://rdoc.info/github/LoganBarnett/monad-oxide/main

  2. Support Staff 2 Posted by lsegal on 23 Jul, 2022 07:31 AM

    lsegal's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • error.txt 7.75 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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