Skip to content

eglot + ediff-regions-wordwise errors out #116

Closed
@jojojames

Description

(setq package-enable-at-startup nil
      package-archives
      '(("melpa" . "http://melpa.milkbox.net/packages/")
        ("gnu" . "http://elpa.gnu.org/packages/")))

(require 'package)
(package-initialize)
(package-install 'eglot)

;; Visit python file.
;; M-x toggle-debug-on-error
;; M-x eglot
;; M-x ediff-regions-wordwise
;; Move cursor around to trigger eldoc.
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  file-truename(nil)
  eglot--path-to-uri(nil)
  eglot--TextDocumentIdentifier()
  eglot--TextDocumentPositionParams()
  eglot-eldoc-function()
  apply(eglot-eldoc-function nil)
  #f(advice-wrapper :before-until #f(advice-wrapper :before-until #f(compiled-function (&rest args) #<bytecode 0x406be941>) python-eldoc-function) eglot-eldoc-function)()
  eldoc-print-current-symbol-info()
  #f(compiled-function () #<bytecode 0x400def01>)()
  apply(#f(compiled-function () #<bytecode 0x400def01>) nil)
  timer-event-handler([t 0 0 500000 nil #f(compiled-function () #<bytecode 0x400def01>) nil idle 0])
  recursive-edit()
  ediff-clone-buffer-for-region-comparison("TestPython.py" "-Region.A-")
  ediff-regions-wordwise("TestPython.py" "TestPython.py")
  funcall-interactively(ediff-regions-wordwise "TestPython.py" "TestPython.py")
  call-interactively(ediff-regions-wordwise record nil)
  command-execute(ediff-regions-wordwise record)
  execute-extended-command(nil "ediff-regions-wordwise" "ediff-regions-wo")
  funcall-interactively(execute-extended-command nil "ediff-regions-wordwise" "ediff-regions-wo")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

;; M-x kill-buffer

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  file-truename(nil)
  eglot--path-to-uri(nil)
  eglot--TextDocumentIdentifier()
  eglot--signal-textDocument/didClose()
  kill-buffer("TestPython.py-Region.A-")
  funcall-interactively(kill-buffer "TestPython.py-Region.A-")
  call-interactively(kill-buffer nil nil)
  command-execute(kill-buffer)

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions