all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#70752: 30.0.50; flymake: add a command for resetting state
@ 2024-05-03 17:27 Óscar Fuentes
  2024-05-04 11:54 ` Eli Zaretskii
  2024-05-18 14:37 ` Spencer Baugh
  0 siblings, 2 replies; 6+ messages in thread
From: Óscar Fuentes @ 2024-05-03 17:27 UTC (permalink / raw)
  To: 70752


Sometimes flymake shows indicators of unexisting diagnostics. The only
method I know of clearing those indicators is killing all buffers with
the same mode.

The real fix is to not show unexisting diagnostics, but since that can
be caused either by bugs in flymake or in third-party diagnostic
functions (including in the function's development) providing a command
or easy method to clear those diagnostics would be pragmatic and
convenient.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.0) of 2024-04-29 built on sky
Repository revision: 58ca91fe0723c861d53375f52e5b6dd54a49a2e3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101011
System Description: Debian GNU/Linux trixie/sid

Configured using:
 'configure --with-native-compilation --without-toolkit-scroll-bars
 --with-x-toolkit=lucid --with-modules --without-imagemagick'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF TREE_SITTER WEBP X11 XAW3D XDBE XIM
XINPUT2 XPM LUCID ZLIB

Important settings:
  value of $LANG: C
  locale-coding-system: nil





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70752: 30.0.50; flymake: add a command for resetting state
  2024-05-03 17:27 bug#70752: 30.0.50; flymake: add a command for resetting state Óscar Fuentes
@ 2024-05-04 11:54 ` Eli Zaretskii
  2024-05-04 23:22   ` Óscar Fuentes
  2024-05-18  8:34   ` Eli Zaretskii
  2024-05-18 14:37 ` Spencer Baugh
  1 sibling, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-05-04 11:54 UTC (permalink / raw)
  To: Óscar Fuentes, Spencer Baugh; +Cc: 70752

> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Fri, 03 May 2024 19:27:21 +0200
> 
> 
> Sometimes flymake shows indicators of unexisting diagnostics. The only
> method I know of clearing those indicators is killing all buffers with
> the same mode.
> 
> The real fix is to not show unexisting diagnostics, but since that can
> be caused either by bugs in flymake or in third-party diagnostic
> functions (including in the function's development) providing a command
> or easy method to clear those diagnostics would be pragmatic and
> convenient.

Spencer, could you please look into this?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70752: 30.0.50; flymake: add a command for resetting state
  2024-05-04 11:54 ` Eli Zaretskii
@ 2024-05-04 23:22   ` Óscar Fuentes
  2024-05-18  8:34   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Óscar Fuentes @ 2024-05-04 23:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Spencer Baugh, 70752, João Távora

Eli Zaretskii <eliz@gnu.org> writes:

> Spencer, could you please look into this?

Isn't João the flymake maintainer nowadays? (CCed)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70752: 30.0.50; flymake: add a command for resetting state
  2024-05-04 11:54 ` Eli Zaretskii
  2024-05-04 23:22   ` Óscar Fuentes
@ 2024-05-18  8:34   ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-05-18  8:34 UTC (permalink / raw)
  To: sbaugh; +Cc: ofv, 70752

Ping!  Spencer, are you looking into this?

> Cc: 70752@debbugs.gnu.org
> Date: Sat, 04 May 2024 14:54:31 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Óscar Fuentes <ofv@wanadoo.es>
> > Date: Fri, 03 May 2024 19:27:21 +0200
> > 
> > 
> > Sometimes flymake shows indicators of unexisting diagnostics. The only
> > method I know of clearing those indicators is killing all buffers with
> > the same mode.
> > 
> > The real fix is to not show unexisting diagnostics, but since that can
> > be caused either by bugs in flymake or in third-party diagnostic
> > functions (including in the function's development) providing a command
> > or easy method to clear those diagnostics would be pragmatic and
> > convenient.
> 
> Spencer, could you please look into this?
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70752: 30.0.50; flymake: add a command for resetting state
  2024-05-03 17:27 bug#70752: 30.0.50; flymake: add a command for resetting state Óscar Fuentes
  2024-05-04 11:54 ` Eli Zaretskii
@ 2024-05-18 14:37 ` Spencer Baugh
  2024-05-18 15:09   ` Óscar Fuentes
  1 sibling, 1 reply; 6+ messages in thread
From: Spencer Baugh @ 2024-05-18 14:37 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 70752

Óscar Fuentes <ofv@wanadoo.es> writes:
> Sometimes flymake shows indicators of unexisting diagnostics. The only
> method I know of clearing those indicators is killing all buffers with
> the same mode.
>
> The real fix is to not show unexisting diagnostics, but since that can
> be caused either by bugs in flymake or in third-party diagnostic
> functions (including in the function's development) providing a command
> or easy method to clear those diagnostics would be pragmatic and
> convenient.

Could you give an example of a flymake diagnostic function which reports
non-existing diagnostics?

Also, I expect that you would be able to clear the diagnostics by simply
toggling flymake-mode in the buffer with undesirable diagnostics
present.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#70752: 30.0.50; flymake: add a command for resetting state
  2024-05-18 14:37 ` Spencer Baugh
@ 2024-05-18 15:09   ` Óscar Fuentes
  0 siblings, 0 replies; 6+ messages in thread
From: Óscar Fuentes @ 2024-05-18 15:09 UTC (permalink / raw)
  To: Spencer Baugh; +Cc: 70752

Spencer Baugh <sbaugh@janestreet.com> writes:

> Óscar Fuentes <ofv@wanadoo.es> writes:
>> Sometimes flymake shows indicators of unexisting diagnostics. The only
>> method I know of clearing those indicators is killing all buffers with
>> the same mode.
>>
>> The real fix is to not show unexisting diagnostics, but since that can
>> be caused either by bugs in flymake or in third-party diagnostic
>> functions (including in the function's development) providing a command
>> or easy method to clear those diagnostics would be pragmatic and
>> convenient.
>
> Could you give an example of a flymake diagnostic function which reports
> non-existing diagnostics?
>
> Also, I expect that you would be able to clear the diagnostics by simply
> toggling flymake-mode in the buffer with undesirable diagnostics
> present.

Hello.

I've made a function for an internal language programming. The function
follows the example on the manual. The function does not report those
diagnostics, something else is at play. Anyway, fixing a faulty function
is not the point of this report. This is about flymake showing "sticky"
diagnostics that do not go away even when the function reports no
diagnostics. More specifically, this is about how to get rid of those
phantom diagnostic indicators. It happens infrequently enough (IMAO)
that having to invoke some "flymake-cleanup" command would not be a
serious nuisance.

I've seen the problem happen just after an edited buffer is reverted:
random lines on the buffer appear decorated with a diagnostic indicator.

Turning off and on flymake-mode does not work. More surprisingly,
killing the buffer and visiting it again doesn't work either: the
diagnostics are back (and I insist on the function not reporting them,
that's 100% checked). The only thing that works is to kill all the
buffers with the same major mode. Recently, I noticed that deleting the
decorated lines and simply undoing the deletion also gets rid of the
decoration.

BTW, flymake not only decorates the lines, it also adds them to the
diagnostic counter on the modeline.

So, to recap, a flymake-clean-diagnostics or somesuch command would be
handy. A quick inspection of flymake's source does not indicate an
obvious way of doing this, as it seems that the diagnostic information
is scattered over several places (including overlays on the affected
buffers.)

Thanks!





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-18 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-03 17:27 bug#70752: 30.0.50; flymake: add a command for resetting state Óscar Fuentes
2024-05-04 11:54 ` Eli Zaretskii
2024-05-04 23:22   ` Óscar Fuentes
2024-05-18  8:34   ` Eli Zaretskii
2024-05-18 14:37 ` Spencer Baugh
2024-05-18 15:09   ` Óscar Fuentes

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.