You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I run md.convert(), I get hit with some variation of the error No such file or directory: /tmp/mdkatex/adcebc8e8ae41063cc456af7bc8c63e5b2023b67b78beea322358d8b8b4409d5.tex (line 234 in _write_tex2html of wrapper.py).
Looking in the code, it looks like the problem is caused by trying to delete a temporary tex file that was created but doesn't exist anymore for whatever reason. I'm confused because the file is explicitly created earlier on in _write_tex2html, and if there's any issues with the file creation it should just raise an error then.
Update: You were right about it being a heisenbug, it completely disappeared and everything is working properly.
I think I'm going to leave the issue open just so people know it's a known issue
When multiple processes are running this plugin, they operate in the same working directory, where one process is cleaning things up while another one is still using it. To avoid this, each wrapper instance can use mkdtemp instead.
Whenever I run
md.convert()
, I get hit with some variation of the errorNo such file or directory: /tmp/mdkatex/adcebc8e8ae41063cc456af7bc8c63e5b2023b67b78beea322358d8b8b4409d5.tex
(line 234 in_write_tex2html
ofwrapper.py
).Looking in the code, it looks like the problem is caused by trying to delete a temporary tex file that was created but doesn't exist anymore for whatever reason. I'm confused because the file is explicitly created earlier on in
_write_tex2html
, and if there's any issues with the file creation it should just raise an error then.The markdown-katex version:
markdown-katex version: v202112.1034 (using binary: /usr/bin/npx --no-install katex) 0.16.8
The text was updated successfully, but these errors were encountered: