Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JannisNe opened this issue Jul 29, 2024 · 2 comments
Closed

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

JannisNe opened this issue Jul 29, 2024 · 2 comments
Labels
support Issues that were migrated to a Discussion.

Comments

@JannisNe
Copy link

JannisNe commented Jul 29, 2024

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 JannisNe added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Jul 29, 2024
@JannisNe JannisNe changed the title Missing suggestions for files in \includegraphics{} Missing suggestions for files in subdirectories \includegraphics{} Jul 29, 2024
@JannisNe
Copy link
Author

JannisNe commented Aug 1, 2024

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?

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Nov 9, 2024
@PHPirates PHPirates modified the milestone: Next Dec 2, 2024
@PHPirates
Copy link
Collaborator

Thanks for creating this issue, but what I didn't notice at first is that there are braces missing, this example does not compile so TeXiFy is correct in not suggesting the file. This works:

\documentclass{article}
\usepackage{graphicx}
\graphicspath{{images/}}
\begin{document}
    \includegraphics{<tab>}
\end{document}

See https://hannah-sten.github.io/TeXiFy-IDEA/editing-a-latex-file.html#graphicspath-support

@PHPirates PHPirates closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@PHPirates PHPirates added support Issues that were migrated to a Discussion. and removed bug Deficiencies in TeXiFy behaviour. labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Issues that were migrated to a Discussion.
Projects
None yet
Development

No branches or pull requests

2 participants