iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.82k stars 284 forks source link

Error detected while processing function CompileRunGcc[39]..mkdp#util#open_preview_page[6]..mkdp#rpc#start_server: line 18: #603

Closed eawlot3000 closed 1 year ago

eawlot3000 commented 1 year ago

in this same computer i used it and everything alright. yesterday erase all contents and reinstall the os. got errors.

i use mac os 12 + NVIM v0.9.1 (which is the latest), i installed by putting this in my nvim rc Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } + zsh + tmux. when call by :MarkdownPreview, i got this:

Error detected while processing function CompileRunGcc[39]..mkdp#util#open_preview_page[6]..mkdp#rpc#start_server:
line   18:
E903: Process failed to start: Unknown system error -86: "/Users/eawlot3000/.local/share/nvim/plugged/markdown-preview.nvim/app/bin/markdown-preview-macos"
Press ENTER or type command to continue

please specify the possible solution of this. never seen this before thank you

romero-kenny commented 1 year ago

Just checked, it is not broken anymore. Try updating.

Pandoks commented 1 year ago

Same issue with MacOS 13. Tried reinstalled. Tried both ways of installing. Nothing is working. I also had it working before with Packer with npm. Now I'm using Lazy. This is my config:

return {
  "iamcco/markdown-preview.nvim",
  lazy = false, -- make sure it's not a loading problem
  build = function()
    vim.fn["mkdp#util#install"]()
  end,
}
Pandoks commented 1 year ago

Fixed the issue (For ARM architecture of Macs)! I ran the binary directly and got the error: zsh: bad CPU type in executable: ./markdown-preview-macos. This is easy to fix.

Go to your terminal emulator and right click it->Get info->Open using Rosetta. Restart your emulator and it should work.

romero-kenny commented 1 year ago

Fixed the issue (For ARM architecture of Macs)! I ran the binary directly and got the error: zsh: bad CPU type in executable: ./markdown-preview-macos. This is easy to fix.

Go to your terminal emulator and right click it->Get info->Open using Rosetta. Restart your emulator and it should work.

I think you just need to install Rosetta 2. Since a fresh install of macOS does not include Rosetta 2 with it. This is the only major difference I noticed between the time of fresh installing macOS and using my laptop now.

Pandoks commented 1 year ago

Seems like I only needed to run preview once in Rosetta and then after that, it works without it.