GithubHelp home page GithubHelp logo

naosense / markdown-preview-sync Goto Github PK

View Code? Open in Web Editor NEW
59.0 3.0 9.0 1.13 MB

A quasi real-time vim markdown preview plugin | 第一款基于Java的Vim Markdown预览插件

Home Page: https://naosense.github.io/2018/08/04/%E8%B0%81%E8%AF%B4%E5%A4%A7%E8%B1%A1%E4%B8%8D%E8%83%BD%E8%B7%B3%E8%88%9E%EF%BC%9A%E5%9F%BA%E4%BA%8EJava%E7%9A%84Markdown%E9%A2%84%E8%A7%88%E6%8F%92%E4%BB%B6/

Python 1.86% Java 56.95% CSS 22.11% HTML 7.92% JavaScript 4.60% Vim Script 6.56%
markdown-preview vim-plugin markdown vim preview

markdown-preview-sync's Introduction

Hi there 👋

久有凌云志,重上井冈山。千里来寻故地,旧貌变新颜。到处莺歌燕舞,更有潺潺流水,高路入云端。过了黄洋界,险处不须看。

风雷动,旌旗奋,是人寰。三十八年过去,弹指一挥间。可上九天揽月,可下五洋捉鳖,谈笑凯歌还。世上无难事,只要肯登攀

markdown-preview-sync's People

Contributors

dependabot[bot] avatar michalliu avatar naosense avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

markdown-preview-sync's Issues

NameError: name 'java_vim_bridge' is not defined

hello,
I have this problem:

Error detected while processing function mpsync#preview[5]..64_open:
line 18:
Traceback (most recent call last):
File "", line 2, in
NameError: name 'java_vim_bridge' is not defined

macOS Mojave 10.14.1
vim 8.0.1283

Please help, thank you very much.

What service do we need to run before use?

When executing :MarkSyncPreview, I get this error message:

Error detected while processing function mpsync#preview[2]..<SNR>178_start[11]..provider#python3#Call:
                                                                                                      
line   18:                                                                                            
Error invoking 'python_execute' on channel 4 (python3-script-host):                                   
Traceback (most recent call last):                                                                    
  File "<string>", line 3, in <module>                                                                
  File "/Users/quebec/.vim/plugged/markdown-preview-sync/autoload/python/java_vim_bridge.py", line 34,
 in start                                                                                             
    raise Exception('Fail to connect after ' + str(connect_cnt) + ' tries')                           
Exception: Fail to connect after 5 tries                                                              
Error detected while processing function mpsync#preview[5]..<SNR>178_open[18]..provider#python3#Call: 
line   18:                                                                                            
Error invoking 'python_execute' on channel 4 (python3-script-host):                                   
Traceback (most recent call last):                                                                    
  File "<string>", line 2, in <module>                                                                
  File "/Users/quebec/.vim/plugged/markdown-preview-sync/autoload/python/java_vim_bridge.py", line 45,
 in open                                                                                              
    s.sendall(wrap('open' + SEP + path + EOF))                                                        
BrokenPipeError: [Errno 32] Broken pipe 

Then I read source code, and I guess that the problem is in:

_connect(port, theme)

def _connect(port, theme):
    global s
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(('127.0.0.1', 23789))
    s.sendall(wrap('start' + SEP + str(port) + SEP + theme + EOF))

Then I execute lsof -i:23789:

COMMAND  PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
Python  5694 quebec    7u  IPv4 0xac7436385164193f      0t0  TCP localhost:58733->localhost:23789 (CLOSED)

and find that port 23789 is close.
So is there a service we need to run before use so that we can connect successfully?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.