Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Jedi error raised on python completion #319

Open
l3nn4rt opened this issue Nov 29, 2020 · 2 comments
Open

Jedi error raised on python completion #319

l3nn4rt opened this issue Nov 29, 2020 · 2 comments

Comments

@l3nn4rt
Copy link

l3nn4rt commented Nov 29, 2020

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 8.2 8021989
node version: v15.3.0
coc.nvim version: 0.0.79-6fe357fc97
coc.nvim directory: /home/lennart/.vim/plugged/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2020-11-29T16:08:09.438 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.439 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.439 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.439 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.441 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.441 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.442 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.442 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.443 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.443 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.443 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.443 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.444 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.444 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.444 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.444 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.445 INFO (pid:14313) [extension:coc-python] - Python Extension: Create file systemwatcher with pattern */python
2020-11-29T16:08:09.445 INFO (pid:14313) [extension:coc-python] - Python Extension: Create file systemwatcher with pattern */*/python
2020-11-29T16:08:09.446 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.446 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.446 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.446 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.448 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.448 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.448 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.448 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.450 INFO (pid:14313) [extension:coc-python] - Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.450 INFO (pid:14313) [extension:coc-python] - Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:09.450 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.450 INFO (pid:14313) [extension:coc-python] - Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined
2020-11-29T16:08:09.451 INFO (pid:14313) [extension:coc-python] - Python Extension: Register Intepreter Watcher, Class name = WorkspaceVirtualEnvWatcherService, Arg 1: <Uri:/home/lennart/test>, Return Value: undefined
2020-11-29T16:08:09.451 INFO (pid:14313) [extension:coc-python] - Python Extension: Build the workspace interpreter watcher, Class name = InterpreterWatcherBuilder, Arg 1: <Uri:/home/lennart/test>, Return Value: <Return value cannot be serialized for logging>
2020-11-29T16:08:09.465 INFO (pid:14313) [plugin] - coc.nvim 0.0.79-6fe357fc97 initialized with node: v15.3.0 after 697ms
2020-11-29T16:08:09.465 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
2020-11-29T16:08:09.479 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from environment
2020-11-29T16:08:09.479 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from workspaceEnvs
2020-11-29T16:08:09.490 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by CondaEnvFileService are of count 0
2020-11-29T16:08:09.491 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by PipEnvService are of count 0
2020-11-29T16:08:09.499 INFO (pid:14313) [extension:coc-python] - Python Extension: Detection of Python Interpreter for Command python3.7 and args  failed
2020-11-29T16:08:09.505 INFO (pid:14313) [extension:coc-python] - Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed
2020-11-29T16:08:09.531 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by VirtualEnvService are of count 0
2020-11-29T16:08:09.539 INFO (pid:14313) [extension:coc-python] - Python Extension: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}
2020-11-29T16:08:09.540 INFO (pid:14313) [extension:coc-python] - Python Extension: Current value for rule windowsRegistry is nothing
2020-11-29T16:08:09.541 INFO (pid:14313) [extension:coc-python] - Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}
2020-11-29T16:08:09.545 INFO (pid:14313) [extension:coc-python] - Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
2020-11-29T16:08:09.545 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
2020-11-29T16:08:09.545 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
2020-11-29T16:08:09.546 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
2020-11-29T16:08:09.586 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from windowsRegistry
2020-11-29T16:08:09.586 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from settings
2020-11-29T16:08:09.586 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from workspaceEnvs
2020-11-29T16:08:09.586 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from environment
2020-11-29T16:08:09.590 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:09.591 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.591 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.591 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.591 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.593 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart/test
2020-11-29T16:08:09.593 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking support of .NET, Class name = LinuxDotNetCompatibilityService, , Return Value: true
2020-11-29T16:08:09.595 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
2020-11-29T16:08:09.602 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by CondaEnvService are of count 0
2020-11-29T16:08:09.602 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.603 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.603 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.603 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.603 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.646 INFO (pid:14313) [extension:coc-python] - Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true}
2020-11-29T16:08:09.647 INFO (pid:14313) [extension:coc-python] - Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"/usr/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
2020-11-29T16:08:09.647 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from currentPath
2020-11-29T16:08:09.647 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.654 INFO (pid:14313) [extension:coc-python] - Python Extension: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}
2020-11-29T16:08:09.654 INFO (pid:14313) [extension:coc-python] - Python Extension: Current value for rule windowsRegistry is nothing
2020-11-29T16:08:09.655 INFO (pid:14313) [extension:coc-python] - Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}
2020-11-29T16:08:09.656 INFO (pid:14313) [extension:coc-python] - Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}, Arg 2: undefined, Return Value: false
2020-11-29T16:08:09.656 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from cachedInterpreters
2020-11-29T16:08:09.656 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.692 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by KnownPathsService are of count 25
2020-11-29T16:08:09.692 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false
2020-11-29T16:08:09.699 INFO (pid:14313) [extension:coc-python] - Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}
2020-11-29T16:08:09.700 INFO (pid:14313) [extension:coc-python] - Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.6-final","major":3,"minor":8,"patch":6,"prerelease":["final"],"build":[],"version":"3.8.6-final"},"sysPrefix":"/usr","fileHash":"d491c5a8a0afb62d26a61006cf243310b9577cbc03a9b3dbd7cfc0c5496ce220513142b4c1d7836a0107c9be8482244744a49bcd966d973522e0c5735b76784a","type":"Unknown","cachedEntry":true,"displayName":"Python 3.8.6 64-bit"}, Arg 2: undefined, Return Value: false
2020-11-29T16:08:09.700 INFO (pid:14313) [extension:coc-python] - Python Extension: Executing next rule from system
2020-11-29T16:08:09.700 INFO (pid:14313) [extension:coc-python] - Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: <Uri:/home/lennart>, Return Value: undefined
2020-11-29T16:08:09.712 INFO (pid:14313) [extension:coc-python] - Python Extension: Interpreters returned by CurrentPathService are of count 4
2020-11-29T16:08:09.712 INFO (pid:14313) [extension:coc-python] - Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: true
2020-11-29T16:08:09.712 INFO (pid:14313) [extension:coc-python] - Python Extension: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined
2020-11-29T16:08:09.712 INFO (pid:14313) [extension:coc-python] - Python Extension: All locators have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined
2020-11-29T16:08:10.653 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart/test
2020-11-29T16:08:12.543 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.546 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.548 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.550 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.553 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.712 INFO (pid:14313) [extension:coc-python] - Python Extension: Cached data exists getEnvironmentVariables, /home/lennart
2020-11-29T16:08:12.977 ERROR (pid:14313) [extension:coc-python] - Python Extension: stderr jediProxy, Error (stderr) Traceback (most recent call last):
  File "completion.py", line 670, in watch
    response = self._process_request(rq)
  File "completion.py", line 640, in _process_request
    return self._serialize_arguments(script, line, column, request["id"])
  File "completion.py", line 309, in _serialize_arguments
    "results": self._get_call_signatures_with_args(script, line, column),
  File "completion.py", line 148, in _get_call_signatures_with_args
    call_signatures = script.get_signatures(line, column)
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 487, in wrapper
    return func(self, line, column, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/api/__init__.py", line 562, in get_signatures
    definitions = helpers.cache_signatures(
  File "/usr/lib/python3.8/site-packages/jedi/cache.py", line 69, in wrapper
    value = next(generator)
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 461, in cache_signatures
    yield infer(
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 164, in infer
    return inference_state.infer(context, leaf)
  File "/usr/lib/python3.8/site-packages/jedi/inference/__init__.py", line 179, in infer
    return helpers.infer_call_of_leaf(context, name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/helpers.py", line 80, in infer_call_of_leaf
    return context.infer_node(leaf)
  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 157, in infer_node
    return _infer_node_if_inferred(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 170, in _infer_node_if_inferred
    return _infer_node_cached(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/cache.py", line 44, in wrapper
    rv = function(obj, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 175, in _infer_node_cached
    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 83, in wrapper
    return func(context, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 185, in _infer_node
    return infer_atom(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 310, in infer_atom
    return context.py__getattribute__(atom, position=position)
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 75, in py__getattribute__
    values = ValueSet.from_sets(name.infer() for name in names)
  File "/usr/lib/python3.8/site-packages/jedi/inference/base_value.py", line 427, in from_sets
    for set_ in sets:
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 75, in <genexpr>
    values = ValueSet.from_sets(name.infer() for name in names)
  File "/usr/lib/python3.8/site-packages/jedi/inference/names.py", line 279, in infer
    return tree_name_to_values(
  File "/usr/lib/python3.8/site-packages/jedi/plugins/__init__.py", line 21, in wrapper
    return built_functions[public_name](*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/plugins/stdlib.py", line 862, in wrapper
    return func(inference_state, context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/plugins/django.py", line 176, in wrapper
    result = func(inference_state, context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 753, in tree_name_to_values
    types = imports.infer_import(context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/cache.py", line 44, in wrapper
    rv = function(obj, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 55, in infer_import
    _prepare_infer_import(module_context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 115, in _prepare_infer_import
    importer = Importer(module_context.inference_state, tuple(import_path),
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 169, in __init__
    debug.speed('import %s %s' % (import_path, module_context))
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 216, in __repr__
    return '%s(%s)' % (self.__class__.__name__, self._value)
  File "/usr/lib/python3.8/site-packages/jedi/inference/value/module.py", line 228, in __repr__
    self.is_stub()
  File "/usr/lib/python3.8/site-packages/jedi/inference/value/module.py", line 159, in is_stub
    if self._path is not None and self._path.endswith('.pyi'):
AttributeError: 'PosixPath' object has no attribute 'endswith'


2020-11-29T16:08:14.482 WARN (pid:14313) [events] - Handler of TextChangedI blocked more than 2s: Error
    at Events.on (/home/lennart/.vim/plugged/coc.nvim/build/index.js:16593:25)
    at new Handler (/home/lennart/.vim/plugged/coc.nvim/build/index.js:93730:26)
    at Plugin.init (/home/lennart/.vim/plugged/coc.nvim/build/index.js:23994:28)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async /home/lennart/.vim/plugged/coc.nvim/build/index.js:11641:13

Describe the bug

Writing the following python script:

#!/usr/bin/env python3

from queue import queue

q = queue

after typing ( at end of last line, the following stack trace appeared:

[coc.nvim] Jedi error: Traceback (most recent call last):
  File "completion.py", line 670, in watch
    response = self._process_request(rq)
  File "completion.py", line 640, in _process_request
    return self._serialize_arguments(script, line, column, request["id"])
  File "completion.py", line 309, in _serialize_arguments
    "results": self._get_call_signatures_with_args(script, line, column),
  File "completion.py", line 148, in _get_call_signatures_with_args
    call_signatures = script.get_signatures(line, column)
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 487, in wrapper
    return func(self, line, column, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/api/__init__.py", line 562, in get_signatures
    definitions = helpers.cache_signatures(
  File "/usr/lib/python3.8/site-packages/jedi/cache.py", line 69, in wrapper
    value = next(generator)
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 461, in cache_signatures
    yield infer(
  File "/usr/lib/python3.8/site-packages/jedi/api/helpers.py", line 164, in infer
    return inference_state.infer(context, leaf)
  File "/usr/lib/python3.8/site-packages/jedi/inference/__init__.py", line 179, in infer
    return helpers.infer_call_of_leaf(context, name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/helpers.py", line 80, in infer_call_of_leaf
    return context.infer_node(leaf)
  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 157, in infer_node
    return _infer_node_if_inferred(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 170, in _infer_node_if_inferred
    return _infer_node_cached(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/cache.py", line 44, in wrapper
    rv = function(obj, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 175, in _infer_node_cached
    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 83, in wrapper
    return func(context, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 185, in _infer_node
    return infer_atom(context, element)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 310, in infer_atom
    return context.py__getattribute__(atom, position=position)
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 75, in py__getattribute__
    values = ValueSet.from_sets(name.infer() for name in names)
  File "/usr/lib/python3.8/site-packages/jedi/inference/base_value.py", line 427, in from_sets
    for set_ in sets:
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 75, in <genexpr>
    values = ValueSet.from_sets(name.infer() for name in names)
  File "/usr/lib/python3.8/site-packages/jedi/inference/names.py", line 279, in infer
    return tree_name_to_values(
  File "/usr/lib/python3.8/site-packages/jedi/plugins/__init__.py", line 21, in wrapper
    return built_functions[public_name](*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/plugins/stdlib.py", line 862, in wrapper
    return func(inference_state, context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/plugins/django.py", line 176, in wrapper
    result = func(inference_state, context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/syntax_tree.py", line 753, in tree_name_to_values
    types = imports.infer_import(context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/cache.py", line 44, in wrapper
    rv = function(obj, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 55, in infer_import
    _prepare_infer_import(module_context, tree_name)
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 115, in _prepare_infer_import
    importer = Importer(module_context.inference_state, tuple(import_path),
  File "/usr/lib/python3.8/site-packages/jedi/inference/imports.py", line 169, in __init__
    debug.speed('import %s %s' % (import_path, module_context))
  File "/usr/lib/python3.8/site-packages/jedi/inference/context.py", line 216, in __repr__
    return '%s(%s)' % (self.__class__.__name__, self._value)
  File "/usr/lib/python3.8/site-packages/jedi/inference/value/module.py", line 228, in __repr__
    self.is_stub()
  File "/usr/lib/python3.8/site-packages/jedi/inference/value/module.py", line 159, in is_stub
    if self._path is not None and self._path.endswith('.pyi'):
AttributeError: 'PosixPath' object has no attribute 'endswith'

Reproduce the bug

  • save above python script in a file named test
  • open it:
    $  vim -u mini.vim test
  • append a ( at the end of last line:
    G A (
    
  • now you should see a red stack trace similar to mine (if not, I have a problem)
@chemzqm chemzqm transferred this issue from neoclide/coc.nvim Nov 29, 2020
@chemzqm
Copy link
Member

chemzqm commented Nov 29, 2020

Sorry, no time to maintain coc-python

@l3nn4rt
Copy link
Author

l3nn4rt commented Nov 29, 2020

OK.. Thank you for the effort spent up to now btw!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants