From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Martyanoff Newsgroups: gmane.emacs.bugs Subject: bug#53843: 27.2; unknown function used in flymake Date: Mon, 07 Feb 2022 13:54:23 +0100 Message-ID: <87zgn24z28.fsf@valhala.localdomain> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: 53843@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 14:33:13 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 1nH48m-00010O-7M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 14:33:12 +0100 Original-Received: from localhost ([::1]:50622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH48k-0005mW-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 08:33:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH3Xt-0007J6-1I for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:55:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH3Xq-0006Bb-Jz for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:55:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nH3Xq-0004yj-IL for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 07:55:02 -0500 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164423847919098 (code B ref -1); Mon, 07 Feb 2022 12:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 12:54:39 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:226242 Archived-At: 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