From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#69809: 30.0.50; flymake: error in process sentinel Date: Sat, 23 Mar 2024 15:20:41 +0100 Message-ID: References: <867chv3mtf.fsf@gnu.org> <87le696o86.fsf@catern.com> 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="34949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , Eli Zaretskii , 69809@debbugs.gnu.org To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 23 15:22:48 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 1ro2Gm-0008sA-51 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Mar 2024 15:22:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ro2GN-0004mR-HY; Sat, 23 Mar 2024 10:22:23 -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 1ro2GM-0004mG-0f for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:22:22 -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 1ro2GL-0000Ye-Ol for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:22:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ro2H0-0008WE-M4 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2024 14:23:02 +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.171120375232653 (code B ref 69809); Sat, 23 Mar 2024 14:23:02 +0000 Original-Received: (at 69809) by debbugs.gnu.org; 23 Mar 2024 14:22:32 +0000 Original-Received: from localhost ([127.0.0.1]:59844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro2GW-0008Ub-9f for submit@debbugs.gnu.org; Sat, 23 Mar 2024 10:22:32 -0400 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:59646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro2GU-0008UF-Jg for 69809@debbugs.gnu.org; Sat, 23 Mar 2024 10:22:31 -0400 Original-Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a46ce2bd562so437067766b.2 for <69809@debbugs.gnu.org>; Sat, 23 Mar 2024 07:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711203643; x=1711808443; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V4uacT0aYohwSrT+7q16PF80u/oEgOxQ5ybZ0V19xcA=; b=ncTHSuBZDb3i7ARi40IwFyedppbTVNewx0+ZAgn0vtPUFeLC/xQUheqZ8FBQuU8MFT h0tvQJ6fzgHCHuKOp3csOYZlzXgRGU3WoLmVM4NjRNk7JgaOIryeEzaxCw7Q/LyoRKic xqp7qpzLelzTrNPCXdepkaaHNYl8dq7rD87Zt74KrZYHqnud1LiPULMDeOV/ZuUOi475 CZA+fSAzixfXp7WJ5cSXYOtA2KRWthdhzTkn7JwuE6i9ljpTQQqxXB+4FlOQbekf/2t5 /PW421K6Q3sQN7+nUQCieJcT+wfxaOnMSxAsEDjTM/wzIK4mTPgeSW1lpjkc0sJVtwUB /aPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711203643; x=1711808443; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=V4uacT0aYohwSrT+7q16PF80u/oEgOxQ5ybZ0V19xcA=; b=a8RdfLHMqucc5hrOJiZF2Qm/5sVj+Wnpuw2llQTQ3QQ4mOidXgB0c8n2+XdqhUMIq9 1vQUyH5qY9CMWdopEXXmVwJTbncd4iwu2huxQnxb63z9XWoyXsA8XYAWajdSlexq3n05 6mN06CpmJHDPuSyvVh+lQgQ8YnP5AsCcQZCisPfEMd6SUjG2X9VaxfL1VwGnt+BBnYdN POHHZrgQoO+WHdiHTY2gfcffS2WpDfduqL3s8++WuY+LqjSjsN0E+6K2aUjdPpdLwJE8 MyC/Czxb1c8TubPgxdLbJIogbQVyiQyGKcNEqiOMuT8qUeIrI7+0a+K+3nyFYQe4stXl LJ9w== X-Forwarded-Encrypted: i=1; AJvYcCUD6TZmsFWaCc8QVr2KZuZPaOLiD1v9/+i9Uwsqjm2neivHqlTRM2m6VYVqL4zAKPW2OLqz/bOPj/lkaN6oRpGuyaiskCQ= X-Gm-Message-State: AOJu0YxuPDAWz6C4i6KCjJQqSBiwp9YrgHvUEly5YjhAW4dpgos3powS l3N7l2YCaCw7G3tzLBjq6B29xpe/YYzqeBqF22RlZdV7PeOQCvtHP0v5Rj+6 X-Google-Smtp-Source: AGHT+IG/khOitZEXlOAqRfuCst70zdPYTh3xw9ew3XgPnBmtgNBlhV6mZCjiqQQEB40DlmY/PG9aTw== X-Received: by 2002:a17:906:c146:b0:a47:4bec:a211 with SMTP id dp6-20020a170906c14600b00a474beca211mr310656ejc.40.1711203643062; Sat, 23 Mar 2024 07:20:43 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e36a8b.dip0.t-ipconnect.de. [217.227.106.139]) by smtp.gmail.com with ESMTPSA id la3-20020a170906ad8300b00a4678ee539bsm956009ejb.190.2024.03.23.07.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 07:20:42 -0700 (PDT) In-Reply-To: <87le696o86.fsf@catern.com> (sbaugh@catern.com's message of "Sat, 23 Mar 2024 14:02:02 +0000 (UTC)") 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:281984 Archived-At: sbaugh@catern.com writes: >> From: Gerd M=C3=B6llmann >> 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=E2=80=99t find = state 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 = state 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 = state 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 >> >> 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.