neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Jedi Runtime Error #238

Open eagerdancing opened 4 years ago

eagerdancing commented 4 years ago

When I type:

sys.path.insert(0,)

Error occurs , like this:

[coc.nvim] Jedi error: Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/jedi/inference/sys_path.py", line 91, in _paths_from_list_m odifications for value in module_context.create_context(arg).infer_node(arg): File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 222, in infer_node return infer_node(self, node) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 137, in infer_node return _infer_node_if_inferred(context, element) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 150, in _infer_node_if _inferred return _infer_node_cached(context, element) File "/usr/lib/python3.8/site-packages/jedi/inference/cache.py", line 43, in wrapper rv = function(obj, *args, kwargs) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 155, in _infer_node_ca ched return _infer_node(context, element) File "/usr/lib/python3.8/site-packages/jedi/debug.py", line 82, in wrapper return func(*args, *kwargs) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 63, in wrapper return func(context, args, kwargs) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 237, in _infer_node return infer_or_test(context, element) File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 451, in infer_or_test