all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sbaugh@catern.com
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
	"Spencer Baugh" <sbaugh@janestreet.com>,
	69809@debbugs.gnu.org
Subject: bug#69809: 30.0.50; flymake: error in process sentinel
Date: Sat, 23 Mar 2024 14:02:02 +0000 (UTC)	[thread overview]
Message-ID: <87le696o86.fsf@catern.com> (raw)
In-Reply-To: <867chv3mtf.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Mar 2024 12:23:56 +0200")

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Fri, 15 Mar 2024 08:09:40 +0100
> 
> In master, I am sometimes getting errors like these:
> 
>   error in process sentinel: flymake--handle-report: Can’t find state for flymake-cc in ‘flymake--state’
>   error in process sentinel: Can’t find state for flymake-cc in ‘flymake--state’
>   error in process sentinel: flymake--handle-report: Can’t find state for flymake-cc in ‘flymake--state’
>   error in process sentinel: Can’t find state for flymake-cc in ‘flymake--state’
>   error in process sentinel: flymake--handle-report: Can’t find state for flymake-cc in ‘flymake--state’
>   error in process sentinel: Can’t find state for flymake-cc in ‘flymake--state’
> 
> when working with C files.
> 
> I haven't configured anything for Flymake myself. I think Flymake gets
> involved by using Eglot. The errors apparently don't prevent flymake
> from working later on.
> 
> I have looked around in flymake docs and source, but I can't figure out
> what's wrong.

It would be helpful if you could provide a minimal reproduction starting
from "emacs -q".

My immediate suspicion is that flymake-mode is (somehow) enabled in your
C files while flymake-diagnostic-functions is set to contain flymake-cc,
which causes flymake-cc to start up a background process.  Then,
flymake-mode is enabled again by eglot--managed-mode, which causes
flymake--state to be cleared, so when flymake-cc tries to report
diagnostics from that background process through flymake--handle-report,
it fails.

But I can't be sure whether this is due to a bug in Emacs or due to a
bug in your config without a more minimal reproduction.





  reply	other threads:[~2024-03-23 14:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-15  7:09 bug#69809: 30.0.50; flymake: error in process sentinel Gerd Möllmann
2024-03-21 10:23 ` Eli Zaretskii
2024-03-23 14:02   ` sbaugh [this message]
2024-03-23 14:20     ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87le696o86.fsf@catern.com \
    --to=sbaugh@catern.com \
    --cc=69809@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=sbaugh@janestreet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.