-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `render' for Redcarpet::Render::SmartyPants:Module #801
Comments
To reproduce, you can download GRDB.swift, checkout the tag |
When redcarpet is used alone, gem "redcarpet" # true
require "redcarpet" # true
Redcarpet::Render::SmartyPants.render("you're") # "you’re" However, as soon as jazzy is there, there is an error: gem "jazzy" # true
require "jazzy" # true
require "redcarpet" # false
# NoMethodError: undefined method `render' for Redcarpet::Render::SmartyPants:Module
Redcarpet::Render::SmartyPants.render("you're") For context:
|
This bug is fixed with Ruby 2.4.1. |
Hi - you're just ahead of me -- I did the development of this change on 2.0.0, have installed 2.2.2 just now + Can you let us know what the problem was you identified as fixed in 2.4.1? |
Hello @johnfairh. I don't quite know what the problem was. Can't you reproduce the following error with Ruby 2.2.2? gem "jazzy" # true
require "jazzy" # true
require "redcarpet" # false
# NoMethodError: undefined method `render' for Redcarpet::Render::SmartyPants:Module
Redcarpet::Render::SmartyPants.render("you're") For the full picture: macOS 10.12.4, rbenv 1.1.0, |
I can now, thanks - was getting confused by what version of everything I was running before. |
Well. The singleton_methods of that module both seem to be missing directly after jazzy require's redcarpet, even before it references any symbols from there. I also see this problem only when running from an installed gem, rather than directly from the repo. My ruby is weak so maybe this means something -- but looking at the redcarpet code I can see another way of calling smartypants to avoid this, that seems to work properly everywhere. |
Hello,
I've just installed jazzy 0.8.1, and it can't generate documentation any longer:
The text was updated successfully, but these errors were encountered: