Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aadi58002 opened this issue Jul 7, 2024 · 1 comment
Open

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

aadi58002 opened this issue Jul 7, 2024 · 1 comment

Comments

@aadi58002
Copy link

aadi58002 commented Jul 7, 2024

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

@aadi58002 aadi58002 changed the title Void-variable:- Void-variable - eldoc-doc-buffer-separator Jul 7, 2024
@casouri
Copy link
Owner

casouri commented Jan 7, 2025

Thanks! It seems that eldoc-doc-buffer-separator is only added in Emacs 30. I added a blank definition for it in eldoc-box.el. That should fix the compiling error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants