emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.04k stars 140 forks source link

void variable `it` in `defconst lsp-ui-resources-dir`when loading #601

Closed peerst closed 3 years ago

peerst commented 3 years ago

Getting the following error:

Debugger entered--Lisp error: (void-variable it)
  byte-code("\301\10!\205\20\0\302\303\304\305\306\307!!\"!\207" [it file-directory-p file-name-as-directory expand-file-name "resources" file-name-directory find-library-name "lsp-ui"] 6)
  (defconst lsp-ui-resources-dir (byte-code "\301\10!\205\20\0\302\303\304\305\306\307!!\"!\207" [it file-directory-p file-name-as-directory expand-file-name "resources" file-name-directory find-library-name "lsp-ui"] 6) ("/Users/peer/.emacs.d/elpa/lsp-ui-20210326.507/lsp-..." . 502))
  require(lsp-ui)
  (if require-name (require require-name) (require pkg))
  package-require(lsp-ui)
  eval-buffer(#<buffer  *load*> nil "/Users/peer/.emacs" nil t)  ; Reading at buffer position 1423
  load-with-code-conversion("/Users/peer/.emacs" "/Users/peer/.emacs" t t)
  load("~/.emacs" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x41e08f39>) #f(compiled-function () #<bytecode 0x41e08f4d>) t)
  command-line()
  normal-top-level()

When loading with the following config:

https://github.com/erlang-ls/erlang_ls/blob/main/misc/dotemacs

On GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, GTK+ Version 2.24.32) of 2020-08-30

jcs090218 commented 3 years ago

This is cause of dependency dash. Can you reinstall and upgrade dash package to the latest version? Make sure Emacs clean compiles it?

peerst commented 3 years ago

Seems to be missing altogether on my emacs. M-x package-list-packages does not even show dash (there are some packages with dash in the name but none with just dash)

I'm using melpa and I did run package-refresh-contents

peerst commented 3 years ago

Ok I emptied my elpa dir and now the problem seems to have gone