palantir / python-language-server

An implementation of the Language Server Protocol for Python
MIT License
2.61k stars 285 forks source link

TypeError: expected string or bytes-like object Code: -32602 #853

Closed GNSubrahmanyam closed 4 years ago

GNSubrahmanyam commented 4 years ago

version: 0.31.10, 0.31.09

pip freeze: apyori==1.1.1 argon2-cffi==20.1.0 astroid==2.4.2 attrs==20.2.0 autopep8==1.5.4 backcall==0.2.0 bleach==3.1.5 box2d-py==2.3.8 cffi==1.14.2 cloudpickle==1.2.2 cycler==0.10.0 Cython==0.29.13 decorator==4.4.2 defusedxml==0.6.0 dill==0.3.0 EasyProcess==0.3 entrypoints==0.3 flake8==3.8.3 future==0.17.1 graphviz==0.11.1 gym==0.13.1 imbalanced-learn==0.5.0 importlib-metadata==1.7.0 ipykernel==5.3.4 ipython==7.16.1 ipython-genutils==0.2.0 ipywidgets==7.5.0 isort==5.5.1 jedi==0.15.2 Jinja2==2.11.2 joblib==0.16.0 jsonschema==3.2.0 jupyter-client==6.1.7 jupyter-core==4.6.3 kiwisolver==1.2.0 lazy-object-proxy==1.4.3 lightgbm==2.2.3 MarkupSafe==1.1.1 matplotlib==3.1.1 mccabe==0.6.1 mistune==0.8.4 mlxtend==0.17.0 mpmath==1.1.0 nbconvert==5.6.1 nbformat==5.0.7 networkx==2.3 nltk==3.4.4 notebook==6.1.3 numexpr==2.6.9 numpy==1.19.1 opencv-python==4.1.0.25 packaging==20.4 pandas==0.25.0 pandocfilters==1.4.2 parso==0.8.0 patsy==0.5.1 pexpect==4.8.0 pgmpy==0.1.7 pickleshare==0.7.5 pluggy==0.13.1 pmdarima==1.2.1 pomegranate==0.11.0 prometheus-client==0.8.0 prompt-toolkit==3.0.7 ptyprocess==0.6.0 pyAgrum==0.15.2 pycodestyle==2.6.0 pycparser==2.20 pydataset==0.2.0 pydocstyle==5.1.1 pydotplus==2.0.2 pyflakes==2.2.0 pyglet==1.3.2 Pygments==2.6.1 pylint==2.6.0 PyOpenGL==3.1.0 pyparsing==2.4.7 pyrsistent==0.16.0 pyscreenshot==0.5.1 python-dateutil==2.8.1 python-jsonrpc-server==0.3.4 python-language-server==0.31.9 pytz==2020.1 PyYAML==5.3.1 pyzmq==19.0.2 requests==2.2.1 rope==0.17.0 scikit-learn==0.21.2 scipy==1.3.0 seaborn==0.9.0 Send2Trash==1.5.0 simplejson==3.16.0 six==1.15.0 snowballstemmer==2.0.0 statsmodels==0.10.1 sympy==1.4 terminado==0.8.3 testpath==0.4.4 toml==0.10.1 tornado==6.0.4 traitlets==4.3.3 typed-ast==1.4.1 ujson==1.35 watermark==1.8.1 wcwidth==0.2.5 webencodings==0.5.1 widgetsnbextension==3.5.1 wrapt==1.11.2 xlrd==1.2.0 yapf==0.30.0 zipp==3.1.0

Trace: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 189, in _infer_node python3 | value_set = context.infer_node(first_child) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 176, in _infer_node python3 | return infer_atom(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 301, in infer_atom python3 | return context.pygetattribute(atom, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in pygetattribute python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/common/value.py", line 32, in fromsets python3 | for set in sets: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/names.py", line 237, in infer python3 | self.tree_name python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/init.py", line 21, in wrapper python3 | return built_functions[name](*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/stdlib.py", line 827, in wrapper python3 | return func(inference_state, context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 732, in tree_name_to_values python3 | types = imports.infer_import(context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 63, in infer_import python3 | _prepare_infer_import(module_context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 124, in _prepare_infer_import python3 | module_context, import_node.level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | python3 Server: 2020-09-06 05:19:46,583 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 13 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method((params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_document__completion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 220, in _get_value_completions python3 | completion_names += self._global_completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 253, in _global_completions python3 | completion_names += filter.values() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 92, in values python3 | for name_key in self._used_names python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in _convert_names python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 95, in python3 | filter_kwargs python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 122, in _filter python3 | return list(self._check_flows(names)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 137, in _check_flows python3 | origin_scope=self._origin_scope python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 78, in reachability_check python3 | return _break_check(context, value_scope, first_flow_scope, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 86, in _break_check python3 | reachable = _check_if(context, check_node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 113, in _check_if python3 | types = context.infer_node(node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 248, in _infer_node python3 | return infer_or_test(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 453, in infer_or_test python3 | types = context.infer_node(next(iterator)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 189, in _infer_node python3 | value_set = context.infer_node(first_child) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 176, in _infer_node python3 | return infer_atom(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 301, in infer_atom python3 | return context.pygetattribute(atom, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in pygetattribute python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/common/value.py", line 32, in fromsets python3 | for set in sets: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/names.py", line 237, in infer python3 | self.tree_name python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/init.py", line 21, in wrapper python3 | return built_functions[name](*args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/stdlib.py", line 827, in wrapper python3 | return func(inference_state, context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 732, in tree_name_to_values python3 | types = imports.infer_import(context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 63, in infer_import python3 | _prepare_infer_import(module_context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 124, in _prepare_infer_import python3 | module_context, import_node.level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | python3 Server: 2020-09-06 05:19:46,729 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 15 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method((params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_documentcompletion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 220, in _get_value_completions python3 | completion_names += self._global_completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 253, in _global_completions python3 | completion_names += filter.values() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 92, in values python3 | for name_key in self._used_names python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in _convert_names python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 95, in python3 | filter_kwargs python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 122, in _filter python3 | return list(self._check_flows(names)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 137, in _check_flows python3 | origin_scope=self._origin_scope python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 78, in reachability_check python3 | return _break_check(context, value_scope, first_flow_scope, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 86, in _break_check python3 | reachable = _check_if(context, check_node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 113, in _check_if python3 | types = context.infer_node(node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, *args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 248, in _infer_node python3 | return infer_or_test(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 453, in infer_or_test python3 | types = context.infer_node(next(iterator)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, *args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 189, in _infer_node python3 | value_set = context.infer_node(first_child) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, **kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 176, in _infer_node python3 | return infer_atom(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 301, in infer_atom python3 | return context.pygetattribute(atom, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in pygetattribute python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/common/value.py", line 32, in fromsets python3 | for set in sets: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/names.py", line 237, in infer python3 | self.tree_name python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/init.py", line 21, in wrapper python3 | return built_functions[name](*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/stdlib.py", line 827, in wrapper python3 | return func(inference_state, context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 732, in tree_name_to_values python3 | types = imports.infer_import(context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, **kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 63, in infer_import python3 | _prepare_infer_import(module_context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 124, in _prepare_infer_import python3 | module_context, import_node.level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]*?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | python3 Server: 2020-09-06 05:19:46,958 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 16 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method((params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_document__completion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(*args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 220, in _get_value_completions python3 | completion_names += self._global_completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 253, in _global_completions python3 | completion_names += filter.values() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 92, in values python3 | for name_key in self._used_names python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in _convert_names python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 95, in python3 | filter_kwargs python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 122, in _filter python3 | return list(self._check_flows(names)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 137, in _check_flows python3 | origin_scope=self._origin_scope python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 78, in reachability_check python3 | return _break_check(context, value_scope, first_flow_scope, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 86, in _break_check python3 | reachable = _check_if(context, check_node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 113, in _check_if python3 | types = context.infer_node(node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 248, in _infer_node python3 | return infer_or_test(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 453, in infer_or_test python3 | types = context.infer_node(next(iterator)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 189, in _infer_node python3 | value_set = context.infer_node(first_child) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 176, in _infer_node python3 | return infer_atom(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 301, in infer_atom python3 | return context.pygetattribute(atom, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in pygetattribute python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/common/value.py", line 32, in fromsets python3 | for set in sets: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/names.py", line 237, in infer python3 | self.tree_name python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/init.py", line 21, in wrapper python3 | return built_functions[name](*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/stdlib.py", line 827, in wrapper python3 | return func(inference_state, context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 732, in tree_name_to_values python3 | types = imports.infer_import(context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, **kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 63, in infer_import python3 | _prepare_infer_import(module_context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 124, in _prepare_infer_import python3 | module_context, import_node.level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]*?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | python3 Server: 2020-09-06 05:19:49,858 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 23 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method(**(params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_documentcompletion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(*args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 214, in _get_value_completions python3 | only_modules=only_modules, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 275, in _get_importer_names python3 | i = imports.Importer(self._inference_state, names, self._module_context, level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | python3 Server: 2020-09-06 05:19:58,536 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 24 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method((params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_documentcompletion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, **kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 214, in _get_value_completions python3 | only_modules=only_modules, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 275, in _get_importer_names python3 | i = imports.Importer(self._inference_state, names, self._module_context, level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]*?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 | python3 | 2020-09-06T05:21:55.718Z [python3] info: gnsubrahmanyam-96589731 Close Event python3 | 2020-09-06T05:21:55.719Z [python3] info: Cleanup workspace /workspace/gnsubrahmanyam-96589731/ python3 | 2020-09-06T05:22:00.284Z [python3] info: Local python3 | 2020-09-06T05:22:00.286Z [python3] info: gnsubrahmanyam-4877fc6b Starting python3 language server childProcess python3 | 2020-09-06T05:22:00.378Z [python3] info: Initialize Request gnsubrahmanyam-4877fc6b python3 | python3 Server: 2020-09-06 05:22:02,366 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle notification workspace/didChangeWorkspaceFolders: {'event': {'added': [{'uri': 'file:///workspace/gnsubrahmanyam-4877fc6b', 'name': 'file:///workspace/gnsubrahmanyam-4877fc6b'}], 'removed': [{'uri': 'file:///workspace/gnsubrahmanyam-4877fc6b', 'name': 'file:///workspace/gnsubrahmanyam-4877fc6b'}]}} python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 142, in _handle_notification python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method(**(params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 365, in m_workspacedid_change_workspace_folders python3 | for removed_info in removed: python3 | TypeError: 'NoneType' object is not iterable python3 | python3 | python3 Server: 2020-09-06 05:22:04,767 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle request 7 python3 | Traceback (most recent call last): python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 113, in consume python3 | self._handle_request(message['id'], message['method'], message.get('params')) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request python3 | handler_result = handler(params) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler python3 | return method((params or {})) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 321, in m_text_document__completion python3 | return self.completions(textDocument['uri'], position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 239, in completions python3 | completions = self._hook('pyls_completions', doc_uri, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/python_ls.py", line 155, in _hook python3 | return hook_handlers(config=self.config, workspace=workspace, document=doc, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/hooks.py", line 286, in call python3 | return self._hookexec(self, self.get_hookimpls(), kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 93, in _hookexec python3 | return self._inner_hookexec(hook, methods, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 337, in traced_hookexec python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 52, in from_call python3 | result = func() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 335, in python3 | outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/manager.py", line 87, in python3 | firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 208, in _multicall python3 | return outcome.get_result() python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 80, in get_result python3 | raise ex[1].with_traceback(ex[2]) python3 | File "/usr/local/lib/python3.6/dist-packages/pluggy/callers.py", line 187, in _multicall python3 | res = hook_impl.function(args) python3 | File "/usr/local/lib/python3.6/dist-packages/pyls/plugins/jedi_completion.py", line 54, in pyls_completions python3 | definitions = document.jedi_script(position).completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/init.py", line 217, in completions python3 | return completion.completions(fuzzy) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 94, in completions python3 | return self._completions(fuzzy, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 109, in _completions python3 | completion_names = self._get_value_completions(leaf) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 220, in _get_value_completions python3 | completion_names += self._global_completions() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/api/completion.py", line 253, in _global_completions python3 | completion_names += filter.values() python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 92, in values python3 | for name_key in self._used_names python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in _convert_names python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 87, in python3 | return [self.name_class(self.parent_context, name) for name in names] python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 95, in python3 | filter_kwargs python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 122, in _filter python3 | return list(self._check_flows(names)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/filters.py", line 137, in _check_flows python3 | origin_scope=self._origin_scope python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 78, in reachability_check python3 | return _break_check(context, value_scope, first_flow_scope, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 86, in _break_check python3 | reachable = _check_if(context, check_node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/flow_analysis.py", line 113, in _check_if python3 | types = context.infer_node(node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 248, in _infer_node python3 | return infer_or_test(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 453, in infer_or_test python3 | types = context.infer_node(next(iterator)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 189, in _infer_node python3 | value_set = context.infer_node(first_child) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 210, in infer_node python3 | return infer_node(self, node) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 148, in infer_node python3 | return _infer_node_if_inferred(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 161, in _infer_node_if_inferred python3 | return _infer_node_cached(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, *args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 166, in _infer_node_cached python3 | return _infer_node(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/debug.py", line 82, in wrapper python3 | return func(*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 62, in wrapper python3 | return func(context, args, kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 176, in _infer_node python3 | return infer_atom(context, element) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 301, in infer_atom python3 | return context.pygetattribute(atom, position=position) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in pygetattribute python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/common/value.py", line 32, in fromsets python3 | for set in sets: python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 75, in python3 | values = ValueSet.from_sets(name.infer() for name in names) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/names.py", line 237, in infer python3 | self.tree_name python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/init.py", line 21, in wrapper python3 | return built_functions[name](*args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/plugins/stdlib.py", line 827, in wrapper python3 | return func(inference_state, context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/syntax_tree.py", line 732, in tree_name_to_values python3 | types = imports.infer_import(context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/cache.py", line 42, in wrapper python3 | rv = function(obj, args, *kwargs) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 63, in infer_import python3 | _prepare_infer_import(module_context, tree_name) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 124, in _prepare_infer_import python3 | module_context, import_node.level) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/imports.py", line 211, in init python3 | debug.speed('import %s %s' % (import_path, module_context)) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/context.py", line 204, in repr python3 | return '%s(%s)' % (self.class.name, self._value) python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 273, in repr python3 | self.class.name, self._string_name, python3 | File "/usr/local/lib/python3.6/dist-packages/jedi/inference/value/module.py", line 135, in _string_name python3 | r = re.search(r'([^%s]?)(%sinit)?(.pyi?|.so)?$' % sep, self._path) python3 | File "/usr/lib/python3.6/re.py", line 182, in search python3 | return _compile(pattern, flags).search(string) python3 | TypeError: expected string or bytes-like object python3 |

ccordoba12 commented 4 years ago

jedi==0.15.2

This is an upstream bug with Jedi that should be fixed in its latest version (0.17.2).