久有凌云志,重上井冈山。千里来寻故地,旧貌变新颜。到处莺歌燕舞,更有潺潺流水,高路入云端。过了黄洋界,险处不须看。
风雷动,旌旗奋,是人寰。三十八年过去,弹指一挥间。可上九天揽月,可下五洋捉鳖,谈笑凯歌还。世上无难事,只要肯登攀。
A quasi real-time vim markdown preview plugin | 第一款基于Java的Vim Markdown预览插件
久有凌云志,重上井冈山。千里来寻故地,旧貌变新颜。到处莺歌燕舞,更有潺潺流水,高路入云端。过了黄洋界,险处不须看。
风雷动,旌旗奋,是人寰。三十八年过去,弹指一挥间。可上九天揽月,可下五洋捉鳖,谈笑凯歌还。世上无难事,只要肯登攀。
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.