2017-12-05 17:44 GMT+09:00 Ingo Karkat <[email protected]>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 05-Dec-2017 08:45 +0100, C v.St. wrote: > > > > On 12/05/2017 at 06:41 AM Kazunobu Kuriyama wrote: > >>> 2017-12-05 8:58 GMT+09:00 C.v.St <http://C.v.St>. > >>> <[email protected] <mailto:[email protected]>>: > > … > >>> Remembering a similar case, I killed 'diodon' ((...), and > >>> without it, tests pass. I reproduced this on both systems and > >>> remotely between them (ssh -X ...) > > … > >>> Stucki > >> > > … > >> is the case, please try running `make test_gui` in the `src` > >> directory several times to make sure that the test gets passed > >> successfully at last. > > > > It definitely fails, as long as 'diodon' is active. (tried in a few > > UBUNTUs and DEBIANs). > > > >> Another is that the clipboard manager interferes with the test. > >> When this is the case, please turn it off while you run the test > >> suite. > > … Did that already, and on all tested systems test passes, but only > > if NO diodon is running. > > > >> Of course, the best for me is that you send us a patch for fixing > >> it :) > > > > Sorry, I'm a long time 'user' of vim, unable to work without it, > > but never learned programming real problems on it. So it would need > > weeks. > > I can confirm this issue; have noticed it on my Ubuntu 16.04 LTS > systems and Diodon 1.3.0, too. Diodon does not actively modify the > clipboard; it just provides a clipboard history (and I have configured > it to also capture X selections for the history). Therefore, it > *should* be able to coexist peacefully with Vim's tests; maybe this is > a timing issue?
It's one of the two factors which I think end up the trouble. That can be caused by the procedure for both Vim and the clipboard manager to comply the protocol described in https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#use_of_selection_atoms . It definitely takes longer time than that taken by the basic interaction that is to happen when the participants are only Vim and the X server (the CLIPBOARD selection); it inevitably involves ownership and data transfers in an interactive manner between Vim and the clipboard manager. Another factor is that the current implementation of Vim cannot handle the case where a SelectionRequest event, which is supposed to send from the clipboard manager to Vim in the wake of a SelectionClear event indirectly from Vim to the clipboard manager, comes to Vim during an on-going procedure of handling another SelectionRequest event. In short, it cannot handle multiple selection requests concurrently. So, unfortunately, the problem is not that simple... Kazunobu Unfortunately, I don't know how to troubleshoot this; > best I could do is temporarily shut down Diodon during test runs with > this Bash function (that runs inside a wrapper script around "make test"): > > #v+ > diodonWorkaround() > { > # XXX: The diodon clipboard manager disrupts the test_gui.vim > > Test_quoteplus() > # We need to stop it during test execution. > diodonPid=$(pgrep diodon) > if [ "$diodonPid" ]; then > kill -9 "$diodonPid" > > finally() > { > diodon %u > } > trap 'finally' EXIT > fi > } > #v- > > - -- regards, ingo > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQEcBAEBCAAGBQJaJlxQAAoJEA7ziXlAzQ/vSPEH/ieXpdCWvvTNRlciohvCX6e4 > SvOgIW+pV6OYIU0TLAasa0VpPaGhpLPS+VnBEBu3gzXmIjPpV2n6GdFwyOwmzy1F > nMrv+lFPRAUp7/ZDDrCUif7ASrYsqiH+96RAapACTRMDMp1s2zom0Q7eFd5PZ6LS > xnyc6FTf/Vbe/TpILhBCiyT22HRiqLBuoBEhPnPkwvE4x6H0HCQoUOJq4UTw7unJ > 21wXYTWjWuXBCpzsCkUiosyGSB769ijhy+kmQAkB4B4+9ZrWKPpT45Ek0GNs1PB7 > Y6lkHgNXkDxJLzuDBMn+k26Eez0MhfVcQLs7VWLPEEOUQWFdOmi8DVob/3b5lwI= > =Uzt7 > -----END PGP SIGNATURE----- > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
