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 09:38:27 +0200 Message-ID: <87eeeudfkc.fsf@gmx.de> References: <87eeev8xq7.fsf@posteo.net> <87mttjcz6s.fsf@gmx.de> <87pmyfmmo4.fsf@posteo.net> <87h7jrj664.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27285"; 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 09:39:12 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 1lbemt-0006yk-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 09:39:11 +0200 Original-Received: from localhost ([::1]:44676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbemr-0003qG-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 03:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbemk-0003q4-AY for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 03:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbemk-0002Oo-2x for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 03:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbemj-0000pU-UW for bug-gnu-emacs@gnu.org; Wed, 28 Apr 2021 03:39: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 07:39: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.16195955183154 (code B ref 48067); Wed, 28 Apr 2021 07:39:01 +0000 Original-Received: (at 48067) by debbugs.gnu.org; 28 Apr 2021 07:38:38 +0000 Original-Received: from localhost ([127.0.0.1]:51607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbemM-0000oo-D7 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 03:38:38 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:41031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbemJ-0000oW-NM for 48067@debbugs.gnu.org; Wed, 28 Apr 2021 03:38:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619595508; bh=yJyoOe9EXvJLzZoAZLyqN8KOtrF2Wzoz6Vopz9qLZr0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WdLU0YTMXpxBInxZdw1REDdkrBmBydDBhYpgHip3DGnVGERliHgj3JzkY+ezbyd4b 1mdO22EjVTxCnRA9R3VXRWiOsACI0lTzBDAknLX1DiPOJK/2Yc6OnnXGqt75LMn2sM eDwrOHOaKP7fx6S9q8ef4c7JRdOmLGlhgbXYxuuI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.147.93]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbAh0-1l0P9Q2aOu-00beKO; Wed, 28 Apr 2021 09:38:28 +0200 In-Reply-To: <87h7jrj664.fsf@posteo.net> (Thierry Volpiatto's message of "Wed, 28 Apr 2021 05:59:29 +0000") X-Provags-ID: V03:K1:wB4Haw0vKlqkDwpucEuBhBdAwXGS9DkuxW4tCoisSjw0mlbPlON ShhB5a+x5MsDIxUAuKvFvounF+yeOPuKncGopGeQtD1F2xsSLcna5grn5d0cORynQBiSlLa dtpJc6qeDc2iCUo0Mk6cKDkUUgkU3XM6iYNISbtUqMR85QBxHphxaBi1fYWP486I9YDral6 dclDeEbEvh7/57+74OgWA== X-UI-Out-Filterresults: notjunk:1;V03:K0:zU8wMO6SVkU=:kOPq25RFTdaWVvLiezMHZe rNxLcIJLNWNChr0B/1pDMgD9h4uLjfd96ForaCUaCOqSdjzEbwqI4/RlcxFieRT5xNmU2bBy8 qaAPC4ORN9Pux033468OJ1aZyrln7jzjiBLbxAl9xktYBDyFhPGZsbMpAnNv/zErHP1VVU0xW 3qUzndGAuMXryBpXXNqOvKsNPbVr8+qCbFQe0v4nMaffYawkZLuPlRFjBsLAJuasuwEjhSFGu h4t6ouE0Szc/GeeW03clAF1TxepXJ19kDoK02j5Kb84JIRFzm0EHRFT00X2ZIOJAUIZj/umTC rMPugC7AMr52xSegainTOLB69XjqzevXIuTu9SsLZJjDD6lSIqbDFpvlZDZAWmIOJBvCTpQEu auu7Q6zEdyjhBFNNrJLLBiVOOimJzMDWmKv+wuZLSQ8V9X/iSq/oG8v7rBmJraaAQz10VE5ah y3dv5xGAEzbx7vyHmSU7yLqny5nmkjQiUho2yZRu2/upJ/rOhzq2WN99e+HXgxcN+Scv5Scyo 7EP8goTBWYVH/DZpZfN6U68+VqTAey8YkzQcZpVseG/K2tdbEc1AaA618fNNf21AsoYXN0YPQ NNx8yP59bjJEVzKxFmRkOrujKZOmxPDsX61tNu1UP6n4TF1Y5SH/WO+Js3GdwXA+kYCunZ/1Y u/lPStjLe7rOtdTPZGlKtR8lKlxAHttoTiGey691zZ6gRGt8z9UJsG5vIDRVCE4O9CpOW9oXc BzKohPoyxdka39yxoPjJTPK3vZI665efvf6TWoWfafEG1vHzXrMLNrf/8mWGf5iNvt+jsyjI 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:205083 Archived-At: --=-=-= Content-Type: text/plain Thierry Volpiatto writes: >> Hi Michael, Hi Thierry, > More exactly, it seems gio command is correctly extracted in > `tramp-sh-handle-file-notify-add-watch` with > (tramp-get-remote-gio-monitor v) but later in the process filter > (tramp-connection-property-p proc "gio-file-monitor") returns nil. Does the appended patch fixes this? > Thanks. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /tmp/ediffdHBFUW 2021-04-28 09:36:25.118483724 +0200 --- /home/albinus/src/tramp/lisp/tramp-sh.el 2021-04-28 09:36:03.920592244 +0200 *************** *** 3731,3737 **** ;; Determine monitor name. (unless (tramp-connection-property-p proc "gio-file-monitor") (cond ! ;; We have seen this on cygwin gio and on emba. Let's make some assumptions. ((string-match "Can't find module 'help' specified in GIO_USE_FILE_MONITOR" string) (cond --- 3731,3738 ---- ;; Determine monitor name. (unless (tramp-connection-property-p proc "gio-file-monitor") (cond ! ;; We have seen this on cygwin gio and on emba. Let's make ! ;; some assumptions. ((string-match "Can't find module 'help' specified in GIO_USE_FILE_MONITOR" string) (cond *************** *** 3741,3747 **** ((eq system-type 'cygwin) (tramp-set-connection-property proc "gio-file-monitor" 'GPollFileMonitor)) ! (t (tramp-error proc 'file-error "Cannot determine gio monitor")))) ;; TODO: What happens, if several monitor names are reported? ((string-match "\ Supported arguments for GIO_USE_FILE_MONITOR environment variable: --- 3742,3749 ---- ((eq system-type 'cygwin) (tramp-set-connection-property proc "gio-file-monitor" 'GPollFileMonitor)) ! (t (tramp-set-connection-property ! proc "gio-file-monitor" tramp-cache-undefined)))) ;; TODO: What happens, if several monitor names are reported? ((string-match "\ Supported arguments for GIO_USE_FILE_MONITOR environment variable: --=-=-=--