emacs-lsp/lsp-treemacs

Error (use-package): lsp-treemacs/:catch: Symbol’s value as variable is void: lsp-treemacs--make-ref-item

gnusuari0 opened this issue · 3 comments

This error is printed at Emacs initialization.
Backtrace:

Lisp error: (void-variable lsp-treemacs--make-ref-item)
  byte-code("\306\010\307\011!\310\311\n!\312\001!\211G\313\013\002^\314]\f\003^\314]\315\316\006\006%\210\317\320\321\322\005\323\321\324\015T\"\325\326##!\327\004\330\006\007\331\332\333\334\335\336\337\340\006\020!\341\"\342\343\344&\006\257\n\266\203$\207" [lsp-treemacs--make-ref-item filename start start-character end-character start-line lsp-defun (&Range :start (start &as &Position :line start-line :character start-character) :end (&Position :character end-character)) "Return a xref-item from a RANGE in FILENAME." lsp--position-to-point lsp-treemacs--extract-line add-face-text-property 0 highlight t :label s-trim format "%s %s" propertize "%s line" face lsp-details-face :key :point :icon-literal "" :ret-action make-byte-code 128 "\302\011!\210\300b\210\303\304!\207" vconcat vector [filename lsp-treemacs--open-file-in-mru run-hooks xref-after-jump-hook] 3 "\n\n(fn &rest _)" nil] 23)
  require(lsp-treemacs nil t)
  (not (require (quote lsp-treemacs) nil t))
  (if (not (require (quote lsp-treemacs) nil t)) (display-warning (quote use-package) (format "Cannot load %s" (quote lsp-treemacs)) :error) (condition-case err (progn (progn (req-package-handle-loading (quote (lsp-treemacs nil)) (function (lambda nil nil))) (req-package-loaded (quote (lsp-treemacs nil)))) t) ((debug error) (funcall use-package--warning5 :config err))))
  (progn (condition-case err (progn) ((debug error) (funcall use-package--warning5 :init err))) (if (not (require (quote lsp-treemacs) nil t)) (display-warning (quote use-package) (format "Cannot load %s" (quote lsp-treemacs)) :error) (condition-case err (progn (progn (req-package-handle-loading (quote (lsp-treemacs nil)) (function (lambda nil nil))) (req-package-loaded (quote (lsp-treemacs nil)))) t) ((debug error) (funcall use-package--warning5 :config err)))))
  (condition-case err (progn (condition-case err (progn) ((debug error) (funcall use-package--warning5 :init err))) (if (not (require (quote lsp-treemacs) nil t)) (display-warning (quote use-package) (format "Cannot load %s" (quote lsp-treemacs)) :error) (condition-case err (progn (progn (req-package-handle-loading (quote ...) (function ...)) (req-package-loaded (quote ...))) t) ((debug error) (funcall use-package--warning5 :config err))))) ((debug error) (funcall use-package--warning5 :catch err)))
  (progn (defvar use-package--warning5 (function (lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning (quote use-package) msg :error))))) (condition-case err (progn (condition-case err (progn) ((debug error) (funcall use-package--warning5 :init err))) (if (not (require (quote lsp-treemacs) nil t)) (display-warning (quote use-package) (format "Cannot load %s" (quote lsp-treemacs)) :error) (condition-case err (progn (progn (req-package-handle-loading ... ...) (req-package-loaded ...)) t) ((debug error) (funcall use-package--warning5 :config err))))) ((debug error) (funcall use-package--warning5 :catch err))))
  eval((progn (defvar use-package--warning5 (function (lambda (keyword err) (let ((msg ...)) (display-warning (quote use-package) msg :error))))) (condition-case err (progn (condition-case err (progn) ((debug error) (funcall use-package--warning5 :init err))) (if (not (require (quote lsp-treemacs) nil t)) (display-warning (quote use-package) (format "Cannot load %s" (quote lsp-treemacs)) :error) (condition-case err (progn (progn ... ...) t) ((debug error) (funcall use-package--warning5 :config err))))) ((debug error) (funcall use-package--warning5 :catch err)))))
  req-package-eval-form((use-package lsp-treemacs :init (progn) :config (progn (req-package-handle-loading (quote (lsp-treemacs nil)) (lambda nil nil)) (req-package-loaded (quote (lsp-treemacs nil))))))
  (lambda nil (req-package-eval-form EVAL))()
  funcall((lambda nil (req-package-eval-form EVAL)))
  (condition-case e (funcall f) ((debug error) (req-package--log-error (format "Unable to load package %s -- %s" pkg e))))
  req-package-handle-loading((lsp-treemacs nil) (lambda nil (req-package-eval-form EVAL)))
  (let* ((DEFAULT (req-package-gen-eval pkg (list (quote progn)) (req-package-patch-config pkg nil) nil)) (EVAL (gethash pkg req-package-evals DEFAULT)) (PKG pkg)) (req-package-handle-loading PKG (function (lambda nil (req-package-eval-form EVAL)))))
  req-package-eval((lsp-treemacs nil))
  (progn (puthash key -1 req-package-deps-left) (req-package-eval key))
  (if (equal (gethash key req-package-deps-left 0) 0) (progn (puthash key -1 req-package-deps-left) (req-package-eval key)))
  (lambda (key value) (if (equal (gethash key req-package-deps-left 0) 0) (progn (puthash key -1 req-package-deps-left) (req-package-eval key))))((lsp-treemacs nil) 0)
  maphash((lambda (key value) (if (equal (gethash key req-package-deps-left 0) 0) (progn (puthash key -1 req-package-deps-left) (req-package-eval key)))) #<hash-table equal 9/200 0x11c0529>)
  req-package-finish()
  eval-buffer(#<buffer  *load*-770573> nil "/home/user/.emacs.d/req-packages.el" nil t)  ; Reading at buffer position 2926
  load-with-code-conversion("/home/user/.emacs.d/req-packages.el" "/home/user/.emacs.d/req-packages.el" nil nil)
  load("~/.emacs.d/req-packages")
  eval-buffer(#<buffer  *load*> nil "/home/user/.emacs" nil t)  ; Reading at buffer position 2670
  load-with-code-conversion("/home/user/.emacs" "/home/user/.emacs" t t)
  load("~/.emacs" t t)
  #f(compiled-function () #<bytecode 0x1e0f4d>)()
  command-line()
  normal-top-level()

Try recompiling lsp-treemacs; lsp-treemacs--make-ref-item is not used as a variable.

It did the trick. Thanks.

Try recompiling lsp-treemacs; lsp-treemacs--make-ref-item is not used as a variable.

The following warnings appear in the compile-log:

lsp-treemacs-themes.el:34:1:Warning: value returned from (aref theme 1) is
    unused
Compiling file /lsp-treemacs.el at Wed Feb 24 04:11:52 2021

In end of data:
lsp-treemacs.el:1294:1:Warning: the following functions are not known to be defined:
    lsp-render-symbol, lsp-diagnostics-stats-for

You'll need to update lsp-mode as well, otherwise lsp-treemacs will probably not work.