mhinz/neovim-remote

Running nvr through git add -p throws errors:

Opened this issue · 0 comments

Hi guys,

Sometimes I get the following error in a git add -p session:

Traceback (most recent call last):
  File "/home/anne/.local/lib/python3.6/site-packages/nvr/nvr.py", line 138, in execute
    self.fnameescaped_command(cmd, fname)
  File "/home/anne/.local/lib/python3.6/site-packages/nvr/nvr.py", line 100, in fnameescaped_command
    self.server.command('{} {}'.format(cmd, path))
  File "/home/anne/.local/lib/python3.6/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
  File "/home/anne/.local/lib/python3.6/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/home/anne/.local/lib/python3.6/site-packages/pynvim/msgpack_rpc/session.py", line 104, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim(mkview):E32: No file name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/anne/.local/bin/nvr", line 11, in <module>
    sys.exit(main())
  File "/home/anne/.local/lib/python3.6/site-packages/nvr/nvr.py", line 441, in main
    nvr.execute(options.remote_wait + arguments, 'edit', wait=True)
  File "/home/anne/.local/lib/python3.6/site-packages/nvr/nvr.py", line 140, in execute
    if not re.search('E37', e.args[0].decode()):
AttributeError: 'str' object has no attribute 'decode'

I have put in my ~/.gitconfig:

...
[core]
	editor = nvr --remote-wait

Any ideas what the problem might be? Thank you in advance!

Best regards,

Anne de Jong