Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
897 stars 90 forks source link

Fix `kpsewhich` timeout on Windows using Tex Live Full #3727

Closed tristankretzer closed 1 week ago

tristankretzer commented 2 weeks ago

Fix #3653

Summary of additions and changes

I'm not quite sure if it runs in the background. The caller nl.hannahsten.texifyidea.startup.LatexPackageLocationCacheInitializer#execute() seems to run it in the background but I don't know how nl.hannahsten.texifyidea.util.files.LatexPackageLocationCache#getPackageLocation() is called. The former I could not provoke a hanging UI with, even with added delays. The latter I could not provoke a call to without having the cache filled first, so I could not check if it runs in background.

How to test this pull request

Verify the following document does not show error File 'article.cls' not found:

\documentclass{article}

\begin{document}
\end{document}
tristankretzer commented 2 weeks ago

Setting this to draft to add a fix for Process.waitFor() blocking the full timeout instead of the command execution time.