Skip to content
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

OmniMarkupPreviewer 404 #93

Open
Kristinita opened this Issue Mar 17, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@Kristinita
Copy link

Kristinita commented Mar 17, 2016

Hello, I established OmniMarkupPreviewer. I open my page with Mediawiki markup and I press Ctrl + Alt + o to see it in my browser. But the mistake opened:

Error: 404 Not Found

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

'buffer_id(31) 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.

I tried to change «Settings - User» as advised here:

{
    "server_host": "0.0.0.0",
    "server_port": 9998
}

But the new mistake turned out:

Sorry, the requested URL 'http://127.0.0.1:9998/view/52' caused an error:

'buffer_id(52) 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.

What I need to make for the correct work of OmniMarkupPreviewer? Thanks.

@jnns

This comment has been minimized.

Copy link

jnns commented Mar 17, 2016

It's most likely a formatting error in your document. You should see if previewing another document (a very minimal example) works.

If that's the case – or generally – have a look a the console output after issuing the preview command. It will display an error message like this:

docutils.utils.SystemMessage: :210: (SEVERE/4) Title level inconsistent

@Kristinita

This comment has been minimized.

Copy link
Author

Kristinita commented Mar 17, 2016

It's most likely a formatting error in your document. You should see if previewing another document (a very minimal example) works.

I tried to preview the most simple documents with Mediawiki markup for example and everywhere get the same error 😞 .

If that's the case – or generally – have a look a the console output after issuing the preview command. It will display an error message like this:

During handling of the above exception, another exception occurred:

Output:

Traceback (most recent call last):
File "C:\Documents and Settings\Admin.USER-AC59577756\Application Data\Sublime Text 3\Packages\OmniMarkupPreviewer\OmniMarkupLib\RendererManager.py", line 266, in render_text
rendered_text = renderer.render(text, filename=filename)
File "C:\Documents and Settings\Admin.USER-AC59577756\Application Data\Sublime Text 3\Packages\OmniMarkupPreviewer\OmniMarkupLib\Renderers\base_renderer.py", line 77, in render
text = self.executable_check(text, kwargs['filename'])
File "C:\Documents and Settings\Admin.USER-AC59577756\Application Data\Sublime Text 3\Packages\OmniMarkupPreviewer\OmniMarkupLib\Renderers\base_renderer.py", line 106, in executable_check
startupinfo=self.get_startupinfo())
File "./subprocess.py", line 824, in init
File "./subprocess.py", line 1118, in _execute_child
FileNotFoundError: [WinError 2] Не удается найти указанный файл

It may be, has a value that I use a Windows XP, edit files in Russian and my default browser is Pale Moon. Thanks.

@jfcherng

This comment has been minimized.

Copy link

jfcherng commented Aug 25, 2016

#85

@tianleiyiji123

This comment has been minimized.

Copy link

tianleiyiji123 commented Dec 15, 2017

Find the python-markdown sublime package.

On the Mac: subl "/Users//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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.