[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53843: 27.2; unknown function used in flymake
From: |
Nicolas Martyanoff |
Subject: |
bug#53843: 27.2; unknown function used in flymake |
Date: |
Mon, 07 Feb 2022 13:54:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
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(#<buffer resource.py> 35 40)
#f(compiled-function (arg1 arg2 &rest rest) "Handle notification
publishDiagnostics." #<bytecode 0x157aa550be09>)(#<eglot-lsp-server
eglot-lsp-server-157aa616aea0> 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." #<bytecode 0x157aa550be09>) #<eglot-lsp-server
eglot-lsp-server-157aa616aea0> 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(#<eglot-lsp-server eglot-lsp-server-157aa616aea0>
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 #<eglot-lsp-server
eglot-lsp-server-157aa616aea0> 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) #<bytecode
0x157aa616ae7d>)(#<eglot-lsp-server eglot-lsp-server-157aa616aea0>
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(#<eglot-lsp-server eglot-lsp-server-157aa616aea0>
(: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(#<process EGLOT (eventline/python-mode)<1>>
"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
- bug#53843: 27.2; unknown function used in flymake,
Nicolas Martyanoff <=