manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.43k stars 206 forks source link

Cannot open load file: No such file or directory, acm-frame #704

Closed knarkzel closed 1 year ago

knarkzel commented 1 year ago

When I try installing lsp-bridge, I get no such file or directory acm-frame. I tried using it locally as well, but got same error. I'm on the latest emacs:

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0)
(use-package lsp-bridge
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"))
⛔ Error (use-package): lsp-bridge/:catch: Cannot open load file: No such file or directory, acm-frame
naoking158 commented 1 year ago

@knarkzel You need to specify a :files directive, e.g., :files (:defaults "*.py" "acm/*" "core/*").

See :files section in below URL for more detail. https://github.com/radian-software/straight.el#the-recipe-format

(I'm not good at English. I'm sorry if it's hard to understand or seems cold.)

knarkzel commented 1 year ago

I will try that, thanks for the tip.

knarkzel commented 1 year ago

Are there other files I need? When running with lsp-bridge, I get errors like these:

Error in post-command-hook (lsp-bridge-monitor-post-command): (void-variable acm-backend-tabnine-cache-candiates)

After disabling acm-enable-tabnine, I get this:

Error in post-command-hook (lsp-bridge-monitor-post-command): (void-variable acm-backend-path-cache-candiates)

And when disabling acm-enable-path, I get same error message.

mumu-lhl commented 1 year ago

Try deleting the .elc and .eln files and disabling byte compile and native compile for lsp-bridge.

knarkzel commented 1 year ago

Nice, that actually fixed it. I deleted these folders:

Then used following configuration for use-package with straight:

(use-package lsp-bridge
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge" :files (:defaults "*.py" "acm/*" "core/*") :build (:not compile))
  :init
  (global-lsp-bridge-mode))
manateelazycat commented 1 year ago

Nice, that actually fixed it. I deleted these folders:

  • ~/.emacs.d/eln-cache
  • ~/.emacs.d/repos/lsp-bridge
  • ~/.emacs.d/straight/build-lsp-bridge

Then used following configuration for use-package with straight:

(use-package lsp-bridge
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge" :files (:defaults "*.py" "acm/*" "core/*") :build (:not compile))
  :init
  (global-lsp-bridge-mode))

can you add above in readme as a pr? thanks