Axslx: undefined method for the yard

I run "yard-server -g", but only generates a table of contents for axlsx.

When I click on the class, I get:

undefined method `new' for nil:NilClass. 

Any idea why? (Fwiw, other gems work fine on the Yard server)

+4
source share
2 answers

I had the same problem and then I noticed in the console: "[error]: Missing" kramdown "gem for formatting Markdown. Install it using gem install kramdown "

I installed kramdown, and there it is! It worked.

+6
source

Sorry, the latest version has a .yardoc folder with incomplete documentation.

Here is a workaround that you can use until I release an updated version of the gem.

  • use the following command to find the installed stone:

gem which axlsx

  • go to the gem top directory and:

rm -rf .yardoc

  • restart the yards server and it will restore the current release documents.

yard server -g

Again, sincere apologies for the pain.

best

randym

+1
source

Source: https://habr.com/ru/post/1484849/


All Articles