You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OmniMarkupPreviewer: [ERROR] Exception occured while rendering using MarkdownRenderer
Traceback (most recent call last):
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/OmniMarkupLib/RendererManager.py", line 266, in render_text
rendered_text = renderer.render(text, filename=filename)
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/MarkdownRenderer.py", line 36, in render
extensions=self.extensions)
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/markdown/__init__.py", line 411, in markdown
return md.convert(text)
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/markdown/__init__.py", line 288, in convert
self.lines = prep.run(self.lines)
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/ OmniMarkupLib/Renderers/libs/markdown/extensions/fenced_code.py", line 140, in run
code = highliter.hilite()
File "/root/.config/sublime-text-3/Packages/OmniMarkupPreviewer/ OmniMarkupLib/Renderers/libs/markdown/extensions/codehilite.py", line 90, in hilite
lexer = get_lexer_by_name(self.lang)
File "/root/.config/sublime-text-3/Installed Packages/Evernote.sublime-package/lib/pygments/lexers/__init__.py", line 87, in get_lexer_by_name
if _alias.lower() in aliases:
AttributeError: 'NoneType' object has no attribute 'lower'
This problem is also submitted here in issue for OmniMarkupPreviewer.
Please help, thanks.
The text was updated successfully, but these errors were encountered:
@Explorare thanks a lot for bringing my attention to this.
I am planning to update pygments to v2.0.2 (see #102) I wonder if that would help.
I'll see if I can avoid fiddinling with sys.path to load pygments so the two packages can coexist.
I just pushed some changes in devel among which b68963a
that updates pygments.
Could you maybe test if this solves the issue? Thanks!
bordaigorl
changed the title
Cause OmniMarkupPreviewer crashed when open doc with code blocks
OmniMarkupPreviewer's pygments conflicts with Evenote's one
Sep 2, 2015
Evernote package will cause OmniMarkupPreviewer crashed when open doc with code blocks like this
And here is error log
This problem is also submitted here in issue for OmniMarkupPreviewer.
Please help, thanks.
The text was updated successfully, but these errors were encountered: