markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Can't preview in the cygwin enviroment

Open vertexi opened this issue 4 years ago • 1 comments

Describe the bug Can't preview markdown in the windows cygwin enviroment.

To Reproduce Steps to reproduce the behavior:

  1. use vundle install the plugin
  2. call mkdp#util#install()
  3. just preview any markdown file in vim by MarkdownPreview

Expected behavior Automatically open default browser and preview the markdown file.

Screenshots image 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.

vertexi avatar Apr 07 '21 13:04 vertexi

Please test with latest version which remove vim-node-rpc

iamcco avatar May 13 '22 14:05 iamcco