-
-
Notifications
You must be signed in to change notification settings - Fork 93
Allow specifying file extension / location requirements for custom commands #4050
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
Comments
Generally we hardcode any such non-standard behaviour for specific packages if it is not possible to auto-detect, which is also what I would do with tikzit if it's just a path prefix. |
Personally I try to avoid adding supressions from IDEA inspections, as they add "unnecessary" LOC even when nothing is actually wrong with the code. Depending on the view, this is more or less of an issue in LaTeX documents since some processors (like I guess "indexing" the command to see what it does / where it searches for files is overengineering since that includes a full static analysis. I also try to avoid hardcoding, but if that is standard practice in this plugin, would the package |
We do index all LaTeX package files that are installed, but that is regex-based instead of parser-based for performance reasons. Although I see this package is installed manually and not via ctan, so it's a bit different already. Looking at the command definiton, it looks a bit nontrivial to parse all the If's, I would probably take the easy route and just hardcode it.
|
I was about to open a similar issue, for certain figures, I have to use the |
@pascalgoedeke The import package should already be supported, see https://hannah-sten.github.io/TeXiFy-IDEA/code-navigation.html#import-package |
Currently, using custom commands (or for that matter commands from other packages) that include files and have requirements for non-standard file locations or extensions displays a false positive of the
FileNotFound
inspection.E.g. using the package

tikzit
(.sty
available under https://tikzit.github.io/), files are included asThe command
\tikzfig
then expects the figure<name>
under./figures/<name>.tikz
.The file is also located there, but the TeXiFy plugin does not pick it up.
Is there already a setting which I missed to remove the false positive here? Is this something that can be reasonably added to the settings? Or do you have any other pointers what is appropriate here?
The text was updated successfully, but these errors were encountered: