Reformat File with Latexindent - Windows TeX Live
See original GitHub issueType of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
IntelliJ IDEA 2021.3.3 (Ultimate Edition)
Operating System
Windows 11
TeXiFy IDEA version
0.7.15
What I did (steps to reproduce)
TeX Live contains latexindent.exe. If someone want to reformat the file using latexindent, the IDE will throw an error. latexindent seems to work fine in the command line but not in IntelliJ.
Minimal example to reproduce the problem
\documentclass{article}
\begin{document}
\begin{itemize}
\end{itemize}
\end{document}
Expected behavior
Reformatting file
Actual behavior
Error - cannot run programm “latexindent.pl”
(if applicable) The full stacktrace of the exception thrown
Could not run latexindent.pl: Please double check if latexindent.pl is installed correctly: Cannot run program "latexindent.pl" (in directory "C:\path-to-tex\main.tex"): CreateProcess error=2, The system cannot find the file specified
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8
Top Results From Across the Web
How to use latexindent in TeXStudio on Windows? - TeX
Navigate to C:\Program Files\MiKTeX 2.9\scripts\latexindent and replace the files in there ... should run latexindent and indent your file!
Read more >3. How to use the script — latexindent.pl 3.19.1 documentation
latexindent.pl ships as part of the TeXLive distribution for Linux and Mac users ... latexindent.pl produces a .log file, indent.log , every time...
Read more >tex-archive/support/latexindent - CTAN
The Perl script processes a LaTeX file, indenting parts so as to highlight the structure for the reader. Included are also binary (executable)...
Read more >latexindent is not indenting text, and the log output doesn't ...
This is on a Windows 10 machine, where I have installed TexLive - TexLive came with a latexindent.exe file that I deleted.
Read more >texlive[58362] branches/branch2020.0: latexindent (14mar21 ...
... latexindent.pl, version 3.9, 2021-03-14 PERL script to indent code within environments, and align delimited environments in .tex files.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes it works!
@zentox Oops, should have tested that first. Now this one actually works for me on Windows: TeXiFy-IDEA-0.7.16-latexindent.2.zip