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
404 error on preview ... "buffer_id(29) is not valid (closed or unsupported file format)" #85
Comments
Did you get The |
@timonwong Maybe we could use dependencies in package control as facelessuser mentioned in facelessuser/ScopeHunter#28 (comment) for better compatibility with other plugins? |
Using the dependency might be difficult for OmniMarkdownPreview because the dependency (which I maintain) does not have ST2 support which so far was a conscious move. If someone where willing to support a ST2 variant, I wouldn't be against adding it, I am just not sure if I want that extra work for something I don't really use anymore; I only use ST3. Python Markdown no longer supports Python 2.6 in the latest releases (which ST2 uses), so in order to maintain a ST2/ST3 dependency, Python 2.6 support has to be preserved every time time you merge, and you have to evaluate that all new changes are Python 2.6 compatible. Maintaining Python 2.6 support isn't too bad right now as Python Markdown 2 is right now in bug fixes only mode. But when Python Markdown 3 is one day released, there will be a lot of work that would need to be done to get 3.0 support backported to Python 2.6. Work that I am just not interested in. It is possible that Markdown 3 might not ever get merged into the Sublime dependencies as they plan on separating out all the extensions and using entry points to import the plugins. I am not sure yet how well that will play in the Sublime environment. If entry points don't work well in Sublime then we would probably need to stick with Markdown 2 releases, or overhaul the framework to work with Sublime. If the dependency never gets upgraded to 3 then ST2/ST3 wouldn't be that bad as no new features are planned for the Markdown 2 releases. If you want to vendor the latest, you can can get a Python 2.6 compatible release of Markdown 2.6.5 found in Markdown Preview. You would have to remove a couple of custom extensions, but other than that, you just drop it in and call in relatively. I personally upgraded Markdown Preview's markdown version, but it is probably the last upgrade I plan on doing as I don't actively use Markdown Preview much anymore. |
Quick Fix 1: Remove Strikethrough Extension
Quick Fix 2: Fix the Strikethrough Extension (if you need it) Find the python-markdown sublime package. On the Mac: Replace the
Save, quit and reload Sublime Text. |
@scuml Thanks, I am using Quick Fix 1 and it works. |
Related, most likely a duplicate: #93 |
Thanks. Quick Fix 1 works |
Quick Fix 1 should be the default settings. It because
|
@scuml Thank u! Quick Fix 2 works!~ |
using Quick Fix 1 works for me ~ |
@scuml Thanks! Quick Fix 1 works |
Thank you Quick Fix 1 works @scuml |
@scuml Thanks! Quick Fix 1 works |
Quick Fix 2 prevents live and non-live updates for me. Even when I close page and reopen I can't see changes to a file. |
@scuml Thanks! Quick Fix 1 works for me |
Thanks. Quick Fix 1 works |
Thanks. Quick Fix 1 works |
@scuml Thanks. Quick Fix 1 works |
@scuml Thanks.Quick Fix 1 works |
Thanks. Quick Fix 1 works |
Quick fix 2 works. Thanks. |
Quick fix 1 works, Thanks. |
Awesome, fix 1 works. Thanks! |
@scuml fix 1 did the trick for me, thanks |
Fix #1 FTW |
@scuml fixed, thanks!!!! |
@scuml fixed +1. tks! |
@scuml I've tried the two quick fix ways but both of them didn't work. As you can see, I've modified import markdown
from markdown.inlinepatterns import SimpleTagPattern
STRIKEOUT_RE = r'(\~\~)([^\s](?:.*))(\~\~)'
class StrikeoutExtension(markdown.Extension):
""" Strikeout extension for Python-Markdown. """
def extendMarkdown(self, md, md_globals):
""" Modifies inline patterns. """
md.inlinePatterns.add('del', SimpleTagPattern(STRIKEOUT_RE, 'del'), '<not_strong')
def makeExtension(*args, **kwargs):
return StrikeoutExtension(*args, **kwargs) and modified
Then reload my sublime but I still get a 404:
Can anyone help me or did I do something wrong? I just want to preview my restructured text :( |
Thanks. Quick Fix 1 does help. |
Preferences > Package Settings > OmniMarkupPreviewer > Settings - User
it works on my sublime version 3.2.2-3211 |
Have tried the both methods (each at one time), but failed. |
Remove package "markdownpreview" works for me |
Thanks, this works for me |
Quick Fix 1: Remove Strikethrough Extension worked for me! Thanks SO much! |
It works for me. |
When I attempt to preview a MD file, I get the following error in the browser:
This is what I see in the console:
I have read other issue resolutions. I do not have multiple versions of ST running. I have tried the "fix" whereby you change the ports, but this did not resolve the issue.
The text was updated successfully, but these errors were encountered: