MarkdownLivePreview: Preview does not load

I am using Sublime Text Version 3.1.1 Build 3176 on Centos 7. When I open a markdown file I get the following error: Traceback (most recent call last): File "/mnt/data/apps/sublime_text_3/sublime_plugin.py", line 509, in on_load_async callback.on_load_async(v) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 97, in on_load_async md_view, preview = self.update(view) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MarkdownLivePreview.py", line 64, in update show_html(view, preview) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MLPApi.py", line 76, in show_html html = markdown2html(get_view_content(md_view), os.path.dirname(md_view.file_name()), md_view.settings().get('color_scheme')) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/MLPApi.py", line 40, in markdown2html html = '<style>\n{}\n</style>\n'.format(get_style(color_scheme)) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/functions.py", line 131, in get_style css += pygments_from_theme(get_resource(color_scheme)) File "/home/oeg/.config/sublime-text-3/Installed Packages/MarkdownLivePreview.sublime-package/functions.py", line 139, in get_resource return sublime.load_resource(resource) File "/mnt/data/apps/sublime_text_3/sublime.py", line 192, in load_resource raise IOError("resource not found") OSError: resource not found

Any Suggestion? Thanks,

Oscar

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Someone mentioned in a different post that installing and activating the Monokai-Extended color scheme made the preview work for them. I just tried that and it works. This could maybe serve as a work-around for some people.

I am also having this problem. Fresh install of Sublime Text Version 3.1.1 Build 3176 on Windows 10. Just installed Sublime, then MarkdownLivePreview was my first package, followed by Markdown Extended. Both before and after Markdown Extended I got no preview, see attached screenshot. markdownlivepreview

Installing the Monokai-Extended package - closing sublime text - reopening sublime and the file, then alt+m WORKED! Thank you!