shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.47k stars 173 forks source link

Can't render preview: "errno":-4058,"code":"ENOENT" #589

Open yuyurao opened 2 years ago

yuyurao commented 2 years ago

Is there any idea for the error code below when trying Open Preview to the Side? It could not render the preview. Thanks a lot.

{"errno":-4058,"code":"ENOENT","syscall":"spawn java","path":"java","spawnargs":["-Djava.awt.headless=true","-Dfile.encoding=UTF-8","-Dplantuml.include.path=C:\MyFolder\UML;C:\Users\userid\.mume","-jar","c:\Users\userid\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.6.2\node_modules\@shd101wyy\mume\dependencies\plantuml\plantuml.jar","-pipe","-tsvg","-charset","UTF-8"]}

WangsYi commented 2 years ago

Install jdk add java.exe to path restart vscode.