Skip to content

[Bug] Flymake counter keeps increasing when using auctex-cont-latexmk #788

Description

@hannesmeinlschmidt

Thank you for the bug report

  • I am using the latest version of doom-modeline related packages.
  • I checked FAQ.
  • You may also try reproduce the issue using clean environment and minimal configurations with
    the command emacs -Q.

Bug description

In my LaTeX workflow, I am using auctex-cont-latexmk to run latexmk continuously in the background whenever change to the buffer are detected. The package also offers a flymake backend that reports back the warnings and errors from the compilation log.

I understand that auctex-cont-latexmk runs on a timer to report the issues to flymake. This works just fine with the regular modeline, but in doom-modeline, the flymake issues counter keeps increasing every few seconds. The flymake diagnostics buffer displays the correct issues, it's just the displayed number of issues in doom-modeline that keeps increasing. The number stops increasing once one makes a change to the buffer. My understanding from the auctex-cont-latexmk source is that this tells its flymake report backend that the report may be outdated, so it stops reporting.

I am not confident that this is an issue with doom-modeline itself and the way it collects the issues from flymake, or rather with an incorrect way of flymake reporting from auctex-cont-latexmk, but since with the original modeline, the problem does not occur, I have opened the issue here to clarify.

The issue is reproducable also with emacs -Q, loading only auctex-cont-latexmk and doom-modeline and activating flymake.

Steps to reproduce

Activate auctex-cont-latexmk with auctex-cont-latexmk-toggle in a tex buffer where compilation will raise an error or warning. doom-modeline will show an increasing number of issues, the original modeline will not.

Here is a minimal example where the warning arising from the wrong reference will trigger the issue:

\documentclass{article}
%
\begin{document}
This is a test.
\begin{equation}
  \label{eq:debug}
  e^{i \pi} = -1
  \end{equation}
This is a wrong reference:~\ref{eq:debugg}.
\end{document}

Expected behavior

The number of flymake issues reported in doom-modeline should not increase whenever the flymake backend of auctex-cont-latexmk issues an unchanged report.

OS

MacOS

Emacs Version

30

Emacs Configurations

No response

Error callstack

Anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions