fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.26k stars 116 forks source link

GhostText does not work sometimes depending on content of text box #150

Closed joeaddison closed 3 years ago

joeaddison commented 5 years ago

Setup

Browser: Chrome: Version 71.0.3578.98 (Official Build) (64-bit) Editor: Sublime text Version 3.1.1 Build 3176

Description

Love Ghost Text! I do have an issue where it will sometimes not work depending on the code that is in the text box.

When this happens, I get the following error briefly at the bottom of sublime: Line 1, Column 1; ghostText - Invalid JSON:, Unterminated string starting at: line 1 column 9(char 8), Traceback(most recent call last)

Rename attached file to .html, and it will have a text box that does not work (for me at least).

ghost.txt

Thanks!

fregante commented 3 years ago

Can you test the new version? It hasn't been published to the stores yet: https://github.com/GhostText/GhostText/issues/172

fregante commented 3 years ago

It seems that Sublime Text just goes in a loop when receiving data and it spikes to 100% CPU usage. I'm not sure if this is related to #180 but it needs to be fixed regardless.

Unfortunately the Python developer is gone so the Sublime Text extension won't be fixed unless someone steps up 😕

fregante commented 3 years ago

With a minor modification in the browser extension, the CPU spike and disconnection doesn't seem to happen anymore on the attached document and performance is generally much better with large documents. I hope it won't cause issues.