Closed edleeman17 closed 4 years ago
The child process used for doing the pathfinding has not launched, or not connected yet, hence server_connection
is None
instead of a connection object.
How soon did this occur after starting Vim? Perhaps it just hadn't started up fast enough to be ready to receive requests. Adding a check for that situation and displaying a better error message (or waiting for the server to load) would be a good idea, I'll do that soon.
Thank you! here's an example of what is happening for me.
I just pushed some changes, could you update to at least d58490bfa2320a4202ede0e50f63145375331434 and let me know what happens then?
Okay, new error this time
line 18:
Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "/home/ed/.vim/plugged/pathfinder.vim/pathfinder/client.py", line 80, in poll_responses
self.server_connection = connection.Client(self.file_path)
File "/usr/lib/python3.8/multiprocessing/connection.py", line 502, in Client
c = SocketClient(address)
File "/usr/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ed/.vim/plugged/pathfinder.vim/pathfinder/client.py", line 86, in poll_responses
raise Exception(
Exception: Pathfinding server process exited with return code {return_code}```
Are you using Neovim? If you are I think I know the problem. --not-a-term
isn't an option for Neovim, instead we should be using --headless
.
I am using neovim... :D
Yeah, that's probably it then, I'll push a hopeful fix in a minute
Ok can you try it with d72b38683be8f8744e35287b3996cb42e3df8916? I can't test since I only have regular Vim/GVim installed
Error detected while processing function PathfinderLoop[2]..provider#python3#Call:
line 18:
Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
File "/home/ed/.vim/plugged/pathfinder.vim/pathfinder/client.py", line 99, in poll_responses
self.server_connection = connection.Client(self.file_path)
File "/usr/lib/python3.8/multiprocessing/connection.py", line 502, in Client
c = SocketClient(address)
File "/usr/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ed/.vim/plugged/pathfinder.vim/pathfinder/client.py", line 105, in poll_responses
raise Exception(
Exception: Pathfinding server process exited with return code 1
No luck, I'm afraid, thank you for your effort though!
I think we need to add something to fetch and log stdout/stderr from the child process so that we can see what has gone wrong.
I have the latest
python3
and did apip3 install
fortimers
andpopupwin