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

No refresh after modification #79

Open crysisfair opened 9 years ago

crysisfair commented 9 years ago

Unless file is saved, the preview donot refresh.

I use sublime text 2.0.2 x64 on win8.1 x64, browser is Google Chrome, the console writes:

Traceback (most recent call last): File ".\sublime_plugin.py", line 195, in on_modified callback.module, "on_modified", FAST_EVENT_TIMEOUT) File ".\sublime_plugin.py", line 154, in run_timed_function ret = f() File ".\sublime_plugin.py", line 194, in run_timed_function(lambda: callback.on_modified(v), File ".\distraction_free_mode.py", line 23, in on_modified File ".\distraction_free_mode.py", line 12, in on_distraction_free AttributeError: 'Window' object has no attribute 'settings' OmniMarkupPreviewer: [INFO] Launching web browser for http://127.0.0.1:51004/view/26

The network log of chrome is illustrated in this image:

network log

timonwong commented 9 years ago

The exception shows that it was thrown in on_distraction_free callback, which OmniMarkupPreviewer doesn't use at all. After search, I found following plugin use that:

I suggest you disable that package and try again