Hannah-Sten / TeXiFy-IDEA

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

"File 'article.cls' not found" on mac in version 0.9.7 #3628

Open OnDraganov opened 1 month ago

OnDraganov commented 1 month ago

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm

Operating System

MacOS Sonoma 14.6.1

TeXiFy IDEA version

0.9.7

The problem

For a basic tex document, I get the "File 'article.cls' not found" error. The file compiles, and I get a pdf file, but the error keeps popping up, and I guess the article.cls definitions are not used (?)

My setup

I have created a LaTeX configuration with explicit path to pdflatex and the "Select custom compiler executable path" ticked. The relevant paths are as follows:

> which pdflatex
/usr/local/bin/pdflatex

> which kpsewhich
/usr/local/bin/kpsewhich

> kpsewhich article.cls
/usr/local/Cellar/texlive/20240312/share/texmf-dist/tex/latex/base/article.cls
PHPirates commented 2 weeks ago

Was this issue fixed after you fixed the permissions as discussed it #3629 ?

OnDraganov commented 1 week ago

It did! Sorry for not updating here, I only realised now that it also fixed this issue.

Solution

OSX asked for Accessibility functions permission for PyCharm, and allowing them fixed the issue. Interestingly though, going to Privacy & Security > Accessibility now, PyCharm has it off. So it might be that it just needed it once to set something up, and does not need it anymore?