GNU bug report logs - #40351
Flymake error count

Previous Next

Package: emacs;

Reported by: sir <at> hacktivista.com

Date: Tue, 31 Mar 2020 15:37:02 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: sir <at> hacktivista.com
To: bug-gnu-emacs <at> gnu.org
Subject: Flymake error count
Date: Tue, 31 Mar 2020 07:21:54 -0300
[Message part 1 (text/plain, inline)]
I've created a flymake backend based on the flymake docs: https://www.gnu.org/software/emacs/manual/html_node/flymake/An-annotated-example-backend.html#An-annotated-example-backend

It works, but I'm also using Eglot, and noticed that on the error count displayed on the status line of emacs it doesn't count properly for my backend. It displays a number 1 for each error it discovers, but Eglot errors are able to increase the number of its backend. This is what displays my status line:

(PHP//l company Flymake[1 1 1 3 0] ...)

It should display ... Flymake [3 3 0] ...

The attached image will explain it better. I'm attaching the backend also, if you need to see the code (though it's actually pretty much the same as the example in docs).

How could I make my backend increase the error count instead of creating other counter?

[eglot-flymake.png (image/png, attachment)]
[flymake-phpcs.el (text/plain, attachment)]

This bug report was last modified 2 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.