From 5e8c96cfbca0602dc3ead0ad3a5fa408ac916a0e Mon Sep 17 00:00:00 2001 From: zhixuan-lin Date: Thu, 11 Feb 2021 16:12:26 +0800 Subject: [PATCH] Fix module_path error --- jedi_language_server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi_language_server/server.py b/jedi_language_server/server.py index 1d2d228..4a60eea 100644 --- a/jedi_language_server/server.py +++ b/jedi_language_server/server.py @@ -373,8 +373,8 @@ def workspace_symbol( jedi_utils.lsp_symbol_information(name) for name in names if name.module_path - and name.module_path.startswith(workspace_root) - and not _ignore_folder(name.module_path) + and str(name.module_path).startswith(workspace_root) + and not _ignore_folder(str(name.module_path)) ) symbols = list(itertools.islice(_symbols, 20)) return symbols if symbols else None