spacemacs lsp layer 只有 emacs 26 才能用吗?

我用的 25 的,在 python buffer 里移动就会报错:

Error from the Language Server: Traceback (most recent call last):
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/rpc_manager.py", line 116, in _handle_request
    maybe_handler = self._message_handler(request.method, request.params if request.params is not None else {})
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/python_ls.py", line 95, in handle_request
    return getattr(self, method_call)(**params)
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/python_ls.py", line 243, in m_text_document__hover
    return self.hover(textDocument[’uri’], position)
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/python_ls.py", line 190, in hover
    return self._hook(’pyls_hover’, doc_uri, position=position) or {’contents’: ’’}
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/python_ls.py", line 115, in _hook
    doc = self.workspace.get_document(doc_uri) if doc_uri else None
  File "/home/neoarch/Envs/venv/lib/python3.6/site-packages/pyls/workspace.py", line 110, in get_document
    return self._docs[doc_uri]
KeyError: ’file:///home/neoarch/git/myfistpkg/ExampleProjects/fistSrc/py/plt_peak_vs_fric.py’
 (Server End Error)

这个是python lsp的问题吧,应该不是Emacs的锅


我对这个不熟悉,只能看出来是pyls的问题,具体的等了解比较多的人看看吧。

我用的虚拟环境下的 lsp,所有的包都是最新的,不知道是哪里出了问题