latexindent
on macOSI recently updated my Mac to MacOS Sonoma Version 14.6.1. I'm now encountering an issue when trying to run a .tex file in Visual Studio Code using the LaTeX Workshop extension. I receive the following error:
[22:03:59.630][Format][TeX] Error when removing temporary file Error: ENOENT: no such file or directory, unlink '/Users/.../indent.log'
VSCode still creates the PDF, however, I get an error message and there is about a 1 sec delay, which is an extreme nuisance when I need to update a document frequently.
Verified the path to latexindent
:
which latexindent
and confirmed that the path to latexindent
is /Library/TeX/texbin/latexindent
.latexindent
in the settings.json
file:
"latex-workshop.latexindent.path": "/Library/TeX/texbin/latexindent"Reinstalled TeX Live:
latexindent
is working by running it directly in the terminal without issues.Other settings in settings.json
:
I have the following settings related to LaTeX Workshop:
"latex-workshop.view.pdf.viewer": "tab", "latex-workshop.latexindent.path": "/Library/TeX/texbin/latexindent", "latex-workshop.intellisense.bibtexJSON.replace": {}, "latex-workshop.message.badbox.show": false
Despite these steps, I still get the same ENOENT error when trying to format or save .tex files in VS Code. I'm unsure if this is related to LaTeX Workshop, the latexindent
path, or something else.
Does anyone have suggestions on what I can try next to resolve this error? Any help is appreciated!
Environment:
I fixed this issue by installing the File::HomeDir
perl module (which is used to locate the home directory on different operating systems).
sudo cpan File::HomeDir
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With