From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#48067: 28.0.50; Tramp error: cannot determine gio monitor Date: Wed, 28 Apr 2021 18:25:54 +0200 Message-ID: <87v9864bql.fsf@gmx.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5613"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48067@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 28 18:28:01 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 1lbn2e-0001K0-7v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 18:28:00 +0200 Original-Received: from localhost ([::1]:56728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbn2d-0005AR-8x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 12:27:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbn1i-00049Q-EL for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 12:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbn1i-00056F-1X for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 12:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbn1h-000289-U9 for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 12:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Apr 2021 16:27: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.16196271678127 (code B ref 48067); Wed, 28 Apr 2021 16:27:01 +0000 Original-Received: (at 48067) by debbugs.gnu.org; 28 Apr 2021 16:26:07 +0000 Original-Received: from localhost ([127.0.0.1]:53906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbn0o-000271-Vi for submit@debbugs.gnu.org; Wed, 28 Apr 2021 12:26:07 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbn0k-00026U-RQ for 48067@debbugs.gnu.org; Wed, 28 Apr 2021 12:26:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619627156; bh=YCTdtx0SY1LPBhvTL1W9eAWApTtgUt7iLd8V5SqWCJ8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=c2EoY080WA2N4YqcII2lvAYkAzJ4utMS28ly6k+ClTBN6V8mvBQ7PqEU70J3a9pYB ApC6DSe7MFdaqxgx6GrM0ojHINbcGwKHt6B4cnjOejfeZdlhvjgvZIAO9VZzAb8DrS JhuS1ptnrkS7mJIrvcWO/vd6UZVqXq4zb9Y9gz8k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.147.93]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBm1U-1ljVip3PWW-00C7qE; Wed, 28 Apr 2021 18:25:55 +0200 In-Reply-To: <87zgxixx8j.fsf@posteo.net> (Thierry Volpiatto's message of "Wed, 28 Apr 2021 15:06:31 +0000") X-Provags-ID: V03:K1:ADlLWvY8NQ3jtJ42uINVs8gdDH31OsVN7wJLiwgdLFYWXTAreZ6 azjYTCJzlWC0MGRxUdByTHY/TXAqRZjvrJzXpsiV1sP0d+GemVwZYItuHVGRJBlqnC1ebsq lj+PT8PjJD2QnDNHeE2gnS6UCm94s4/RLJLsrmCJYGHBxOiZ+MWl6adoiZow+bzSGsGLa29 fICG8xCy5rqp/Drv0m7Gw== X-UI-Out-Filterresults: notjunk:1;V03:K0:cf3Q11ymAaE=:HxOvUb8X902nCD1BckhNqb ejtbnXAUnGOpcFyUq1asUCKBrb0/4SDm1ihBr2youeUHpok6iBovsaIYhFpxf1btw/2/jtgZ5 MuO1+Re4LIzucCslibV7A9uK2WJ1Vv6CwUj6MXjPbQB/eQ8rO5lnoqhtGI8I2IHBIgITJPXXM lOjYLR2V6IPB1G40H7Do3TfyWDO8XaQDaXOqUa+k3+zdbbrByq2jfiLyQJFvHp0WTu+73lV40 ozd9g3itID/pRxDErlnzpdEN3oCd32CYyKFynbZWp7H04EynxdiNYpc6qHb228Qf2sckWZeBt 2Y/pNsp9VZX5zcWElLOLXdMt6BZbQ/Wo33D2Mdvl3cz5+EWwTjygOSK9HR1Smxw6qbvPd9J9q em3ViBTGnjrWot6rjg4rO53hDAzH6pnoQKwq/zyxMZsu45TDNh3vUhcuq4q7iLpfCAasw/Wg8 kqq5H1qxJ3lmVplN2jfVIb9anmBli/b9J4/BkaEXZAm/jkFzWDIPFMa7JW0TxaJy+ddeoYl72 qMU5QRDymSMS6LcHdMDlgzF5XUkt7F7miuvldcsU6UmpTaLrn+DnR8YPSLZoZG+z/L3aOQUqh B4Imu4CPEFdne+llHAWWlBh/gDwE8rm0EhTcO1dM7Uq4f6jxqzFRhoTm2Bmef6rQGBobQLmqi f7nYCT9+6vNVobAvxntcHmN1/C6fCjzXTJu4BZzJ3walv43E1GWzjjznHCFaB2AXz8j0xIzVz 3DkcMlR5BXqA0UsKdOpijQSs4UcRvs1ypReBKmcoaLmTiScljPdsQVrl6y2XXOmgeselyKIo 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:205125 Archived-At: Thierry Volpiatto writes: Hi Thierry, > If it can help here the relevant part of the tramp log from emacs-27: > > 17:01:06.548820 tramp-get-file-property (8) # /home/thierry/tmp file-exis= ts-p t > 17:01:09.974262 tramp-get-file-property (8) # /home/thierry/tmp file-dire= ctory-p t > 17:01:14.119915 tramp-sh-gio-monitor-process-filter (6) # # > /home/thierry/tmp: /home/thierry/tmp/test.txt: created > /home/thierry/tmp: /home/thierry/tmp/test.txt: changes done > /home/thierry/tmp: /home/thierry/tmp/test.txt: attributes changed As you see, there're also local file names. > 17:01:14.121499 tramp-accept-process-output (10) # gio 0 run nil > 17:01:14.121681 tramp-handle-file-notify-rm-watch (6) # Kill # > 17:01:14.121981 tramp-file-notify-process-sentinel (5) # Sentinel > called: `#' `processus arr=C3=AAt=C3=A9 > ' > 17:01:14.122501 tramp-accept-process-output (10) # gio 0 signal nil > 17:01:14.122652 tramp-handle-file-notify-rm-watch (6) # Kill # > 17:01:14.122948 tramp-sh-gio-monitor-process-filter (10) # Rest string: > > 17:01:18.684045 tramp-get-file-property (8) # /home/thierry/tmp file-dire= ctory-p undef > > As you can see the *rm-watch is called. Yes. But we don't see why. And I also don't know how this is related to your problem. OK, a test. I use the handler from the elisp manual: --8<---------------cut here---------------start------------->8--- (defun my-notify-callback (event) (message "Event %S" event)) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- 1. Use Emacs 27 [albinus@gandalf ~]$ ~/src/emacs-27/src/emacs M-: tramp-version =3D> "2.4.5.27.2" M-: (file-notify-add-watch "/ssh:freebsd12:/tmp" '(change attribute-change)= 'my-notify-callback) =3D> # albinus@freebsd12:~ % touch /tmp/test.txt =3D> Event (# created "/ssh:freebsd12:/tmp/test.txt") albinus@freebsd12:~ % rm /tmp/test.txt =3D> Event (# deleted "/ssh:freebsd12:/tmp/test.txt") --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- 2. Use Emacs 28 [albinus@gandalf ~]$ ~/src/emacs/src/emacs M-: tramp-version =3D> "2.5.1-pre" M-: (file-notify-add-watch "/ssh:freebsd12:/tmp" '(change attribute-change)= 'my-notify-callback) =3D> # albinus@freebsd12:~ % touch /tmp/test.txt =3D> Event (# created "/ssh:freebsd12:/tmp/test.txt") albinus@freebsd12:~ % rm /tmp/test.txt =3D> Event (# deleted "/ssh:freebsd12:/tmp/test.txt") --8<---------------cut here---------------end--------------->8--- Exactly the same events. > Thanks. Best regards, Michael.