From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#48067: 28.0.50; Tramp error: cannot determine gio monitor Date: Thu, 29 Apr 2021 05:33:08 +0000 Message-ID: <87wnsltzda.fsf@posteo.net> References: <87eeev8xq7.fsf@posteo.net> <87mttjcz6s.fsf@gmx.de> <87pmyfmmo4.fsf@posteo.net> <87h7jrj664.fsf@posteo.net> <87eeeudfkc.fsf@gmx.de> <8735vallc2.fsf@posteo.net> <87tunqbqw9.fsf@gmx.de> <87czuefu94.fsf@posteo.net> <87bl9y5x66.fsf@gmx.de> <87zgxi1nci.fsf@posteo.net> <87zgxixx8j.fsf@posteo.net> <87v9864bql.fsf@gmx.de> <87tunqxrii.fsf@posteo.net> <87fsza1f7r.fsf@gmx.de> <875z066y7j.fsf@posteo.net> <877dkm1bms.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12049"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48067@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 29 07:49:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbzXx-000334-6K for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 07:49:09 +0200 Original-Received: from localhost ([::1]:51046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbzXw-0004V9-8m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 01:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbzXp-0004V2-VS for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 01:49:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbzXp-0001PW-Nv for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 01:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbzXp-0000xf-L3 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 01:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Apr 2021 05:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48067 X-GNU-PR-Package: emacs Original-Received: via spool by 48067-submit@debbugs.gnu.org id=B48067.16196753293674 (code B ref 48067); Thu, 29 Apr 2021 05:49:01 +0000 Original-Received: (at 48067) by debbugs.gnu.org; 29 Apr 2021 05:48:49 +0000 Original-Received: from localhost ([127.0.0.1]:54603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbzXc-0000xC-Gp for submit@debbugs.gnu.org; Thu, 29 Apr 2021 01:48:48 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:39437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbzXZ-0000wu-PW for 48067@debbugs.gnu.org; Thu, 29 Apr 2021 01:48:47 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4E30C2400FC for <48067@debbugs.gnu.org>; Thu, 29 Apr 2021 07:48:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619675319; bh=J3yBF3yePnR422KWN90TV6ZKZ80W01VMTVYIrqVpn2k=; h=From:To:Cc:Subject:Date:From; b=I3dONHRHd5kh05SPOeCFboyP8UsxFWAnUBdUF1SmyJjRXswCrYZ200pE0tmiqAzsd t/sMJ3oL8tobmO4KvIKbDhpaIYHw4jEEvc45iHj/9EJBsi8gseY2R02UQEExOJf4q2 AbXRiCPRsGdP9HOTjWrZ+m+lWZqnmXdXrexaVrpB2jGza+ImTx6Yxs/k3cOpLV801s lTEr6xfmKaWs53TWTcJPwjeFsjEK6a0xaYNJUgJ1xGkj1sCGF4MDDKQoHWLHEj//7R AbpV/MhU+bUwkixLAwRn9gM335MN6sestxCKk6n8qqRV9e1DoRxG4avxKweitgECnp /dB98tvdzhNOg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FW4LF71ttz9rxG; Thu, 29 Apr 2021 07:48:37 +0200 (CEST) In-reply-to: <877dkm1bms.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205151 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > [[PGP Encrypted Part:OK]] > Thierry Volpiatto writes: > >> This happen on emacs-27: >> >> ;; file-notify-handle-event (file-notify (#> (changes-don= e-hint) "/sudo:root@IPadS340:/home/thierry/tmp/test.txt" nil) file-notify-c= allback) >> ;; file-notify-handle-event (file-notify (#> (attribute-c= hanged) "/sudo:root@IPadS340:/home/thierry/tmp/test.txt" nil) file-notify-c= allback) >> >> On emacs-28 nothing happen when modifying externally same directory >> (tmp). > > Strange. Have you tried "M-x tramp-cleanup-all-connections"? Prior to > connecting the remote machine. I always start a new emacs session for debugging. > Otherwise, I have no idea (it works for me as I have shown). No, it is not the same example, please bear with me, try with same conditions and with tramp-debug and file-notify-debug set: 1) Install helm 2) open a terminal outside emacs 3) run in emacs helm-find-files and navigate to /sudo::/home/you/tmp/ 4) go to the terminal opened in 2) and touch ~/tmp/test.txt 5) go back to emacs and see nothing happened Now do the same from emacs-27 and see in 5) that an *rm-watch happened. Here the relevant logs for emacs-28 and emacs-27: ;; Emacs 28 001 07:12:50.967691 tramp-sh-gio-monitor-process-filter (6) # #> 002 (gio monitor:29342): GLib-GIO-1;33mWARNING0m **: 34m07:12:50.946[0m: Ca= n't find module 'help' specified in GIO_USE_FILE_MONITOR 003 07:12:50.967794 tramp-get-connection-property (7) # gio-file-monitor un= def; cache used: nil 004 07:12:50.967879 tramp-set-connection-property (7) # gio-file-monitor un= def 005 07:12:54.974248 tramp-get-file-property (8) # /home/thierry/tmp file-di= rectory-p t; inhibit: 10; cache used: t; cached at: 07:12:50 006 07:13:00.401319 tramp-sh-gio-monitor-process-filter (6) # #> 007 /home/thierry/tmp: /home/thierry/tmp/test.txt: created 008 /home/thierry/tmp: /home/thierry/tmp/test.txt: changes done 009 /home/thierry/tmp: /home/thierry/tmp/test.txt: attributes changed 010 07:13:00.401503 tramp-get-connection-property (7) # gio-file-monitor un= def; cache used: nil 011 07:13:00.401656 tramp-sh-gio-monitor-process-filter (10) # Rest string: 012 /home/thierry/tmp: /home/thierry/tmp/test.txt: created 013 /home/thierry/tmp: /home/thierry/tmp/test.txt: changes-done-hint 014 /home/thierry/tmp: /home/thierry/tmp/test.txt: attribute-changed 015 07:13:10.485947 tramp-get-file-property (8) # /home/thierry/tmp file-di= rectory-p undef; inhibit: 10; cache used: nil; cached at: 07:12:50 ;; Emacs 27 001 07:21:11.964043 tramp-sh-gio-monitor-process-filter (6) # #> 002 /home/thierry/tmp: /home/thierry/tmp/test.txt: created 003 /home/thierry/tmp: /home/thierry/tmp/test.txt: changes done 004 /home/thierry/tmp: /home/thierry/tmp/test.txt: attributes changed 005 07:21:11.980001 tramp-accept-process-output (10) # gio<4> 0 run nil 006 07:21:11.980151 tramp-handle-file-notify-rm-watch (6) # Kill #> 007 07:21:11.980343 tramp-file-notify-process-sentinel (5) # Sentinel calle= d: `#>' `processus arr=C3=AAt=C3=A9' 008 07:21:11.980657 tramp-accept-process-output (10) # gio<4> 0 signal nil 009 07:21:11.980747 tramp-handle-file-notify-rm-watch (6) # Kill #> 010 07:21:11.988139 tramp-sh-gio-monitor-process-filter (10) # Rest string: You can see that in line 009 in emacs-27 log an *rm-watch happen whereas in emacs28 it doesn't happen. > Is there a chance I could debug, connecting your remote machine? Yes sure, I have just to create an account with an installed emacs28 for you, but please try first on your side with same recipe. > Otherwise, I would need to write special instrumentations in > tramp-sh-gio-monitor-process-filter just for you. > > Best regards, Michael. > > > [[End of PGP Encrypted Part]] =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmCKSLETHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk4qoC/9+D1TlUNQ1JHapPH+PChLtV1ZXA909 1a8LYJO952258vJf98ipJZdNPRqyL08COp+4h729fx2LgAUdh0pl9xqvmA9g37Qk i0Nfw3pjucEHGqGoUhG1n0WLA6kdadTFGpphtmn/bTYjb5X/Y4zwoTQSkYzmOlvz UXVbSurknk7x8pbIIiik71EMB/Wxj706fo0vpwxK0qJ9/UzUy/cszB2+YaST2AD3 u3aJn2vdYtaqSy8VZQjQXOed4uUzKeJWSDLpQQftCFNxPBRLO9LxfD+dGTZlcalU jz61n7fc+0/oJnYKHvVowtySzD7CSNFnacf5uQH49+2m8BIiEPuApWPNupEL57bE rpFlHhuYQE26QOxaBW7EISXT84/uaJuJbSHIvSxw4rFMV7C/hYC6g6bkqyzsIiiC F/a/lzAU65wZu23eWwfMif97RsTX7j9B1vao82eePuo+mad8n8Y9GZKB3w3m5dI2 NO/6QJqF2PIAHwIIu5X1WArneotTsHMnhwk= =I5WG -----END PGP SIGNATURE----- --=-=-=--