Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandoc: command not found #21

Open
MrPoetry opened this issue Apr 17, 2017 · 7 comments
Open

pandoc: command not found #21

MrPoetry opened this issue Apr 17, 2017 · 7 comments

Comments

@MrPoetry
Copy link

MrPoetry commented Apr 17, 2017

I installed your extension via the Extension Search in VS Code's sidebar. Macbook Pro, 10.11.6. VS Code 1.11.2.

"Pandoc Render" is throwing the following errors:

exec error: Error: Command failed: pandoc "/Volumes/ImTheUser/TEMP/CURRENT NOTES.md" -o "/Volumes/ImTheUser/TEMP/CURRENT NOTES.pdf"

stderr: /bin/sh: pandoc: command not found

In a terminal, I get:

ImTheUser$ pandoc --version
pandoc 1.14.0.1

And if I run in VS Code's integrated terminal the same command shown in the above exec error:

ImTheUser$ pandoc "/Volumes/ImTheUser/TEMP/CURRENT NOTES.md" -o "/Volumes/ImTheUser/TEMP/CURRENT NOTES.pdf"

...a .PDF is rendered perfectly.

What should I do? I'm guessing I'm missing something basic.

@nfoti
Copy link

nfoti commented Apr 25, 2017

I was having this problem as well when using a particular wireless network. When I changed from that network to a different one this plugin worked again.

I have no idea why the wireless network would matter.

@flipphillips
Copy link

flipphillips commented Sep 27, 2017

Do this

$ which pandoc

and see 'where' the path points. It appears it can't find it in the $PATH

I can't see a place in preferences to set the path, so I manually twerked the module to look in the right place.

@sunmorgus
Copy link

I had a similar issue recently... not sure why this worked, but reloading the vscode window fixed it. I'm wondering if I hadn't started up another terminal at some point that change the path maybe?

@aragalie
Copy link

Had the same issue, and can confirm that the solution is to restart VSCode. It then works as usual for some reason..

@RedX2501
Copy link

It would be much nicer if this extension allowed to configure the location of pandoc.exe instead of having to have it in the PATH variable.

@furicle
Copy link

furicle commented Oct 23, 2018

I have a similar but not quite the same issue.

which pandoc in the VSCode terminal works (c:\program files\pandoc\pandoc) as well as in cmd or powershell etc.

But I'm still getting can't find when I try and use the extension?!?

@furicle furicle mentioned this issue Oct 23, 2018
@InfiniteFalltrough
Copy link

InfiniteFalltrough commented Jun 2, 2023

same issue
$ which pandoc
just causing "pandoc not found"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants