You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Python 2 on Windows has no .samefile, but then these are
# strings for sure
docismodule=document.path==d.module_path
should perhaps look for a TypeError or check for Nones before calling samefile? I'm making this guess passed on the following traceback:
Traceback (most recent call last):
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp_jsonrpc/endpoint.py", line 116, in consumeself._handle_request(message['id'], message['method'], message.get('params'))
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp_jsonrpc/endpoint.py", line 185, in _handle_request
handler_result = handler(params)
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp_jsonrpc/dispatchers.py", line 25, in handlerreturn method(**(params or {}))
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp/python_lsp.py", line 334, in m_text_document__document_symbolreturnself.document_symbols(textDocument['uri'])
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp/python_lsp.py", line 250, in document_symbolsreturn flatten(self._hook('pylsp_document_symbols', doc_uri))
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp/python_lsp.py", line 155, in _hookreturn hook_handlers(config=self.config, workspace=workspace, document=doc, **kwargs)
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/hooks.py", line 286, in __call__returnself._hookexec(self, self.get_hookimpls(), kwargs)
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/manager.py", line 93, in _hookexecreturnself._inner_hookexec(hook, methods, kwargs)
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/manager.py", line 337, in traced_hookexecreturn outcome.get_result()
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_resultraise ex[1].with_traceback(ex[2])
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/callers.py", line 52, in from_call
result = func()
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/manager.py", line 335, in <lambda>
outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/manager.py", line 84, in <lambda>self._inner_hookexec =lambdahook, methods, kwargs: hook.multicall(
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/callers.py", line 208, in _multicallreturn outcome.get_result()
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/callers.py", line 80, in get_resultraise ex[1].with_traceback(ex[2])
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/Users/ddavis/.pyenv/versions/3.9.5/envs/dask-dev/lib/python3.9/site-packages/pylsp/plugins/symbols.py", line 42, in pylsp_document_symbols
docismodule = os.path.samefile(document.path, d.module_path)
File "/Users/ddavis/.pyenv/versions/3.9.5/lib/python3.9/genericpath.py", line 101, in samefile
s2 = os.stat(f2)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
The text was updated successfully, but these errors were encountered:
It looks like
python-lsp-server/pylsp/plugins/symbols.py
Lines 41 to 46 in 5a13db1
None
s before callingsamefile
? I'm making this guess passed on the following traceback:The text was updated successfully, but these errors were encountered: