Hannah-Sten / TeXiFy-IDEA

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

Missing file suggestions for files and subdirectories for \includesvg{} command #3667

Open BrandonZahn opened 4 days ago

BrandonZahn commented 4 days ago

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

JetBrains IntelliJ IDEA 2024.2.2

Operating System

Windows 11

TeXiFy IDEA version

0.9.7

What I did (steps to reproduce)

  1. Create a new TeXiFy project
  2. Add svg images to src directory
  3. in main.tex, include \usepackage{svg} in preamble with \svgsetup{ inkscapepath=../out/svg-inkscape }
  4. in document call \includesvg[width=\textwidth]{ } in figure environment

Minimal example to reproduce the problem

\documentclass{article}
\usepackage{svg}
\svgsetup{
    inkscapepath=../out/svg-inkscape
}
\begin{document}

    \begin{figure}
        \centering
        \includesvg[width=\textwidth]{svg/filename}
        \caption{Test svg diagram}
        \label{fig:testsvg}
    \end{figure}

\end{document}

Expected behavior

When pressing CTRL + SPACE while the cursor is at svg/filename, file name and path suggestions are suggested to the user

Actual behavior

When pressing CTRL + SPACE, there are no suggestions.

(if applicable) The full stacktrace of the exception thrown