-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Package preloaded from other package not recognized #3280
Comments
Hi, thanks for reporting this! I cannot reproduce the issue, so I need a bit more information.
The issue is probably caused by TeXiFy not being able to find your package source files, so it cannot figure out that mathtools loads amsmath |
Classic :D ubuntu$ pdflatex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
Copyright 2021 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
ubuntu$ apt list --installed | grep texlive-full
texlive-base/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-bibtex-extra/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-binaries/jammy-updates,jammy-security,now 2021.20210626.59705-1ubuntu0.1 amd64 [installed]
texlive-extra-utils/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-font-utils/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-fonts-extra-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-fonts-extra-links/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-fonts-extra/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-fonts-recommended-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-fonts-recommended/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-formats-extra/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-full/jammy,jammy,now 2021.20220204-1 all [installed]
texlive-games/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-humanities-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-humanities/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-arabic/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-chinese/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-cjk/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-cyrillic/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-czechslovak/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-english/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-european/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-french/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-german/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-greek/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-italian/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-japanese/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-korean/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-other/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-polish/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-portuguese/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-lang-spanish/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-base-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-base/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-extra-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-extra/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-recommended-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-latex-recommended/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-luatex/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-metapost-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-metapost/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-music/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-pictures-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-pictures/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-plain-generic/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-pstricks-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-pstricks/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-publishers-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-publishers/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-science-doc/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-science/jammy,jammy,now 2021.20220204-1 all [installed,automatic]
texlive-xetex/jammy,jammy,now 2021.20220204-1 all [installed,automatic] arch$ pdflatex --version
pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023/Arch Linux)
kpathsea version 6.3.5
Copyright 2023 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.40; using libpng 1.6.40
Compiled with zlib 1.3; using zlib 1.3
Compiled with xpdf version 4.04
arch$ pacman -Qs texlive
local/texlive-basic 2023.66594-19 (texlive)
TeX Live - Essential programs and files
local/texlive-bibtexextra 2023.66594-19 (texlive)
TeX Live - BibTeX additional styles
local/texlive-bin 2023.66984-16
TeX Live binaries
local/texlive-binextra 2023.66594-19 (texlive)
TeX Live - TeX auxiliary programs
local/texlive-context 2023.66594-19 (texlive)
TeX Live - ConTeXt and packages
local/texlive-fontsextra 2023.66594-19 (texlive)
TeX Live - Additional fonts
local/texlive-fontsrecommended 2023.66594-19 (texlive)
TeX Live - Recommended fonts
local/texlive-fontutils 2023.66594-19 (texlive)
TeX Live - Graphics and font utilities
local/texlive-formatsextra 2023.66594-19 (texlive)
TeX Live - Additional formats
local/texlive-games 2023.66594-19 (texlive)
TeX Live - Games typesetting
local/texlive-humanities 2023.66594-19 (texlive)
TeX Live - Humanities packages
local/texlive-latex 2023.66594-19 (texlive)
TeX Live - LaTeX fundamental packages
local/texlive-latexextra 2023.66594-19 (texlive)
TeX Live - LaTeX additional packages
local/texlive-latexrecommended 2023.66594-19 (texlive)
TeX Live - LaTeX recommended packages
local/texlive-luatex 2023.66594-19 (texlive)
TeX Live - LuaTeX packages
local/texlive-mathscience 2023.66594-19 (texlive)
TeX Live - Mathematics, natural sciences, computer science packages
local/texlive-metapost 2023.66594-19 (texlive)
TeX Live - MetaPost and Metafont packages
local/texlive-music 2023.66594-19 (texlive)
TeX Live - Music packages
local/texlive-pictures 2023.66594-19 (texlive)
TeX Live - Graphics, pictures, diagrams
local/texlive-plaingeneric 2023.66594-19 (texlive)
TeX Live - Plain (La)TeX packages
local/texlive-pstricks 2023.66594-19 (texlive)
TeX Live - PSTricks
local/texlive-publishers 2023.66594-19 (texlive)
TeX Live - Publisher styles, theses, etc.
local/texlive-xetex 2023.66594-19 (texlive)
TeX Live - XeTeX and packages
|
Thanks, that explains. I see I never implemented the path to the sty files for native TeX Live installations, so that should be an easy fix, I just need to run like |
This should fix it: https://plugins.jetbrains.com/plugin/download?rel=true&updateId=420705 |
Yep, can confirm it's fixed! Thanks for the quick response :) |
Sorry to bother again, but it seems the fix does not work on Windows with MiKTeX (tested with CLion) :/ |
Thanks for the comment. I cannot reproduce that, for me it still works even with the fix for this issue included (0.9.2-alpha.3). Our logic is like this:
If you don't see anything strange, you can also enable debug logs which should point out the issue:
|
There should not be any texlive installed.
Here is the log:
|
Thanks for the logs! I don't know why TeXiFy is spamming with system calls, should really clean that up as well. I see I made a simple mistake in logging, because it doesn't log the style files paths it searches in. I'm a bit out of ideas right now what it could be though. |
Hi , thanks for your continued effort :) The problem was what i described in the issue description at the top. The I noticed my IDE was using Inkscape's python interpreter so I switched it to a regular python 3.9 installation. This shortened the log a bit but didn't affect the error we are discussing here. Regarding PS C:\Users\UserName> kpsewhich.exe article.sty
C:/Program Files/MiKTeX 2.9/tex/latex/base/article.sty Skimming over the logs it looks to me as if TeXiFy tries to run Linux commands like
|
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
CLion 2023.2.2
Build #CL-232.9921.42, built on September 12, 2023
Operating System
Ubuntu 22.04
TeXiFy IDEA version
Version
0.9.1
What I did (steps to reproduce)
When creating an
align
environment, TeXiFy warns that the packageamsmath
is required, even ifmathtools
is loaded, which preloadsamsmath
.Minimal example to reproduce the problem
Expected behavior
No warning / error.
Actual behavior
The start of the environment is highlighted as an error (see screenshot), but compilation with e.g.
pdflatex
works fine.(if applicable) The full stacktrace of the exception thrownThe text was updated successfully, but these errors were encountered: