Thank you for the bug report
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
Thank you for the bug report
doom-modelinerelated packages.the command
emacs -Q.Bug description
In my LaTeX workflow, I am using auctex-cont-latexmk to run
latexmkcontinuously in the background whenever change to the buffer are detected. The package also offers aflymakebackend that reports back the warnings and errors from the compilation log.I understand that
auctex-cont-latexmkruns on a timer to report the issues toflymake. This works just fine with the regular modeline, but indoom-modeline, theflymakeissues counter keeps increasing every few seconds. Theflymakediagnostics buffer displays the correct issues, it's just the displayed number of issues indoom-modelinethat keeps increasing. The number stops increasing once one makes a change to the buffer. My understanding from theauctex-cont-latexmksource is that this tells itsflymakereport backend that the report may be outdated, so it stops reporting.I am not confident that this is an issue with
doom-modelineitself and the way it collects the issues from flymake, or rather with an incorrect way offlymakereporting fromauctex-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 onlyauctex-cont-latexmkanddoom-modelineand activatingflymake.Steps to reproduce
Activate
auctex-cont-latexmkwithauctex-cont-latexmk-togglein a tex buffer where compilation will raise an error or warning.doom-modelinewill 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:
Expected behavior
The number of
flymakeissues reported indoom-modelineshould not increase whenever theflymakebackend ofauctex-cont-latexmkissues an unchanged report.OS
MacOS
Emacs Version
30
Emacs Configurations
No response
Error callstack
Anything else
No response