From unknown Tue Jun 17 22:26:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53843: 27.2; unknown function used in flymake Resent-From: Nicolas Martyanoff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 53843@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164423847919098 (code B ref -1); Mon, 07 Feb 2022 12:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 12:54:39 +0000 Received: from localhost ([127.0.0.1]:41208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH3XT-0004xy-BV for submit@debbugs.gnu.org; Mon, 07 Feb 2022 07:54:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:49706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH3XP-0004xp-PL for submit@debbugs.gnu.org; Mon, 07 Feb 2022 07:54:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH3XN-0007Dl-9K for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:54:34 -0500 Received: from [2a00:1450:4864:20::42f] (port=40673 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH3XI-00068E-AR for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:54:31 -0500 Received: by mail-wr1-x42f.google.com with SMTP id s18so24587619wrv.7 for ; Mon, 07 Feb 2022 04:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=ZNpUFvsfqyHJORm4S9Lkyi33089bZJiaqN6dlkisR9E=; b=brJRHdD4pP3mWMCySOQpP+BF83IwpOWqBW7I4TCPYGsxGjkJk1rLyLLo1nKUuRAHUG A+rwIfGx7Epc4IqkOOdACwN9IQLITS4d6L+mTmFICueW5tl4H7nLdnthwsDF0csBOASQ AQks+H3EAKYLGZjcwhXKp+joOXWc560xXOfckdtArYvdJ41ep8GsuCGK/dyiqgz2+xue LFNJRgYb2Fe0VupOK2abf8Tg+q95qgb6s/HUFTnPmUIJOkt5wWGualITc+kA21J6b+rT nDqh2f2onCgME1aSTviqkBw6mQ+1y3hAfNaAO1kLe+v8yw2p/b7sV4NuOZMASSqGWB3M 21gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=ZNpUFvsfqyHJORm4S9Lkyi33089bZJiaqN6dlkisR9E=; b=SAWWhe4JCE1gqP0KDoc1vc2BbjpftOsr4EDzxFH5YREBvgPSxY7qNrguqKPv1vKElI mdaWdfp/cpPyHZey4tT2ysbZTUU2OenmAFZ4vPck1OBMv4ENhMz8bUMbHrPPyMZphVrJ uhu9K9KKs56gqsM5YowDeoLaee0+DF54c1gmmOTk6HkCT5V7L+J5lNjDGny4iD7Xc7mJ VSFDWekO2yA04FR8lsQ5yUfxHPqzH6W7zfqV4LF7OlTQBFVkKpiZSpJ4Cx+jKR16tK1i QZ7VyNFWGvig720RIFxg7z40jDgfGIkSmEknxCuQvdIR1me3rTOJT9X5uXTlNfn51Mdy WBlg== X-Gm-Message-State: AOAM5331zPTH4MpCW1VJxiIKI3SZctCI/YeUOXIwlvLSaeLYd0XbACnP KJgjE9jL25StlNIIuXC9QwbGI9RzBQtFIg== X-Google-Smtp-Source: ABdhPJyTtTDN0BaKt2gA111ntaY62oi7jfGyG/OE0SjwwNq4gUDMeER+5HMLC9HmeowaJ0wfl+/0Cw== X-Received: by 2002:adf:ff83:: with SMTP id j3mr10231793wrr.618.1644238464141; Mon, 07 Feb 2022 04:54:24 -0800 (PST) Received: from valhala (2a01cb0405243e00927ff8b354d83417.ipv6.abo.wanadoo.fr. [2a01:cb04:524:3e00:927f:f8b3:54d8:3417]) by smtp.gmail.com with ESMTPSA id y17sm1051145wma.5.2022.02.07.04.54.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 04:54:23 -0800 (PST) From: Nicolas Martyanoff Date: Mon, 07 Feb 2022 13:54:23 +0100 Message-ID: <87zgn24z28.fsf@valhala.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=khaelin@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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 (--) Hi, Using eglot with python-mode (with pyright) causes regular errors involving flymake caused by calls to an unknown "string-replace" function: Debugger entered--Lisp error: (void-function string-replace) string-replace("%" "%%" "resource.py") flymake--log-1(:warning flymake "Invalid region line=%s col=%s" 35 40) flymake-diag-region(# 35 40) #f(compiled-function (arg1 arg2 &rest rest) "Handle notification publishDiagnostics." #)(# textDocument/publishDiagnostics :uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]) apply(#f(compiled-function (arg1 arg2 &rest rest) "Handle notification publishDiagnostics." #) # textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) eglot-handle-notification(# textDocument/publishDiagnostics :uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]) apply(eglot-handle-notification # textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) #f(compiled-function (server method params) #)(# textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) jsonrpc-connection-receive(# (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]))) jsonrpc--process-filter(#> "Content-Length: 477\15\n\15\n{\"jsonrpc\":\"2.0\",\"method\":\"...") I cannot find any mention to a string-replace elisp function, is that an error in flymake or is there a missing dependency? Regards, -- Nicolas Martyanoff http://snowsyn.net khaelin@gmail.com From unknown Tue Jun 17 22:26:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53843: 27.2; unknown function used in flymake Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 14:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Martyanoff Cc: 53843@debbugs.gnu.org Received: via spool by 53843-submit@debbugs.gnu.org id=B53843.164424396127898 (code B ref 53843); Mon, 07 Feb 2022 14:26:02 +0000 Received: (at 53843) by debbugs.gnu.org; 7 Feb 2022 14:26:01 +0000 Received: from localhost ([127.0.0.1]:41336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH4xt-0007Fq-Ai for submit@debbugs.gnu.org; Mon, 07 Feb 2022 09:26:01 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:42526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH4xr-0007Fc-HU for 53843@debbugs.gnu.org; Mon, 07 Feb 2022 09:25:59 -0500 Received: by mail-wr1-f51.google.com with SMTP id h6so6397957wrb.9 for <53843@debbugs.gnu.org>; Mon, 07 Feb 2022 06:25:59 -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; bh=v0TeFiH0LDp9Fh9D69YlQJ7QXQMcwoeO0vs5fpUcrQ4=; b=GPDAOi9fktioXOkG+VYlSFV3M8XNha6tYzwVmMEZt+45WHjB9uooQzGIsjWjJWAqMp +uEd7Dwey9Hk/rySweHuimr7nv6y8dD63bAedunn3VSJ0IsBCCQfSWUNuSurAsmxxg81 fslnfqnVsRpk/BgcD/JK+u3WTz2F0/WscoQJjic15PF+aHR3qOWbwU5Ehqrkn638rtRO 69vh+S8xpZ0Q+SWXt+UH8sbHb68cZkin6tySDcwIjXO9lWRw73HKQwfbZAjpIUZprW/s U8jpK2tyYpeZNK7RHe1/gKa4OjDDaLx8+qtIwbU5e+3M8ZzcCcNTzGndpI/SLRDlyY5A uE+g== 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; bh=v0TeFiH0LDp9Fh9D69YlQJ7QXQMcwoeO0vs5fpUcrQ4=; b=jYZ+bxhQKoHlJLIAyNqSOJmBw3DHBm2nT8fQD/o/eLPFOIYgFBGO6BweuGkTJs7QmZ 9iTK59FHUk+qInDw1mhaiaov/2Ude12v1bJDfnMT/dm/fducnid05Cumm1UzFgKWaYmu y3EqqgFjSHqcjVXJZScOPf2PCb+4HTWk6qoZSOtAa79qeHRz3VykJD2oMm+8bFfjWYY3 useYdv4vV/mriQjUCeYSlzG6FTSbsro0LM/nwyQcPJMXsoP5FqlcZPkO5Cip1NHYIB5l kUetI00c71XYR8lOp6gUUflyX/d5hYSF9GdgLJ3dvYQEviX05yuDPqYiltTpLpiVKShu 80xw== X-Gm-Message-State: AOAM530XhJRqVCrxN8XAUx2MFLRXwS28M39V3yMoF42Ci3RUBXRmvqO0 grzi2ml9sErA3io40ed67YQ7g+gL84g= X-Google-Smtp-Source: ABdhPJwU7NptAMnEjMFVqUmzMIYFHGiJCpRz5K7BtlMI0N1tgXsGcmZLykEj9hTtrmwrxac4gkq08g== X-Received: by 2002:a05:6000:2c1:: with SMTP id o1mr10333890wry.258.1644243953314; Mon, 07 Feb 2022 06:25:53 -0800 (PST) Received: from rltb ([2a01:e0a:3f3:fb50:ae9c:f7e1:47ab:fed]) by smtp.gmail.com with ESMTPSA id u8sm8550661wmn.27.2022.02.07.06.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 06:25:52 -0800 (PST) From: Robert Pluim References: <87zgn24z28.fsf@valhala.localdomain> Date: Mon, 07 Feb 2022 15:25:51 +0100 In-Reply-To: <87zgn24z28.fsf@valhala.localdomain> (Nicolas Martyanoff's message of "Mon, 07 Feb 2022 13:54:23 +0100") Message-ID: <877da692j4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -1.0 (-) >>>>> On Mon, 07 Feb 2022 13:54:23 +0100, Nicolas Martyanoff said: Nicolas> Hi, Nicolas> Using eglot with python-mode (with pyright) causes regular errors Nicolas> involving flymake caused by calls to an unknown "string-replace" Nicolas> function: `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"))) Robert -- From unknown Tue Jun 17 22:26:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53843: 27.2; unknown function used in flymake Resent-From: Nicolas Martyanoff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Pluim Cc: Nicolas Martyanoff , 53843@debbugs.gnu.org Received: via spool by 53843-submit@debbugs.gnu.org id=B53843.164424541530533 (code B ref 53843); Mon, 07 Feb 2022 14:51:01 +0000 Received: (at 53843) by debbugs.gnu.org; 7 Feb 2022 14:50:15 +0000 Received: from localhost ([127.0.0.1]:41398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5LK-0007wP-Nv for submit@debbugs.gnu.org; Mon, 07 Feb 2022 09:50:14 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:44973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5LG-0007w5-0Y for 53843@debbugs.gnu.org; Mon, 07 Feb 2022 09:50:13 -0500 Received: by mail-wr1-f54.google.com with SMTP id k18so25234837wrg.11 for <53843@debbugs.gnu.org>; Mon, 07 Feb 2022 06:50:09 -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 :user-agent:mime-version; bh=q6PE/Ypb9wM3iFcCUwfOuSrjK5RJq00YUuJ5rDhGSJo=; b=kMAp2eS3Z+C9I87/F7lNUH/9s1E1UQPH3sie9Hc/cjbp82OB/aFiVJHR/aEDV3LHHh pVFItb5Zf/xdoYBWKm9+2FwGUG7v6b3io1DD+pz90twYg+G711tPYh6NmdRXu0dwd0zQ UCy1J9eAItOtcQ/WO4Cvfc6nBCMJXRTu663acqgKgwDctRH47YLZElUneorb3WKVcQev 214rfOffHNCrkTFvL70aGqgCZmUDpRbudhkwGhqsTXYud0vDsd+3ZW/By5Q/g1zYsQ+8 FDFuPskJQLMR+FXO10GYqMf6MOLnXSsT1sOTVlj4Ct3XBIYxZ10N/9E2ERt+wtIIarKP tyXw== 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:user-agent:mime-version; bh=q6PE/Ypb9wM3iFcCUwfOuSrjK5RJq00YUuJ5rDhGSJo=; b=Vo2ykr8C8/03tiJdFmbbdJgEShnRO/gL+DthChh+cLP/Itwc9C/9m2IRW0oqpUbDKk raonXVXfwPgg3WdPgiQ1oKtMi8SfSpkkf9LtPVxT5B4Vvnn4CoyZ6uzHRNWiiF37nCW5 gI0gmcgCjX8QGwdGilsNJFzV8gtuicqvM3GtOjKjxLrZXJK7XMuVNwkLbmZ5UwlIV2jB RXKN+KmIUpXhg0IEh7e39PE2idbjjI5v1xTFJCORFyR3K306AJtuIhCSAUz2Uw6pwa8g bKXcqROMWlFxQN7cXsGJExrSssZMrDfAAFePiLqbhIYyEPbdPStrwHgZ8WirJH1QmOMw EZXA== X-Gm-Message-State: AOAM532fohqR+ezJyC3LsWuw+d90jHQf+TUNCdyq9ZF2AeCXiqKuloEB PIKOFKCqOsStTpC8EsYcNqoU+P6yWS85Og== X-Google-Smtp-Source: ABdhPJy6OK7iC/R9Wjd+UurqOJHD2fLYVkqb0ymqtMPzX7vsEeukJIwu9wiWl5DrR+D3DkQ+LDsqoQ== X-Received: by 2002:a5d:6041:: with SMTP id j1mr5812639wrt.47.1644245403873; Mon, 07 Feb 2022 06:50:03 -0800 (PST) Received: from valhala (2a01cb0405243e00927ff8b354d83417.ipv6.abo.wanadoo.fr. [2a01:cb04:524:3e00:927f:f8b3:54d8:3417]) by smtp.gmail.com with ESMTPSA id t17sm10210803wrs.10.2022.02.07.06.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 06:50:03 -0800 (PST) From: Nicolas Martyanoff References: <87zgn24z28.fsf@valhala.localdomain> <877da692j4.fsf@gmail.com> Date: Mon, 07 Feb 2022 15:50:03 +0100 In-Reply-To: <877da692j4.fsf@gmail.com> (Robert Pluim's message of "Mon, 07 Feb 2022 15:25:51 +0100") Message-ID: <87leymzq78.fsf@valhala.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -1.0 (-) Robert Pluim writes: >>>>>> On Mon, 07 Feb 2022 13:54:23 +0100, Nicolas Martyanoff said: > > Nicolas> Hi, > > Nicolas> Using eglot with python-mode (with pyright) causes regular errors > Nicolas> involving flymake caused by calls to an unknown "string-replace" > Nicolas> function: > > `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"))) I am using eglot which references a flymake copy from https://github.com/emacs-straight/flymake. The author of eglot told me to report the bug here, but I guess the problem comes from eglot (which requires 26.1+) using a copy of flymake which requires (28.1+). I do not understand why emacs loads this copy of flymake without signaling an error given the constraint in Package-Requires, or why is eglot using a copy of flymake altogether, but these problems are unrelated to string-replace. Thank you for the information anyway! Regards, -- Nicolas Martyanoff http://snowsyn.net khaelin@gmail.com From unknown Tue Jun 17 22:26:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53843: 27.2; unknown function used in flymake 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 X-GNU-PR-Keywords: To: Nicolas Martyanoff Cc: 53843@debbugs.gnu.org Received: via spool by 53843-submit@debbugs.gnu.org id=B53843.16442463421517 (code B ref 53843); Mon, 07 Feb 2022 15:06:01 +0000 Received: (at 53843) by debbugs.gnu.org; 7 Feb 2022 15:05:42 +0000 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 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 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) 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) From: Robert Pluim References: <87zgn24z28.fsf@valhala.localdomain> <877da692j4.fsf@gmail.com> <87leymzq78.fsf@valhala.localdomain> Date: Mon, 07 Feb 2022 16:05:18 +0100 In-Reply-To: <87leymzq78.fsf@valhala.localdomain> (Nicolas Martyanoff's message of "Mon, 07 Feb 2022 15:50:03 +0100") Message-ID: <8735ku90pd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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: -1.0 (-) >>>>> 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 From unknown Tue Jun 17 22:26:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53843: 27.2; unknown function used in flymake Resent-From: Nicolas Martyanoff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Pluim Cc: Nicolas Martyanoff , 53843@debbugs.gnu.org Received: via spool by 53843-submit@debbugs.gnu.org id=B53843.16442477263733 (code B ref 53843); Mon, 07 Feb 2022 15:29:01 +0000 Received: (at 53843) by debbugs.gnu.org; 7 Feb 2022 15:28:46 +0000 Received: from localhost ([127.0.0.1]:43252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5wc-0000y8-Kj for submit@debbugs.gnu.org; Mon, 07 Feb 2022 10:28:46 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:40920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH5wZ-0000xr-48 for 53843@debbugs.gnu.org; Mon, 07 Feb 2022 10:28:45 -0500 Received: by mail-wr1-f50.google.com with SMTP id s18so25466921wrv.7 for <53843@debbugs.gnu.org>; Mon, 07 Feb 2022 07:28:43 -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 :user-agent:mime-version:content-transfer-encoding; bh=P36/tCl0dkKaIX/1ALSoNgkansMANDiYEmbHWheyZl4=; b=ct6JT5alKu3Ys2tLr1mgB+0L3ASJlVPfOsQ78i1+gPdpPUZV4hFxIcMy+7VB5R0WBK JLCSmPC7EwaXZHo5mthbGRio2otyfdB2WP5meUyLaRhPEBf9a8dYkZE4ntSGWzwBsQG9 7q1puEZCnutwAp1+qcgPYhDXFpbg1otbMS1es6Io2nenSxt4EasPY9gVDdE8QfPYW1aT 9+Qxjzq5X8qniMrn9aWO3jusBQXUb4jsTbRWeP8VPuTol3QGwljuan8KsNKXNbu3Mc/2 kMZ21S/rss37pgjdsA/w/yJWfZVDtrZyMqBlV97QayUTg4U+iXLUWPUgaCQMIRumWyfY J4Mg== 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:user-agent:mime-version:content-transfer-encoding; bh=P36/tCl0dkKaIX/1ALSoNgkansMANDiYEmbHWheyZl4=; b=t9UhhgzVLtmNVb0Dmf5BmtXsfNwk479YE+9HWkiiIrdN21ImDdgeRg+jS+GETiQqvx fW0riaj1NdKUOEOFLWJmoRqAgE9X/v8XZNDTsvBEObl9hmMh4PGwi5jE9XK/MfNDkSjV N1cq3U/17ClTTdapudJZJP8GYHTwcCK7wFEBKqLuxEq0o51p3+awWXjy02NFcWa965oA u255WURTwKl4grRsa398ctdE34dj0ERBgD1uHwnjH12ATsDEC/6sK3pHr6odmIutotZu hDVPRAXfcBIs/VVQMhvJsIi5ym3QGVEyf/yM43qKA8bwh47ICYZDsFCzGdh+E+zoCTC8 1wqg== X-Gm-Message-State: AOAM53064TJ4uRP+H8XQ6CjcJZeB9f8DyCV0vCbcJHFGFksGEzmO4v+U x4wOc7mGqB4UzKQjSqGr/wrc6A1rpKggmw== X-Google-Smtp-Source: ABdhPJyHksLEIyWA4Mx3kINd1SjkbTDKnk6fV89/32ZSjJZsGv4z6i4n62aMCpfnAXzzSHCxkK6RBg== X-Received: by 2002:a5d:6d04:: with SMTP id e4mr10796423wrq.279.1644247717217; Mon, 07 Feb 2022 07:28:37 -0800 (PST) Received: from valhala (2a01cb0405243e00927ff8b354d83417.ipv6.abo.wanadoo.fr. [2a01:cb04:524:3e00:927f:f8b3:54d8:3417]) by smtp.gmail.com with ESMTPSA id bd25sm5275783wmb.6.2022.02.07.07.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 07:28:36 -0800 (PST) From: Nicolas Martyanoff References: <87zgn24z28.fsf@valhala.localdomain> <877da692j4.fsf@gmail.com> <87leymzq78.fsf@valhala.localdomain> <8735ku90pd.fsf@gmail.com> Date: Mon, 07 Feb 2022 16:28:36 +0100 In-Reply-To: <8735ku90pd.fsf@gmail.com> (Robert Pluim's message of "Mon, 07 Feb 2022 16:05:18 +0100") Message-ID: <8735kuzoez.fsf@valhala.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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: -1.0 (-) Robert Pluim writes: >>>>>> 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 e= rrors > Nicolas> involving flymake caused by calls to an unknown "string-repl= ace" > Nicolas> function: > >>=20 > >> `string-replace' was added in emacs-28, so it looks like your flym= ake > >> 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. Yes, I finally found out that the problem comes from eglot: it requires a very recent version of flymake; this causes straight.el to install flymake from this exterior repository, and this version requires Emacs 28.1. Sorry for the noise on the bug tracker, the problems does not come from Ema= cs. > As a workaround you could copy the definition of `string-replace' from > emacs-28's subr.el. I did not think about that, good idea! Thank you so much. Regards, --=20 Nicolas Martyanoff http://snowsyn.net khaelin@gmail.com From unknown Tue Jun 17 22:26:41 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Martyanoff Subject: bug#53843: closed (Re: bug#53843: 27.2; unknown function used in flymake) Message-ID: References: <87y22m7kb0.fsf@gmail.com> <87zgn24z28.fsf@valhala.localdomain> X-Gnu-PR-Message: they-closed 53843 X-Gnu-PR-Package: emacs Reply-To: 53843@debbugs.gnu.org Date: Mon, 07 Feb 2022 15:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1644248762-5506-1" This is a multi-part message in MIME format... ------------=_1644248762-5506-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53843: 27.2; unknown function used in flymake which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53843@debbugs.gnu.org. --=20 53843: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53843 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1644248762-5506-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53843-done) by debbugs.gnu.org; 7 Feb 2022 15:45:03 +0000 Received: from localhost ([127.0.0.1]:43291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH6CM-0001PF-JX for submit@debbugs.gnu.org; Mon, 07 Feb 2022 10:45:02 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:35508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH6CJ-0001OS-3p for 53843-done@debbugs.gnu.org; Mon, 07 Feb 2022 10:45:00 -0500 Received: by mail-wr1-f49.google.com with SMTP id m5so8289428wrb.2 for <53843-done@debbugs.gnu.org>; Mon, 07 Feb 2022 07:44:59 -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; bh=HN6yKBO84gQRLYv0IvvyIl10UHTszvvzbXcbF87XS/w=; b=qG8hQ+oEwLHNzQLca2zXUrjUvea3M4GZX9O3J1Gq9GcDAwPZVRmffo4v6jrbXsWvaX rioYG9dMeL7da4yJ2m7danFVMgaGtjxb6DhJUc5db9AVKC1BNd+KH8IRC4c2zUUr+AWv wUCi473FPwioLYs/KymYiDDwaIinEdYMLzznuo+agLbbAMIOsoJIxt+wplL+JFRnUlsW IUPxcR76wUu93d2WlKiIC0R5T98HxS3fDT0MmcF0PbSjVMaQ+oX827lUjZbK7qlhlTnm VyHCUCmeQLFL9rOIPdYWIshlY4AHfQlMkucSmI/lRRKbms/u1X1o9nqrE/iKctONhIbS jrkg== 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; bh=HN6yKBO84gQRLYv0IvvyIl10UHTszvvzbXcbF87XS/w=; b=bLTCVWoxnNCiIfbq2HE1zPBBlSzGO9V2G7xt9gYSY6pA0s379KGVnidwBzVky6yGzk 9XYBWSeYzU/XYFFgWeTZHdRpfpNh5O/D/KYBcf15Cku1jKAejUzcjS4vmNfp9WlH/neQ j5IzNnnRxtD6+PF6S1/V9crukmzCGpc6X+LnDK6ofoxbGCLk5mFbg2VdcUgewAXT7Zmv jq1PSEh9sPB7pH5Bt4z76khBk2Y1KQxmyYTLt4FPaK/tozqjoQ4+zlncoOEIusiosnul PBvDz4CXDNbefobVJrpt5VFwWQI8rV958x4jwDhkVdc8PD/1jJocZ/eaI7TnQL6wSn6H /ngg== X-Gm-Message-State: AOAM530zj4utQQtzDAKXbQJj7Ukafl2OU7UipJHovmeS7VFkFBpIxAwq 2riavsRPKib8dHRW200LXi5hfUsc1YM= X-Google-Smtp-Source: ABdhPJz7KC45UhOk1dKPjC9x5OAjSGtSv0wJYlzGC0HhnP/9V9gG2PsKj6Tzeh3oTwGvM0luxeqJQw== X-Received: by 2002:a05:6000:15c5:: with SMTP id y5mr78590wry.94.1644248692946; Mon, 07 Feb 2022 07:44:52 -0800 (PST) Received: from rltb ([2a01:e0a:3f3:fb50:ae9c:f7e1:47ab:fed]) by smtp.gmail.com with ESMTPSA id j13sm10315553wrw.116.2022.02.07.07.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 07:44:52 -0800 (PST) From: Robert Pluim To: Nicolas Martyanoff Subject: Re: bug#53843: 27.2; unknown function used in flymake References: <87zgn24z28.fsf@valhala.localdomain> <877da692j4.fsf@gmail.com> <87leymzq78.fsf@valhala.localdomain> <8735ku90pd.fsf@gmail.com> <8735kuzoez.fsf@valhala.localdomain> Date: Mon, 07 Feb 2022 16:44:51 +0100 In-Reply-To: <8735kuzoez.fsf@valhala.localdomain> (Nicolas Martyanoff's message of "Mon, 07 Feb 2022 16:28:36 +0100") Message-ID: <87y22m7kb0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53843-done Cc: 53843-done@debbugs.gnu.org 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: -1.0 (-) >>>>> On Mon, 07 Feb 2022 16:28:36 +0100, Nicolas Martyanoff said: Nicolas> Sorry for the noise on the bug tracker, the problems does not come from Emacs. No worries, closing. Robert -- ------------=_1644248762-5506-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 12:54:39 +0000 Received: from localhost ([127.0.0.1]:41208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH3XT-0004xy-BV for submit@debbugs.gnu.org; Mon, 07 Feb 2022 07:54:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:49706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH3XP-0004xp-PL for submit@debbugs.gnu.org; Mon, 07 Feb 2022 07:54:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH3XN-0007Dl-9K for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:54:34 -0500 Received: from [2a00:1450:4864:20::42f] (port=40673 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH3XI-00068E-AR for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:54:31 -0500 Received: by mail-wr1-x42f.google.com with SMTP id s18so24587619wrv.7 for ; Mon, 07 Feb 2022 04:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=ZNpUFvsfqyHJORm4S9Lkyi33089bZJiaqN6dlkisR9E=; b=brJRHdD4pP3mWMCySOQpP+BF83IwpOWqBW7I4TCPYGsxGjkJk1rLyLLo1nKUuRAHUG A+rwIfGx7Epc4IqkOOdACwN9IQLITS4d6L+mTmFICueW5tl4H7nLdnthwsDF0csBOASQ AQks+H3EAKYLGZjcwhXKp+joOXWc560xXOfckdtArYvdJ41ep8GsuCGK/dyiqgz2+xue LFNJRgYb2Fe0VupOK2abf8Tg+q95qgb6s/HUFTnPmUIJOkt5wWGualITc+kA21J6b+rT nDqh2f2onCgME1aSTviqkBw6mQ+1y3hAfNaAO1kLe+v8yw2p/b7sV4NuOZMASSqGWB3M 21gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=ZNpUFvsfqyHJORm4S9Lkyi33089bZJiaqN6dlkisR9E=; b=SAWWhe4JCE1gqP0KDoc1vc2BbjpftOsr4EDzxFH5YREBvgPSxY7qNrguqKPv1vKElI mdaWdfp/cpPyHZey4tT2ysbZTUU2OenmAFZ4vPck1OBMv4ENhMz8bUMbHrPPyMZphVrJ uhu9K9KKs56gqsM5YowDeoLaee0+DF54c1gmmOTk6HkCT5V7L+J5lNjDGny4iD7Xc7mJ VSFDWekO2yA04FR8lsQ5yUfxHPqzH6W7zfqV4LF7OlTQBFVkKpiZSpJ4Cx+jKR16tK1i QZ7VyNFWGvig720RIFxg7z40jDgfGIkSmEknxCuQvdIR1me3rTOJT9X5uXTlNfn51Mdy WBlg== X-Gm-Message-State: AOAM5331zPTH4MpCW1VJxiIKI3SZctCI/YeUOXIwlvLSaeLYd0XbACnP KJgjE9jL25StlNIIuXC9QwbGI9RzBQtFIg== X-Google-Smtp-Source: ABdhPJyTtTDN0BaKt2gA111ntaY62oi7jfGyG/OE0SjwwNq4gUDMeER+5HMLC9HmeowaJ0wfl+/0Cw== X-Received: by 2002:adf:ff83:: with SMTP id j3mr10231793wrr.618.1644238464141; Mon, 07 Feb 2022 04:54:24 -0800 (PST) Received: from valhala (2a01cb0405243e00927ff8b354d83417.ipv6.abo.wanadoo.fr. [2a01:cb04:524:3e00:927f:f8b3:54d8:3417]) by smtp.gmail.com with ESMTPSA id y17sm1051145wma.5.2022.02.07.04.54.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 04:54:23 -0800 (PST) From: Nicolas Martyanoff To: bug-gnu-emacs@gnu.org Subject: 27.2; unknown function used in flymake Date: Mon, 07 Feb 2022 13:54:23 +0100 Message-ID: <87zgn24z28.fsf@valhala.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=khaelin@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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 (--) Hi, Using eglot with python-mode (with pyright) causes regular errors involving flymake caused by calls to an unknown "string-replace" function: Debugger entered--Lisp error: (void-function string-replace) string-replace("%" "%%" "resource.py") flymake--log-1(:warning flymake "Invalid region line=%s col=%s" 35 40) flymake-diag-region(# 35 40) #f(compiled-function (arg1 arg2 &rest rest) "Handle notification publishDiagnostics." #)(# textDocument/publishDiagnostics :uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]) apply(#f(compiled-function (arg1 arg2 &rest rest) "Handle notification publishDiagnostics." #) # textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) eglot-handle-notification(# textDocument/publishDiagnostics :uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]) apply(eglot-handle-notification # textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) #f(compiled-function (server method params) #)(# textDocument/publishDiagnostics (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))])) jsonrpc-connection-receive(# (:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params (:uri "[REMOVED]" :version 227 :diagnostics [(:range (:start (:line 16 :character 5) :end (:line 16 :character 25)) :message "Import \"eventline.api_object\" could not be resolve..." :severity 1 :code "reportMissingImports" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc...")) (:range (:start (:line 34 :character 40) :end (:line 34 :character 52)) :message "\"ResourceSpec\" is not defined" :severity 1 :code "reportUndefinedVariable" :source "Pyright" :codeDescription (:href "https://github.com/microsoft/pyright/blob/main/doc..."))]))) jsonrpc--process-filter(#> "Content-Length: 477\15\n\15\n{\"jsonrpc\":\"2.0\",\"method\":\"...") I cannot find any mention to a string-replace elisp function, is that an error in flymake or is there a missing dependency? Regards, -- Nicolas Martyanoff http://snowsyn.net khaelin@gmail.com ------------=_1644248762-5506-1--