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

Preview not refreshing #51

Closed cgarrard closed 10 years ago

cgarrard commented 10 years ago

With the latest update, my previews have quit refreshing when the source files are modified or saved. Hitting refresh in the browser works, though. Nothing shows in the console, but Fiddler shows a bunch of traffic, although every request is returning 200 NOT FOUND. I'm using ST3.

The request:

POST http://localhost:51004/api/revive HTTP/1.1
Host: localhost:51004
Connection: keep-alive
Content-Length: 88
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://localhost:51004
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36
Content-Type: application/json; charset=UTF-8
Referer: http://localhost:51004/view/72
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

{"revivable_key":"RDpcTm90ZXNcVmlydHVhbEFyYm9yZXR1bVxJbnN0YWxsaW5nIE9wZW5UcmVlTWFwLm1k"}

And the response:

HTTP/1.1 200 OK
Content-Length: 23
Content-Type: application/json
Date: Tue, 15 Apr 2014 19:14:09 GMT
Server: cglaptop

{"status": "NOT FOUND"}

Thanks so much for writing this plugin. It's awesome!

timonwong commented 10 years ago

Weird, but I assume it's because after upgrade, the ST3 python environment is not clean, and the RendererManager (at least) is failed to start.

Have you tried restarting ST3? If restart doesn't work, is there anything in your console (during start up), it should have some kind of exceptions and trackbacks there.

cgarrard commented 10 years ago

I guess I must have only restarted ST3 once (to get the latest update). I thought I had restarted a few times, but apparently not, because I just tried it again and it worked. Sorry to bother you!

timonwong commented 10 years ago

Never mind, good to know it works again, topic closed :)