markdown-preview.nvim
markdown-preview.nvim copied to clipboard
Can't preview in the cygwin enviroment
Describe the bug Can't preview markdown in the windows cygwin enviroment.
To Reproduce Steps to reproduce the behavior:
- use vundle install the plugin
call mkdp#util#install()- just preview any markdown file in vim by
MarkdownPreview
Expected behavior Automatically open default browser and preview the markdown file.
Screenshots
Just output the No matching autocommands message when I run MarkdownPreview
Desktop (please complete the following information):
- OS: Windows 10 cygwin enviroment
- node v15.13.0
And this is the vim log when MarkdownPreview crashs.
Log:
[vim-node-rpc] rpc error: node:internal/modules/cjs/loader:927
[vim-node-rpc] rpc error: throw err;
[vim-node-rpc] rpc error: ^
[vim-node-rpc] rpc error:
[vim-node-rpc] rpc error: Error: Cannot find module 'C:\cygdrive\c\Users\Apoptosis\.vim\bundle\markdown-preview.nvim\app\index.js'
[vim-node-rpc] rpc error: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
[vim-node-rpc] rpc error: at Function.Module._load (node:internal/modules/cjs/loader:769:27)
[vim-node-rpc] rpc error: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
[vim-node-rpc] rpc error: at node:internal/main/run_main_module:17:47 {
[vim-node-rpc] rpc error: code: 'MODULE_NOT_FOUND',
[vim-node-rpc] rpc error: requireStack: []
[vim-node-rpc] rpc error: }
I guess it's the 'C:\cygdrive\c\Users\Apoptosis.vim\bundle\markdown-preview.nvim\app\index.js' issue.
Please test with latest version which remove vim-node-rpc