yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
1.01k stars 206 forks source link

ERROR: exportPdf() #336

Open dubcyfor3 opened 1 year ago

dubcyfor3 commented 1 year ago

I am trying to export as pdf, but there is two error message:

ERROR: exportPdf() Error: spawn Unknown system error -86

I am using macOS ventura 13.5, I have tried reinstall the extension but it does not work. I note that when I am trying to export, there is a tmp.html file that is successfully generated, but the pdf file cannot be generated.

Can anyone help me out? I really need a extension to convert markdown into pdf in vscode.

dan-overton commented 10 months ago

I had the same issue on an m3 Mac. I think the problem is that the version of chromium it's downloading is expecting to run on intel.

Running softwareupdate --install-rosetta and trying again got it working.

dasong2410 commented 3 months ago

Or you can install chromium with brew, and replace Chromium.app in the directory below by /Application/Chromium.app

~/.vscode/extensions/yzane.markdown-pdf-1.5.0/node_modules/puppeteer-core/.local-chromium/mac-722234/chrome-mac/