Giter VIP home page Giter VIP logo

Comments (12)

terrillmoore avatar terrillmoore commented on June 12, 2024 1

Problem is that the string (quoted above) has Windows-style backslashes as directory separators, and the package includes a Windows executable (phantomjs.exe). This causes things not to work on anything but Windows. (I first found this problem on Ubuntu.)

ERROR: phantomjs binary does not exist: /Users/Hahaha/.vscode/extensions/yzane.markdown-pdf-0.1.7/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe

It should be possible to rebuild on your system from source and workaround this, but the instructions for doing this are insufficient; or perhaps I don't have all the right versions of all the node.js things around on my system. In any case, I think that shipping the .exe form causes this package to be Windows-only, at least for now.

Very useful package, by the way, thank you @yzane !

from vscode-markdown-pdf.

giogt avatar giogt commented on June 12, 2024 1

I just wanted to add that, as expected, on Linux (Linux Mint 18.2 Sonya) I have the same problem.

from vscode-markdown-pdf.

yzane avatar yzane commented on June 12, 2024 1

I pre-released Markdown PDF ver1.0.0 which replaced pdf converter with puppeteer instead of html-pdf.
Please download from here and try.

from vscode-markdown-pdf.

azixMcAze avatar azixMcAze commented on June 12, 2024

I had the same problem. Uninstalling and reinstalling the extension solved the problem

from vscode-markdown-pdf.

jiaxw32 avatar jiaxw32 commented on June 12, 2024

i had the same problem.Uninstalling and reinstalling the extension doesn't work for me. Any one have other solutions.

from vscode-markdown-pdf.

liangmingran avatar liangmingran commented on June 12, 2024

i had the same problem.Uninstalling and reinstalling the extension doesn't work for me too.
macOS version : Sieaar 10.12.6 (16G29)
vscode version : 1.15.1 (1.15.1)

from vscode-markdown-pdf.

plucury avatar plucury commented on June 12, 2024

Had same problem too. Uninstalling and reinstalling didn't work too.

from vscode-markdown-pdf.

DaveEveritt avatar DaveEveritt commented on June 12, 2024

To help the developer and focus the issue on the Windows path, I've made this into a very specific issue here: #52

Then I found that uninstalling (and quitting VSCode in my case, which may or may not be necessary) then reinstalling the extension and reloading the window worked.

from vscode-markdown-pdf.

liangmingran avatar liangmingran commented on June 12, 2024

hello,everybody. i had the same problem in my mac.
i try to install Phantomjs ,and then the extension is ok.
if you want to install Phantomjs,follow steps

  1. install node environment

use nvm or use node offical

  1. use npm install Phantomjs npm install phantomjs -g

have a try to convert a md to pdf, it will be success.

from vscode-markdown-pdf.

csjune avatar csjune commented on June 12, 2024

ver 1.0 works well on macOS High Sierra. Thank you @yzane !

from vscode-markdown-pdf.

yzane avatar yzane commented on June 12, 2024

Markdown PDF ver1.0.0 replaced PDF converter with puppeteer instead of node-html-pdf.
Therefore PhantomJS is no longer used.

from vscode-markdown-pdf.

yzane avatar yzane commented on June 12, 2024

@csjune Thank you for the report.

from vscode-markdown-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.