timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

'buffer_id(235) is not valid (closed or unsupported file format)' #125

Closed travelliu closed 3 years ago

travelliu commented 6 years ago

Error: 404 Not Found

Sorry, the requested URL 'http://127.0.0.1:51004/view/235' caused an error:

'buffer_id(235) is not valid (closed or unsupported file format)'

NOTE: If you run multiple instances of Sublime Text, you may want to adjust the server_port option in order to get this plugin work again.

OmniMarkupPreviewer: [INFO] Launching web browser for http://127.0.0.1:51004/view/235 OmniMarkupPreviewer: [ERROR] Exception occured while rendering using MarkdownRenderer Traceback (most recent call last): File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/RendererManager.py", line 266, in render_text rendered_text = renderer.render(text, filename=filename) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/MarkdownRenderer.py", line 48, in render extensions=self.extensions) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/init.py", line 493, in markdown md = Markdown(*args, kwargs) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/init.py", line 159, in init configs=kwargs.get('extension_configs', {})) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/init.py", line 185, in registerExtensions ext = self.build_extension(ext, configs.get(ext, {})) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/init.py", line 291, in build_extension return module.makeExtension(configs) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/mdx_superscript.py", line 43, in makeExtension return SuperscriptExtension(configs=configs) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/extensions/init.py", line 51, in init self.setConfigs(kwargs) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/extensions/init.py", line 82, in setConfigs self.setConfig(key, value) File "/Users/Travel/Library/Application Support/Sublime Text 3/Packages/python-markdown/st3/markdown/extensions/init.py", line 70, in setConfig if isinstance(self.config[key][0], bool): KeyError: 'configs'

asfaltboy commented 6 years ago

I'm getting the exact same error when trying to preview a markdown file, and to add, the RST renders completely fine.

I'm using Sublime Text 3 (build 3143) on MacOS High Sierra 10.13.3 (17D102) and latest OmniMarkupPreviewer from package control

asfaltboy commented 6 years ago

Just noticed this seems like an issue with the strikeout extension and a fix was suggested in ticket #85 , in this comment.

This can probably be closed as duplicate...