Hannah-Sten / TeXiFy-IDEA

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

Missing suggestions for files in subdirectories \includegraphics{} #3611

Open JannisNe opened 3 months ago

JannisNe commented 3 months ago

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

Build #PY-241.18034.82, built on June 24, 2024

Operating System

MacOS 12.5.1

TeXiFy IDEA version

0.9.7

What I did (steps to reproduce)

Install the newest TeXiFy IDEA version

Minimal example to reproduce the problem

With a directory structure

test.tex
images
  |- test_image1.pdf
test_image2.pdf

I would expect to get the suggestion test_image1.pdf for

\documentclass{article}
\usepackage{graphix}
\graphicspath{images/}
\begin{document}
\includegraphics{<Tab>}
\end{document}

which in fact worked up until version 0.9.6.

I still get the corresponding suggestion for test_image2.pdf.

Expected behavior

Get suggestions for files.

Actual behavior

No suggestions appear.

JannisNe commented 3 months ago

Edit: If I add the images directory as a source directory under Preferences -> Project: my_project -> Project Structure I get the suggestions. This is also the behaviour for version 0.9.6 but wasn't always the case. Did something in PyCharm itself change?