Skip to content

NoneType object has attribute plugin_manager #359

Open
@wreed4

Description

@wreed4

I just installed pyls to work with the oni editor. I don't think I've changed anything in the way of configuration. However, when I attempt to use the completion features, I always am met with this error. Here is the stack trace from stderr.

2018-05-24 15:53:51,397 UTC - ERROR - pyls.jsonrpc.endpoint - Failed to handle request 5
Traceback (most recent call last):
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/jsonrpc/endpoint.py", line 113, in consume
    self._handle_request(message['id'], message['method'], message.get('params'))
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/jsonrpc/endpoint.py", line 182, in _handle_request
    handler_result = handler(params)
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/jsonrpc/dispatchers.py", line 23, in handler
    return method(**(params or {}))
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/python_ls.py", line 239, in m_text_document__definition
    return self.definitions(textDocument['uri'], position)
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/python_ls.py", line 174, in definitions
    return flatten(self._hook('pyls_definitions', doc_uri, position=position))
  File "/home/william/.pyenv/versions/3.6.3/lib/python3.6/site-packages/pyls/python_ls.py", line 112, in _hook
    hook_handlers = self.config.plugin_manager.subset_hook_caller(hook_name, self.config.disabled_plugins)
AttributeError: 'NoneType' object has no attribute 'plugin_manager'

Any help would be very much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions