mhinz / neovim-remote

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

--serverlist does not work on WSL #144

Closed GeneZharov closed 2 years ago

GeneZharov commented 4 years ago
~ $ nvr --serverlist
Traceback (most recent call last):
  File "/home/gene/.local/bin/nvr", line 10, in <module>
    sys.exit(main())
  File "/home/gene/.local/lib/python3.7/site-packages/nvr/nvr.py", line 407, in main
    print_addresses()
  File "/home/gene/.local/lib/python3.7/site-packages/nvr/nvr.py", line 377, in print_addresses
    for conn in proc.connections('unix'):
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/__init__.py", line 1178, in connections
    return self._proc.connections(kind)
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/_pslinux.py", line 1516, in wrapper
    return fun(self, *args, **kwargs)
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/_pslinux.py", line 2073, in connections
    ret = _connections.retrieve(kind, self.pid)
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/_pslinux.py", line 969, in retrieve
    for fd, family, type_, laddr, raddr, status, bound_pid in ls:
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/_pslinux.py", line 913, in process_unix
    with open_text(file, buffering=BIGFILE_BUFFERING) as f:
  File "/home/gene/.local/lib/python3.7/site-packages/psutil/_common.py", line 727, in open_text
    return open(fname, "rt", **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/proc/net/unix'
~ $ ls /proc/net/
dev  if_inet6  ipv6_route  netlink  route  tcp  tcp6  udp  udp6  xt_qtaguid
~ $ nvr --version
nvr 2.4.0
pynvim 0.4.1
psutil 5.7.0
Python 3.7.5 (default, Nov 20 2019, 09:21:52)

/proc/net/unix interface is not implemented by Microsoft as I can see here: https://superuser.com/questions/1430343/wsl-fuser-command-not-working

mhinz commented 2 years ago

Ah, that should be solved as of WSL2.