404 error on preview ... "buffer_id(29) is not valid (closed or unsupported file format)"
2017-01-16 13:47
1756 查看
利用sublime text3的插件OmniMarkupPreview进行md文件预览时,经常出现以下错误
有两个方法可以快速修复
原始链接
经验证,fix1 大部分情况下可用,今天(2017-01-16)fix1 居然挂了,fix2 可用
1. fix1 强制去除
2. fix2 解除了此bug, 但是需要修改源代码,小白们可能不会操作我的文件
,把最下面代码换了重启就行
"Error: 404 Not Found Sorry, the requested URL 'http://127.0.0.1:51004/view/29' caused an error: 'buffer_id(29) is not valid (closed or unsupported file format)'
有两个方法可以快速修复
Quick Fix 1: Remove Strikethrough Extension Sublime Text > Preferences > Package Settings > OmniMarkupPreviewer > Settings - User paste the following to remove the strikeout package. { "renderer_options-MarkdownRenderer": { "extensions": ["tables", "fenced_code", "codehilite"] } } Quick Fix 2: Fix the Strikethrough Extension (if you need it) Find the python-markdown sublime package. On the Mac: subl "/Users/<username>/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/mdx_strikeout.py" Replace the makeExtension() method with the following: def makeExtension(*args, **kwargs): return StrikeoutExtension(*args, **kwargs) Save, quit and reload Sublime Text.
原始链接
经验证,fix1 大部分情况下可用,今天(2017-01-16)fix1 居然挂了,fix2 可用
2017-02-18更新
今天终于弄明白了下面两种修复方法的区别,1. fix1 强制去除
strikeout渲然,会少一些格式,如删除线 aaaaa
2. fix2 解除了此bug, 但是需要修改源代码,小白们可能不会操作我的文件
,把最下面代码换了重启就行
相关文章推荐
- 404 error on preview ... "buffer_id(29) is not valid (closed or unsupported file format)"
- 404 error on preview ... "buffer_id(29) is not valid (closed or unsupported file format)"
- [OmniMarkupPreviewer] 404 error on preview...buffer_id(29) is not valid 问题的解决方案
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Uncaught InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': '"' is not a valid at
- maven项目 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- 关于Eclipse导入的Maven项目报:" cannot be read or is not a valid ZIP file"错误的解决方案
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file
- D9下面使用DelforEx出现 "File or buffer is read only, or not yet saved"的处理
- 自建Yii项目进入shell 出现Error: index.php does not exist or is not an entry script file.
- ERROR spi.SqlExceptionHelper : 'Infinity' is not a valid numeric or approximate numeric value 问题解决
- log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.lo
- How to disable the warning message "File is probably not DOS format
- adpatch failed with error: "Missing file format id in file"