python language server 补全很慢?


#1

下午试了下把 python layer backend 换成 lsp,发现补全特别慢,有时还没有,以及偶尔会出现下面的问题,是我的姿势不对么。

LSP :: jedi.api.environment.InvalidPythonEnvironment: Could not get version information for '/usr/local/opt/python/bin/python3.7': OSError(24, 'Too many open files') [24 times]

System Info :computer:

  • OS: darwin
  • Emacs: 26.1.92
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. b28f1a2ab)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(lsp
 (python :variables python-backend 'anaconda python-pipenv-activate t python-enable-yapf-format-on-save t python-sort-imports-on-save t))