Skip to content

AttributeError: 'Host' object has no attribute 'name' in _on_error_event #425

@blueyed

Description

@blueyed

I've just seen this:

error caught in notification handler 'b'nvim_error_event' [0, b'Vim(sign):E158: Invalid buffer name: 12']'
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pynvim/plugin/host.py", line 139, in _on_notification
    handler(*args)
  File "/usr/lib/python3.8/site-packages/pynvim/plugin/host.py", line 60, in _on_error_event
    self.name, decode_if_bytes(msg))
AttributeError: 'Host' object has no attribute 'name'

python-pynvim 0.4.0-1

Code: https://github.com/neovim/python-client/blob/4949d43cd45da16c184a15b3f14ebb1f097e8e94/pynvim/plugin/host.py#L56-L61

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