From unknown Thu Aug 14 18:39:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62576: package-install of an ELPA :core package doesn't reload in time Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2023 22:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62576@debbugs.gnu.org Cc: monnier@iro.umontreal.ca X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: monnier@iro.umontreal.ca Received: via spool by submit@debbugs.gnu.org id=B.168030247312756 (code B ref -1); Fri, 31 Mar 2023 22:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2023 22:41:13 +0000 Received: from localhost ([127.0.0.1]:34801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piNQm-0003Jg-HI for submit@debbugs.gnu.org; Fri, 31 Mar 2023 18:41:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:59666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piNQl-0003JZ-KG for submit@debbugs.gnu.org; Fri, 31 Mar 2023 18:41:11 -0400 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 1piNQl-0006b8-9V for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 18:41:11 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1piNQg-0002ys-Fe for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 18:41:11 -0400 Received: by mail-wm1-x32f.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso16313378wms.1 for ; Fri, 31 Mar 2023 15:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680302464; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ky6AxF8g0ljHHOpkdKtrXmEp0s3Co4ZyxqzKkbiODjo=; b=KAVNsKKXXT0vO8vXhN8ftTdY/OH19EzdqFetkPOc9b6EKBGrmIBtkwEQlNsf5RbaVY g9ja78MoxXVv9SZUI1AGnBh86/lqgAeb0gQZjpXZ71ByTuTRH0q0OppFLNX0/PM3LrAs otZgeRiZnafDH+2mnuY+7cyhVhM6VXbVgIfHbYhtF/oPWsyA+IXbfMWplAkqbdh3D1VI QXBVIaRC+g1tetBHFam1rfUr8X+vDYzKy/Vrkuutbak8Mx0unIuy3uiodNZTup36QdeY FPmp4OKqGwKFQYaaYEoasQeyMg/6Zg2N0hJOyPmlIRNdhrMTGbndno+BEn3kE/cm9dmV XbUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680302464; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ky6AxF8g0ljHHOpkdKtrXmEp0s3Co4ZyxqzKkbiODjo=; b=Mqz7NaH0Nm/PfUUJFdqbD7UknMvXU6vu3QvXY2qUnOiJd0UfusdFly1C3aZQxo7p5g 61Wof/h6auN5BBYzjy3FmGJm2s3cl02LAjbKUVfgzMqOwcAHidRQ+QyUnfHrbhna4MQq rfnaPrVWD68f6wVRYaRHYCwZSV/T2BXlFtruU9FNKln7laEf5yjiFMkvUDclQIL8+yQe TpH69FbWbt3DbNwh3egdLGNMg9sipALHsFMY2vrdkJjCyFAEsck3V6WP3sjV7KYvArFU 9vwUCuLxpAQ5rbhA5pZZnLT4SDVwi39gkPFtijoygqRSvESqGaUsZvo4IRcsL6vBI+IB PoAg== X-Gm-Message-State: AO0yUKWJJ8R2MrpQ80MNxJunCpPNH3WkKq0OGlb+e4Y4ZDXKnctuIvDd /CuxdHI+brfoZelOtMw7o0yRyUZMPDU= X-Google-Smtp-Source: AK7set/k/t4MMhHeZWrh2n0B9Kw+bXZyBfia4E+2Z8Ocn2Hua8gtGR1XlPnSrolc/3qFXStmZF65iA== X-Received: by 2002:a05:600c:3795:b0:3ed:a82d:dffb with SMTP id o21-20020a05600c379500b003eda82ddffbmr20431941wmr.40.1680302463669; Fri, 31 Mar 2023 15:41:03 -0700 (PDT) Received: from krug ([87.196.72.128]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b003dd1bd0b915sm11264984wmq.22.2023.03.31.15.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 15:41:03 -0700 (PDT) From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Fri, 31 Mar 2023 23:43:04 +0100 Message-ID: <87y1ncv8xz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, I'm reporting this bug to Emacs as suggested by Stefan. The original report by Jay Barra lives at https://github.com/joaotavora/eglot/issues/1193: A simpler reproduction can be achieved in this manner, with Emacs 28: HOME=3D`mktemp -d` && emacs -Q # ensure we have a blank ELPA package dir= ectly M-: (featurep 'project) ;; return nil M-x package-install RET eglot RET M-x find-library RET project RET M-: (featurep 'project) ;; returns t M-: (fboundp 'project-name) ;; return nil The last step is a bug because the 'project.el' now shown in the window, which _does_ contain 'project-name' is not the one that was loaded. Instead, Emacs's 28 built-in project.el 0.8.1 was loaded. Subsequent usage= of Eglot, which requires project 0.9.8, fails. Restarting Emacs fixes this. Stefan says there is some code in package.el to prevent this and unconditionally reload the newly installed project.el. But for some reason it's not being triggered. Jo=C3=A3o