gu-fan / InstantRst

instant rst preview in browser
106 stars 16 forks source link

Blank screen on vim 8.2 #28

Open Enrico68 opened 3 years ago

Enrico68 commented 3 years ago

Hello,

Whenever I start the server, I got blank screen instead of the preview. Here is a screenshot Vim 8.2 on OSX + Edge (tried Safari, Google Chrome, same issue)

tiagovla commented 3 years ago

Same on nvim 0.6.

mflova commented 2 years ago

Same here. Any solutions encountered? I will look at the code but I do not reall think I can get something useful

mflova commented 2 years ago

@Enrico68 @tiagovla Using the web server separately was useful to first get some diagnostics on the error using shell. Then I could get it working in vim by solving some incompatibility issues by going back to compatible versions (be careful with this as other apps might be using more recent versions):

pip install python-engineio==3.13.2
pip install python-socketio==4.6.1

Source: https://github.com/miguelgrinberg/python-socketio/issues/578

And in my case it was not working in firefox (the default one but maybe outdated in my case), so I had to switch to the one I used with let g:instant_rst_browser = 'google-chrome' in the init.vim

With this setup it is working in nvim 0.7-dev. Therefore, the issue was not with the repo, but rather with incompatible versions that are used by this one.

kaddkaka commented 2 years ago

@mflova Any idea what (part) needs updating for this to work with newer version of engineio and socketio? (for example 4.3.1 and 5.5.2)