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

[BUG] Code Chunk:EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory #1847

Open qinglong1397 opened 1 year ago

qinglong1397 commented 1 year ago

Describe the bug 使用Code Chunk功能时,无法找到生成的svg文件。

Environment

To Reproduce 在Code Chunk功能中,输入

\documentclass{standalone}
\begin{document}
   Hello world!
\end{document}

在预览界面,点击run按钮,出现报错: EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'c:\Userprofile\AppData\Local\Temp\crossnote_pdf2023918-16380-g38dn0.7bxne\16bb3df268a70ce669bd5864d7b6e2bf_1.svg?0.5976099271994875'

经查,该文件确实被生成,且在正确的位置。无法用 figure 预览该文件。 将该文件放置其他位置,比如跟md文档同一个目录下,使用 figure 可正确预览。

Additional context 请解决该问题,谢谢!

YuruiHong commented 11 months ago

Linux下亦有相同问题,显示路径和生成的文件均在/tmp/crossnote_pdf<folderid>/<svgid>.svg,而无法正确预览

dx3906999 commented 7 months ago

现在貌似仍未解决

Chlorine628 commented 7 months ago

Duplicate of #1878

ShaySheng commented 2 months ago

还没解决