GNU bug report logs -
#69809
30.0.50; flymake: error in process sentinel
Previous Next
To reply to this bug, email your comments to 69809 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#69809
; Package
emacs
.
(Fri, 15 Mar 2024 07:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 15 Mar 2024 07:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#69809
; Package
emacs
.
(Thu, 21 Mar 2024 10:25:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 69809 <at> debbugs.gnu.org (full text, mbox):
> From: Gerd Möllmann <gerd.moellmann <at> 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.
Spencer, any suggestions?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#69809
; Package
emacs
.
(Sat, 23 Mar 2024 14:11:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 69809 <at> debbugs.gnu.org (full text, mbox):
> From: Gerd Möllmann <gerd.moellmann <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#69809
; Package
emacs
.
(Sat, 23 Mar 2024 14:23:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 69809 <at> debbugs.gnu.org (full text, mbox):
sbaugh <at> catern.com writes:
>> From: Gerd Möllmann <gerd.moellmann <at> 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".
I know, but I can't reproduce it at will. And debug-on-error didn't help
catch it in the act, maybe there is some condition-case involved
somewhere that should have better been a condition-case-unless-debug.
> 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.
No config using flymake and none for eglot. The only thing I did is
put eglot-ensure on c-mode-common-hook.
Maybe I can catch it in LLDB somehow, but that will have to wait a bit,
unfortunately.
Anyway, thanks for the replay.
This bug report was last modified 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.