instant-markdown / vim-instant-markdown

Instant Markdown previews from Vim
https://instant-markdown.github.io
Other
2.73k stars 253 forks source link

Connection refused #175

Closed mettie closed 3 years ago

mettie commented 4 years ago

When I open a markdown file my browser opens to the right address but doesn't display any of the contents of the file, only an empty box. I turned on log output and a line in the log says

curl: (7) Failed to connect to localhost port 8090: Connection refused

This is on Mac OS Catalina with Vim 8.1 and Firefox. I didn't use a plugin manager for installation, just cloned into ~/.vim/pack/md/start. I tried using both the js server and the python one. I also get the same result with "cat whatever.md | instant-markdown-d" (the browser opens but doesn't show the file)

ashwinvis commented 4 years ago

I also get the same result with "cat whatever.md | instant-markdown-d" (the browser opens but doesn't show the file)

Which means it is an instant-markdown-d issue. Have you tried the --debug flag?

Kish29 commented 3 years ago

I also have the same problem, have you solved it?

mettie commented 3 years ago

No sorry I kind of forgot to look into it further

Kish29 commented 3 years ago

ok, emm, I checked the README.md, and I solved this problem, mistakes are: did not install nodejs
did not download the instant-markdown-d via npm So, only copy or clone source code dosen't work you have to download npm, and use npm to download instant-markdown-d. you have to download xdg-utils, curl, nodejs if you're on linux I use archlinux, I followed these steps: pacman -S curl pacman -S npm (download npm) pacman -S nodejs (download nodejs) pacman -S xdg-utils npm -g install instant-markdown-d

Add 'Plugin 'suan/vim-instant-markdown', {'rtp': 'after'}' into my .vimrc (I use Vundle to manage my vim plugins). Re-open markdown file, and it works.

ashwinvis commented 3 years ago

I prefer to close this issue for now. If @mettie would like to pursue this further, we can re-open it.