peterbjorgensen / sved

Synctex support for Vim and Evince through DBus
37 stars 10 forks source link

freeze in neovim on `:call SVED_Sync()` #20

Closed highlando closed 1 year ago

highlando commented 1 year ago

I have upgraded my OS recently to Linux Mint 20.3 but I had this issue before.

When I call SVED_Sync() in neovim nothing happens (until I press cntrl-c to terminate the command).

Here is my setup

nvim = 0.4.3 (installed from the debian package with python support)
dbus-python = 1.2.16
vimtex, sved ... installed via `plug`

I have tweaked the evinceSync.py to always do the logging and I get the following to log files

2022-11-08 12:38:14,488 DEBUG:stdout encoding is utf-8
2022-11-08 12:38:14,488 DEBUG:got following arguments /home/heiland/.vim/plugged/sved/ftplugin/evinceSync.py 1
2022-11-08 12:38:14,488 DEBUG:connect_bus: connecting to dbus
2022-11-08 12:38:14,489 DEBUG:importing pynvim module
2022-11-08 12:38:14,513 DEBUG:attaching to neovim through socket /tmp/nvimsocket
2022-11-08 12:38:14,513 DEBUG:Using selector: EpollSelector
2022-11-08 12:38:26,011 DEBUG:stdout encoding is utf-8
2022-11-08 12:38:26,011 DEBUG:got following arguments /home/heiland/.vim/plugged/sved/ftplugin/evinceSync.py /home/heiland/work/latex/22-yk-lpv-pod-cae/paper.pdf 82 1 /home/heiland/work/latex/22-yk-lpv-pod-cae/paper.tex
2022-11-08 12:38:26,021 DEBUG:connect_bus: connecting to dbus
2022-11-08 12:38:26,023 DEBUG:sync_view: Forward syncing
2022-11-08 12:38:26,023 DEBUG:connect_daemon: connecting to Evince daemon

Any idea how to debug this?

highlando commented 1 year ago

My apologies -- I solved it by calling

python3 /home/heiland/.vim/plugged/sved/ftplugin/evinceSync.py /home/heiland/work/latex/22-yk-lpv-pod-cae/paper.pdf 82 1 /home/heiland/work/latex/22-yk-lpv-pod-cae/paper.tex

directly to find out (through the dbus error messages) that I only had some shallow version of evince installed.

Then apt install evince fixed the problem for me.

peterbjorgensen commented 1 year ago

Thanks, I guess it would be useful if the plugin would print exceptions instead of just ignoring crashes silently and not logging them either.

highlando commented 1 year ago

definitely -- once again, when it stopped working, I could locate the source of trouble through

python3 ${PATH-TO-EVINCESYNCPY} ${PATH-TO-PDF} 82 1 ${PATH-TO-TEX}

(this time pynvim was gone for some reasons)