From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#53843: 27.2; unknown function used in flymake Date: Mon, 07 Feb 2022 16:05:18 +0100 Message-ID: <8735ku90pd.fsf@gmail.com> References: <87zgn24z28.fsf@valhala.localdomain> <877da692j4.fsf@gmail.com> <87leymzq78.fsf@valhala.localdomain> 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="5609"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53843@debbugs.gnu.org To: Nicolas Martyanoff Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 16:26:47 2022 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 1nH5uh-0001Gv-PE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 16:26:47 +0100 Original-Received: from localhost ([::1]:52586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH5ug-0003ME-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 10:26:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH5bE-0004lS-RG for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 10:06:41 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH5ab-00052O-Th for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 10:06:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nH5ab-0000Oy-Na for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 10:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53843 X-GNU-PR-Package: emacs Original-Received: via spool by 53843-submit@debbugs.gnu.org id=B53843.16442463421517 (code B ref 53843); Mon, 07 Feb 2022 15:06:01 +0000 Original-Received: (at 53843) by debbugs.gnu.org; 7 Feb 2022 15:05:42 +0000 Original-Received: from localhost ([127.0.0.1]:43208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5aH-0000OO-Tz for submit@debbugs.gnu.org; Mon, 07 Feb 2022 10:05:42 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:34599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5a1-0000Nx-R3 for 53843@debbugs.gnu.org; Mon, 07 Feb 2022 10:05:40 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id f17so25391879wrx.1 for <53843@debbugs.gnu.org>; Mon, 07 Feb 2022 07:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=k72Tl6nS5vnSs4jJGNFcVurwzi3ZNzTECFEzB75Ltts=; b=Wjv+cbeTmpq++Qvq9xGzfy+5Hkd/8lhyov7WmYpFNw9QC4f46acomWNlMfP4VG8jTF mqS4DzCiSQZOd1HuDMQCin44DZWTi6b9M4BsixL5UJivBJGbLHaYOU7W208PjjSWnb49 XKH4iaAK6KHvZTcyA1uBNDQ1xPh+Swob4GmfuWPXZT8dD1ASVh1SPuLEHx9711hLYZmv zcYJstRzQWAj9NWNiRBxy/OWGUE5rAW1o4YTqBjosCzOpXk6T3ors4FtOHetG1IJoJT+ FUlELnSN6Y96B81PPXg02H4GOb7OMgTzpDouNkXFPabKZ0WuRL0nI6DByjGoBR9DQU2f yclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=k72Tl6nS5vnSs4jJGNFcVurwzi3ZNzTECFEzB75Ltts=; b=YfcK5FvzoBB2gbb48WTf+/IdrsEQ/rBJwUH5PviaWCi1mlUgA6LcdaBSHIrelBYJG9 0YxOcd9YxDHaBT1TFROBH11ujJ0Vy+TkFg86xgUJghZfZDhmF3AxiNoY4Q5w66yJr287 YY6807rWiwWlf6QSSXdgpcw2XMKh4OwNe64Y5wOhcz/0Mv8guVtJO3jCzzJGAmUzUftE QD5hDdU/k1lBVbWXvWKBvvkxIuzbwbTuYCKuvzVU/WHWlZZFK8mXQLT/i/LWV2k9CeqU LAlCJmnHze6SCYDiCmd21n4T/euT/xV+SIS7UPyU5bBQZ+lAisc1/LlwUkCS0D4XIJd2 06lA== X-Gm-Message-State: AOAM530e2KFlTSdllxT1ov/KhEmDbfhKbs0M21mZhq5FccAm8DaA7rHY IUyt8fAmSJLO56u3hhu/XM7jUxXMtC0= X-Google-Smtp-Source: ABdhPJxreZCnsjcNKJu378AGRRzd17ztmACDXqqgHeXiD2J9KFvr+FJlw+x7Gg1S2vg0fK0AvesPoA== X-Received: by 2002:a05:6000:2c2:: with SMTP id o2mr10480812wry.30.1644246319256; Mon, 07 Feb 2022 07:05:19 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:ae9c:f7e1:47ab:fed]) by smtp.gmail.com with ESMTPSA id g6sm9949133wrq.97.2022.02.07.07.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 07:05:18 -0800 (PST) In-Reply-To: <87leymzq78.fsf@valhala.localdomain> (Nicolas Martyanoff's message of "Mon, 07 Feb 2022 15:50:03 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:226259 Archived-At: >>>>> On Mon, 07 Feb 2022 15:50:03 +0100, Nicolas Martyanoff said: Nicolas> Robert Pluim writes: >>>>>>> On Mon, 07 Feb 2022 13:54:23 +0100, Nicolas Martyanoff said: >>=20 Nicolas> Hi, >>=20 Nicolas> Using eglot with python-mode (with pyright) causes regular err= ors Nicolas> involving flymake caused by calls to an unknown "string-replac= e" Nicolas> function: >>=20 >> `string-replace' was added in emacs-28, so it looks like your flymake >> package needs adjusting. (the version shipped with emacs-28 has ;; >> Package-Requires: ((emacs "28.1") (eldoc "1.1.0") (project "0.7.1"))) Nicolas> I am using eglot which references a flymake copy from Nicolas> https://github.com/emacs-straight/flymake. Hmm, is that the canonical upstream? I don=CA=BCt think so. Nicolas> The author of eglot told me to report the bug here, but I gues= s the Nicolas> problem comes from eglot (which requires 26.1+) using a copy o= f flymake Nicolas> which requires (28.1+). Nicolas> I do not understand why emacs loads this copy of flymake witho= ut Nicolas> signaling an error given the constraint in Package-Requires, o= r why is Nicolas> eglot using a copy of flymake altogether, but these problems a= re Nicolas> unrelated to string-replace. I think Package-Requires is used by package.el to prevent you *installing* incompatible versions of packages, not running them. As a workaround you could copy the definition of `string-replace' from emacs-28's subr.el. Robert --=20