Skip to content
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

Require pygments.rb or remove Pygments references #235

Closed
nbibler opened this issue Dec 3, 2015 · 1 comment
Closed

Require pygments.rb or remove Pygments references #235

nbibler opened this issue Dec 3, 2015 · 1 comment

Comments

@nbibler
Copy link
Contributor

nbibler commented Dec 3, 2015

In github-linguist version 4, the pygments.rb dependency was removed. The following code relies on the idea that some other dependency (linguist at the time) is requiring pygments:

def lexer_for(lang)
  (Linguist::Language[lang] && Linguist::Language[lang].lexer) || Pygments::Lexer[lang]
end

Since linguist no longer loads pygments, but html-pipeline makes an assumption that it's loaded, this breaks unless the dev adds a pygments requirement somewhere in their calling application and Gemfile.

@gjtorikian
Copy link
Owner

Old issue, pygments is gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants