Hannah-Sten / TeXiFy-IDEA

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

false-positive warning for extra space between text and command #3141

Open SaeidYazdani opened 1 year ago

SaeidYazdani commented 1 year ago

I get this warning which is of course to my knowledge a false-positive error

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

IntelliJ ULTIMATE

Operating System

Windows

TeXiFy IDEA version

0.7.31

Expected behavior

before

Actual behavior

after

jojo2357 commented 1 year ago

Could you please provide a minimal working example? I copied (by hand) the problematic text and didnt get any errors.

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{graphicx}
\begin{document}

    \begin{figure}
        \centering
        \includegraphics{imiges/RMS.JPG}
        \caption{}
        \label{fig:fig}
    \end{figure}

    principles of a
    generic \ac{PID} controller.

    Similar to the structure presented in
    \autoref{fig:fig},
    A feedback

\end{document}

are there any settings i need to make sure are enabled? If you could provide the contents of a file that I can easily copy locally to observe the error, that will help with identifying and fixing this issue.

SaeidYazdani commented 1 year ago

Thanks for quick follow-up. I realized this issue is being triggered when a new plugin that I have installed "Grazie Professional" is enabled. Somehow that pluging does not understang \command{argument} is part of the text.

Is that something that you could do something about? or should I contact that plugin developers?

PHPirates commented 1 year ago

That explains, thanks. I can reproduce the problem with Grazie Professional. We will have a look, it is as yet unclear to me whether this uses the same implementation (that is done in TeXiFy) as Grazie Lite. If yes, we are probably ignoring too much or to little of the LaTeX parts before we send the cleaned up text to Grazie.