unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 48067@debbugs.gnu.org
Subject: bug#48067: 28.0.50; Tramp error: cannot determine gio monitor
Date: Wed, 28 Apr 2021 18:25:54 +0200	[thread overview]
Message-ID: <87v9864bql.fsf@gmx.de> (raw)
In-Reply-To: <87zgxixx8j.fsf@posteo.net> (Thierry Volpiatto's message of "Wed,  28 Apr 2021 15:06:31 +0000")

Thierry Volpiatto <thievol@posteo.net> 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-exists-p t
> 17:01:09.974262 tramp-get-file-property (8) # /home/thierry/tmp file-directory-p t
> 17:01:14.119915 tramp-sh-gio-monitor-process-filter (6) # #<process gio>
> /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 #<process gio>
> 17:01:14.121981 tramp-file-notify-process-sentinel (5) # Sentinel
> called: `#<process gio>' `processus arrêté
> '
> 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 #<process gio>
> 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-directory-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
=> "2.4.5.27.2"

M-: (file-notify-add-watch "/ssh:freebsd12:/tmp" '(change attribute-change) 'my-notify-callback)
=> #<process gio>

albinus@freebsd12:~ % touch /tmp/test.txt
=> Event (#<process gio> created "/ssh:freebsd12:/tmp/test.txt")

albinus@freebsd12:~ % rm /tmp/test.txt
=> Event (#<process gio> 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
=> "2.5.1-pre"

M-: (file-notify-add-watch "/ssh:freebsd12:/tmp" '(change attribute-change) 'my-notify-callback)
=> #<process gio>

albinus@freebsd12:~ % touch /tmp/test.txt
=> Event (#<process gio> created "/ssh:freebsd12:/tmp/test.txt")

albinus@freebsd12:~ % rm /tmp/test.txt
=> Event (#<process gio> deleted "/ssh:freebsd12:/tmp/test.txt")
--8<---------------cut here---------------end--------------->8---

Exactly the same events.

> Thanks.

Best regards, Michael.





  parent reply	other threads:[~2021-04-28 16:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27 16:58 bug#48067: 28.0.50; Tramp error: cannot determine gio monitor Thierry Volpiatto
2021-04-27 19:19 ` Michael Albinus
2021-04-27 21:38   ` Thierry Volpiatto
2021-04-28  5:59     ` Thierry Volpiatto
2021-04-28  7:38       ` Michael Albinus
2021-04-28 10:56         ` Thierry Volpiatto
2021-04-28 11:16           ` Michael Albinus
     [not found]             ` <87czuefu94.fsf@posteo.net>
2021-04-28 13:57               ` Michael Albinus
     [not found]                 ` <87zgxi1nci.fsf@posteo.net>
     [not found]                   ` <87zgxixx8j.fsf@posteo.net>
2021-04-28 16:25                     ` Michael Albinus [this message]
     [not found]                       ` <87tunqxrii.fsf@posteo.net>
2021-04-28 17:39                         ` Michael Albinus
2021-04-28 18:28                           ` Thierry Volpiatto
2021-04-28 18:47                           ` Thierry Volpiatto
2021-04-28 18:56                             ` Michael Albinus
2021-04-29  5:33                               ` Thierry Volpiatto
2021-04-29  7:17                                 ` Michael Albinus
2021-04-29  7:48                                   ` Thierry Volpiatto
2021-04-29  6:09                               ` Thierry Volpiatto
2021-04-29  6:46                                 ` Thierry Volpiatto
2021-04-29  8:11                                   ` Michael Albinus
2021-04-29  8:42                                     ` Thierry Volpiatto
     [not found]                                     ` <87r1it5u0q.fsf@posteo.net>
     [not found]                                       ` <87pmydz9my.fsf@gmx.de>
2021-04-29 10:55                                         ` Michael Albinus
2021-04-29 11:26                                           ` Thierry Volpiatto
2021-04-29 11:30                                             ` Thierry Volpiatto
2021-04-29 13:09                                               ` Michael Albinus
2021-04-29 13:07                                             ` Michael Albinus
2021-04-29 13:20                                               ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9864bql.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=48067@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).