iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.76k stars 280 forks source link

在Termux中执行“:MarkdownPreview”报错 #180

Open NiiiKlaus opened 4 years ago

NiiiKlaus commented 4 years ago

Termux中,在一个写好了的Markdown文件中执行命令:MarkdownPreview报错如下:

Error detected while processing function <SNR>77_try_open_preview_page[4]..mkdp#rpc#stop_server:
line 19:
E475: Invalid argument: Channel id must be a positive integer

已经阅读了 #28 ,并没有解决问题。我的Neovim、Vim-plug、markdown-preview.nvim的版本都是最新的,和 #28 中的情况不太一样。并且在PC端(Arch Linux)上相同的配置并没有出现问题,比较疑惑。 个人目前对前端的东西和Vim script的语法还不是特别了解,自己还没有办法解决,所以要麻烦作者大大啦。这是一个很棒的插件,很喜欢。希望作者大大能够抽空看一下这个问题哈,谢谢。

Information:

iamcco commented 4 years ago

怎么安装的,应该是 node 服务启动失败了

NiiiKlaus commented 4 years ago

请问怎么检查node服务启动成功了呢,运行一下:checkhealth吗。

iamcco commented 4 years ago

怎么安装的,用 neovim 就把 checkhealth 发出来

NiiiKlaus commented 4 years ago
图片 图片 图片

用ssh连到Termux上之后截的图。

NiiiKlaus commented 4 years ago

是Python的问题吗。

NiiiKlaus commented 4 years ago
图片 图片

Python2和3的问题已经解决了。依旧不好预览...这是我init.vim里面对于插件的配置,作者大大看看有啥问题。

iamcco commented 4 years ago

和python没有关系,是 nodejs 起服务起不起来挂掉了

let $NVIM_MKDP_LOG_FILE = expand('~/mkdp-log.log')
let $NVIM_MKDP_LOG_LEVEL = 'debug'

设置看看有没有什么有用的日志。

iamcco commented 4 years ago

我没有在 android termux 下测试过,不知道有什么坑在里面

HyperAfnan commented 1 year ago

Any plans for Android Support?

garyDav commented 1 year ago

Will there be android support in the future?