From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#69809: 30.0.50; flymake: error in process sentinel Date: Sat, 23 Mar 2024 14:02:02 +0000 (UTC) Message-ID: <87le696o86.fsf@catern.com> References: <867chv3mtf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18571"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Spencer Baugh , 69809@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 23 15:10:56 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ro25H-0004cg-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Mar 2024 15:10:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ro24o-0001gU-82; Sat, 23 Mar 2024 10:10:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ro24l-0001e9-3P for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:10:23 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ro24k-0006uq-PF for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:10:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ro25P-00082D-Gf for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:11:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2024 14:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69809 X-GNU-PR-Package: emacs Original-Received: via spool by 69809-submit@debbugs.gnu.org id=B69809.171120301930772 (code B ref 69809); Sat, 23 Mar 2024 14:11:03 +0000 Original-Received: (at 69809) by debbugs.gnu.org; 23 Mar 2024 14:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:59238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro24g-000808-7K for submit@debbugs.gnu.org; Sat, 23 Mar 2024 10:10:19 -0400 Original-Received: from s.wrqvwxzv.outbound-mail.sendgrid.net ([149.72.154.232]:50366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro1xS-0007fX-Dd for 69809@debbugs.gnu.org; Sat, 23 Mar 2024 10:02:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=K7NA6BQ5kciDEU+u9JVvP8hUZm0EbUM/VSxkdbhOSE4=; b=RRAnKFxX4/LqcZGzpIMmoUxeU7CMduIIrQvhGj1kQKSEhmjukNrk+w1tP1Lk7PJ7ZYkm WGYBHsKYlrWvF78QEHXFwIYC8eZKi3kkUtdoy6BuDjssMTqOXDUk2zYuH/C3WlxhpEoupk yiP1nQfYFL3Y6XMXlEPRS7UAd/xtv+Zhdtw6MdF++1hh0Rabnlh46I/hmMQolbhA+omkQR /ptixvWFJx5AWLUaFtvC2lUmfsNvb3NjrRyBuDfSNZeISFWhdznQ8lJoI5z6yEen1rSDpp SnFtRO7NK8diD9KQXEeJ9OTPlv5fbHCMUyajIUN+sDAGh5qVUvhNYLtJU4ODtX8A== Original-Received: by recvd-6fc499775c-fwx7v with SMTP id recvd-6fc499775c-fwx7v-1-65FEE0DA-74 2024-03-23 14:02:02.657235022 +0000 UTC m=+406891.969486684 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-34 (SG) with ESMTP id aXKLEunaRbagjPh3hcsKqQ Sat, 23 Mar 2024 14:02:02.443 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=127.0.0.1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=gnu.org Original-Received: from localhost (localhost [127.0.0.1]) by earth.catern.com (Postfix) with ESMTPSA id 15D4A600A9; Sat, 23 Mar 2024 10:02:02 -0400 (EDT) In-Reply-To: <867chv3mtf.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Mar 2024 12:23:56 +0200") X-SG-EID: u001.v6RTqHFpv1T6krEot6UFAVAJmQ+4h1t8/TfqqE2B07OvbuVEQyEv778T+KrA0Lw/SDAIg3JHSqKMcgz7jY5IHqogSsr30m2/K5ygC5XnprQVNFlMZAJsfgBJToebYTz9XdzbY4+JyF1oWRN0sKsBDYgenT9523F6JDmVzrSUM82CavYs9vRWcVdxQ3dvxWiDqmQBSHs++gRHcszArDiGyg== X-Entity-ID: u001.oW4JupFKOzCccZAQN2OOFQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281982 Archived-At: > From: Gerd M=C3=B6llmann > Date: Fri, 15 Mar 2024 08:09:40 +0100 >=20 > In master, I am sometimes getting errors like these: >=20 > error in process sentinel: flymake--handle-report: Can=E2=80=99t find s= tate for flymake-cc in =E2=80=98flymake--state=E2=80=99 > error in process sentinel: Can=E2=80=99t find state for flymake-cc in = =E2=80=98flymake--state=E2=80=99 > error in process sentinel: flymake--handle-report: Can=E2=80=99t find s= tate for flymake-cc in =E2=80=98flymake--state=E2=80=99 > error in process sentinel: Can=E2=80=99t find state for flymake-cc in = =E2=80=98flymake--state=E2=80=99 > error in process sentinel: flymake--handle-report: Can=E2=80=99t find s= tate for flymake-cc in =E2=80=98flymake--state=E2=80=99 > error in process sentinel: Can=E2=80=99t find state for flymake-cc in = =E2=80=98flymake--state=E2=80=99 >=20 > when working with C files. >=20 > 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. >=20 > 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.