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

Inspection errors when common commands are defined in custom packages #1753

Closed
fberlakovich opened this issue Jan 18, 2021 · 0 comments · Fixed by #1766
Closed

Inspection errors when common commands are defined in custom packages #1753

fberlakovich opened this issue Jan 18, 2021 · 0 comments · Fixed by #1766
Assignees
Labels
bug Deficiencies in TeXiFy behaviour.
Milestone

Comments

@fberlakovich
Copy link
Contributor

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

IntelliJ 2020.3

Operating System

Windows

TeXiFy IDEA version

0.7.2

What I did (steps to reproduce)

See the minimal example

Minimal example to reproduce the problem

\documentclass{article}
\pdfpagewidth=8.5in
\pdfpageheight=11in
\usepackage{ijcai20} % no 21 version yet

\newcommand{\citet}[1]{\citeauthor{#1} \shortcite{#1}}

\begin{document}
    \citet{X}
\end{document}

Files in src:

  • main.tex
  • ijcai20.sty
  • named.bst

The package ijcai20 can be found under this link: https://www.ijcai.org/authors_kit (I am not sure whether I am allowed to upload it here). The example can probably be reduced further, but I lack the skills to do so.

Expected behavior

No errors since \citeauthor is defined in the package and \citet is defined with \newcommand

Actual behavior

\citet and \citeauthor are displayed in red and \newcommand is underlined in red. The error for \newcommand is "Command is already defined" and for \citet "Command requires natbib package". TeXiFy-IDEA seems to miss that \citeauthor is defined in ijcai20.sty.

@fberlakovich fberlakovich added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Jan 18, 2021
@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Jan 29, 2021
@PHPirates PHPirates added this to the b0.7.4 milestone Jan 29, 2021
@PHPirates PHPirates self-assigned this Jan 29, 2021
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
2 participants