ChrisChinchilla / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
MIT License
26 stars 13 forks source link

Anyone Else Getting a "exec error: Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT" Error? #35

Open SurlyKM opened 7 months ago

SurlyKM commented 7 months ago

Getting exec error: Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT pandoc installed and works fine.

image

ChrisChinchilla commented 7 months ago

@SurlyKM Testing this, were you trying to create a PDF? Do you get the same error with other file types?

SurlyKM commented 7 months ago

@ChrisChinchilla sorry for the delay, I was attempting to go from .md to .docx , but the error above happens for all file types. However I can use pandoc direct from from powershell to create a docx without issue. ex. PS C:\Program Files\Pandoc> .\pandoc.exe -o "C:\Temp\new 107.docx" "C:\Temp\new 107.txt" This works fine.

I have not had success with PDF but i believe I just need to install pdflatex.

PS C:\Program Files\Pandoc> .\pandoc.exe -o "C:\Temp\new 107.pdf" "C:\Temp\new 107.txt" pdflatex not found. Please select a different --pdf-engine or install pdflatex

ChrisChinchilla commented 7 months ago

@SurlyKM Hmm, then I couldn't recreate this, but I will try it again. Yes, I realised that I need to update the docs to mention this requirement, but I could convert to a Word file with no problems. I am not so experienced with Windows…

What version of Windows? How did you install Pandoc?

SurlyKM commented 7 months ago

@ChrisChinchilla hmm ya it strange, I manually installed Pandoc from their website. On Windows 10 version 10.0.19045 I thought i could be permissions but tried VSCode as admin and same error,