casouri / eldoc-box

childframe doc for eglot and anything that uses eldoc
361 stars 26 forks source link

Void-variable - eldoc-doc-buffer-separator #104

Open aadi58002 opened 4 months ago

aadi58002 commented 4 months ago

When trying to run eldoc-box-help-at-point there is the following error.

Debugger entered--Lisp error: (void-variable eldoc-doc-buffer-separator)
  eldoc-box--help-at-point-async-update((("```typescript\nconst error: string\n```" :buffer t)) nil)
  run-hook-with-args(eldoc-box--help-at-point-async-update (("```typescript\nconst error: string\n```" :buffer t)) nil)
  #f(compiled-function () #<bytecode 0x19ed975c2cb9621b>)()
  #f(compiled-function (string &rest plist) #<bytecode 0x138508d9b11649a6>)("```typescript\nconst error: string\n```" :buffer t)
  #f(compiled-function (jsonrpc-lambda-elem12) #<bytecode -0x63476a9653c387b>)((:contents (:kind "markdown" :value "\n```typescript\nconst error: string\n```\n") :range (:start (:line 50 :character 9) :end (:line 50 :character 14))))
  jsonrpc-connection-receive(#<eglot-lsp-server eglot-lsp-server-1012c5a0> (:jsonrpc "2.0" :id 13 :result (:contents (:kind "markdown" :value "\n```typescript\nconst error: string\n```\n") :range (:start (:line 50 :character 9) :end (:line 50 :character 14)))))
  jsonrpc--process-filter(#<process EGLOT (faculty-dashboard/(tsx-ts-mode js-mode js-ts-mode typescript-ts-mode typescript-mode))> "Content-Length: 39\15\n\15\n{\"jsonrpc\":\"2.0\",\"id\":12,\"re...")

It might been a byte compile issue.So on trying to recompile. It gave the below warning.

Compiling file /home/aditya-yadav/.config/emacs/elpaca/builds/eldoc-box/eldoc-box.el at Sun Jul  7 08:35:27 2024
Entering directory ‘/home/aditya-yadav/.config/emacs/elpaca/builds/eldoc-box/’

In eldoc-box--help-at-point-async-update:
eldoc-box.el:302:28: Warning: reference to free variable
    ‘eldoc-doc-buffer-separator’

Off-topic: Thanks for the great package and contributing to emacs ecosystem