mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.75k stars 83 forks source link

Occasional error starting up #99

Closed davidosomething closed 5 years ago

davidosomething commented 5 years ago

  File "/Users/dotrakoun/.config/pyenv/versions/3.7.0/bin/nvr", line 11, in <module>
    sys.exit(main())
  File "/Users/dotrakoun/.config/pyenv/versions/3.7.0/lib/python3.7/site-packages/nvr/nvr.py", line 561, in main
    nvr.server.close()
AttributeError: 'NoneType' object has no attribute 'close'```
mhinz commented 5 years ago

"Occasional"? :)

davidosomething commented 5 years ago

i always start with PYTHONWARNINGS=ignore nvr -s (and optionally a filename) it might be when there's a hanging process (e.g. crashed terminal leaving invalid socket file)

just upgraded to your latest release, will let you know if i see it again

mhinz commented 5 years ago

Maybe PYTHONWARNINGS=default would get us a hint. :)

In the meanwhile I'll check if I can break nvr by giving it stale sockets etc.

mhinz commented 5 years ago

I did another few fixes today. Accessing nvr.server when it's None should not happen anymore.

I also fixed a few warnings that should only happen with PYTHONWARNINGS=default, but some can't be fixed from my side. They need changes in pynvim. But these are unclosed transport warnings and can be ignored.

Please reopen this as soon as you get an issue again.