Skip to content
Kuba Orlik edited this page Sep 19, 2024 · 1 revision

To setup lsp-bridge on Arch, you can use pip3 and yay:

yay python-orjson     
yay python-sexpdata   
yay python-setuptools 
yay python-paramiko   
yay python-rapidfuzz  
yay python-epc

If you get an error message saying:

Traceback (most recent call last):
  File "/home/kuba/.emacs.d/straight/build/lsp-bridge/lsp_bridge.py", line 32, in <module>
    from epc.server import ThreadingEPCServer
ModuleNotFoundError: No module named 'epc'

It might be because pypy3 is installed in your system and lsp-bridge is trying to use it. You can circumvent it by adding

(setq lsp-bridge-python-command "python3")

To your config, like so:

(use-package lsp-bridge
  :straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"
			 :files (:defaults "*.el" "*.py" "acm" "core" "langserver" "multiserver" "resources")
			 :build (:not compile))
  :init
  (setq lsp-bridge-python-command "python3")
  
  :config
  (global-lsp-bridge-mode)
  )