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

style file included from custom style file #3800

Closed
mvscheven opened this issue Dec 9, 2024 · 3 comments
Closed

style file included from custom style file #3800

mvscheven opened this issue Dec 9, 2024 · 3 comments
Labels
bug Deficiencies in TeXiFy behaviour.

Comments

@mvscheven
Copy link

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

IntelliJ IDEA 2024.3, Build #IU-243.21565.193

Operating System

Windows 11

TeXiFy IDEA version

0.9.9

What I did (steps to reproduce)

  • Create new LaTeX project
  • Create own style file which includes e.g. amsmath in the src directory of the project

Minimal example to reproduce the problem

main.tex

\documentclass[11pt]{article}
\usepackage{myStyle}

\begin{document}
    \begin{align}
    \sigma = C \varepsilon
    \end{align}
\end{document}

myStyle.sty

\RequirePackage{amsmath}

Expected behavior

Use of amsmath is recognized and environments like align are not highlighted as errors

Actual behavior

align is underlined in red and import of amsmath is suggested as fix

Additional Remark

It worked correctly until some time ago, version 0.9.6.

@mvscheven mvscheven added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Dec 9, 2024
@PHPirates
Copy link
Collaborator

I think this might be related to indexes/caching, could you try restarting intellij one or two times?

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Dec 10, 2024
@mvscheven
Copy link
Author

You are right. Restarting IntelliJ again solved the problem.
Thanks!

@mvscheven mvscheven closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
@PHPirates
Copy link
Collaborator

Thanks for checking, I can reproduce that issue. I will see if I can improve this so that it works without restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour.
Projects
None yet
Development

No branches or pull requests

2 participants