From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes Newsgroups: gmane.emacs.bugs Subject: bug#57385: 28.1.91; project-find-regexp fails over tramp Date: Wed, 24 Aug 2022 18:17:51 +0300 Message-ID: <87a67tu0v4.fsf@gmail.com> 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="34338"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.91 (gnu/linux) To: 57385@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 17:23:18 2022 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 1oQsDt-0008hm-Hx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 17:23:17 +0200 Original-Received: from localhost ([::1]:50446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQsDs-0004Pl-IL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 11:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQs9n-00024d-MM for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:19:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQs9m-0004pS-AI for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQs9l-0008VS-UP for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Andr=C3=A9?= A. Gomes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57385 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166135428132609 (code B ref -1); Wed, 24 Aug 2022 15:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Aug 2022 15:18:01 +0000 Original-Received: from localhost ([127.0.0.1]:47668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQs8n-0008Tc-3L for submit@debbugs.gnu.org; Wed, 24 Aug 2022 11:18:01 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQs8l-0008TQ-5T for submit@debbugs.gnu.org; Wed, 24 Aug 2022 11:18:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQs8l-0001Ze-06 for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:17:59 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:38457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQs8i-0004lT-TE for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 11:17:58 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id q7so20753328lfu.5 for ; Wed, 24 Aug 2022 08:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:from:to:cc; bh=4k0TYUua+a/8RbMPBhln8zaVwKD9whEvRUrDSpFpang=; b=Hrmr2aAZiJx9MVDvorBALDkPgkptZUG1IFOA+Z0WoRZV5scsQxkzebOZqu7grMGTPm y4uH+Z/3k+2GpxPumZiHVkmkSuBGSQ8dVx9eQATv1cGEqb7H/8uF9QRyKrK+AS+uso7O MX213NyM5hiCbvW06EdqaZCbQA/h3eal66IEL3s5SUbZ81wHh72DfDLXv4+v7cQNoS2N kAzXT1lcOIpcAuwRjJ6SUxt+wnkKALDsLlVVqQ8zSOvdr2s3O1AC/w9SkGx6tOzlcptv ONvFAQ/WtnXg1FhJXk+XQpuJzmF2YSXrk/5SLJhFikFFysbUDpgOyZBQPh8pH9qumc0f FdQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:x-gm-message-state:from:to:cc; bh=4k0TYUua+a/8RbMPBhln8zaVwKD9whEvRUrDSpFpang=; b=sjPyuXNrNX3oSYffv8Z9Pw96tx0vF5L2yLoig8DaIZ+IizwnUtf0qvjwDU0I4VfRBI 9ZP0x8neoDi3kxBbHSR9jFvhJH1eEEyLNBQJyXqxDsUYs4lrG+iAtKpDcEGvO9BRgQR/ CFc2a39Ccw+ZmasUXBnc7XjSUEFXnSpbqDRK91iQpM6B4E2AkfimOCgZdMBfxAwlyrO1 +gbApbctZ75LUYMqZBMwQCPIvbcewZpdvLgaM4l5E9vGnAz+0tftRbhbY6K7xy+U7xCa p0kkgcdf+AY0/fQqJBC6maBfSFslJ5UPgOwwU0AeNgrpLkC9BmzxdRUtWC0SrYsva2Ie 5mBA== X-Gm-Message-State: ACgBeo1R0tziSruAik/32InvZvY3chqfz5ubaRts7kha9GzcqMVut/+T By3ID7RNoH7cRjLH6fMbANKyqGYk1qwkkw== X-Google-Smtp-Source: AA6agR6hS+L8erdGsTvWq1c7xeWGLzNSj77KghskT7paU+7O5tjZesqtVjJFSWTiZgHpBdRpaQY/SA== X-Received: by 2002:a05:6512:3404:b0:48c:e32d:c9a0 with SMTP id i4-20020a056512340400b0048ce32dc9a0mr10673425lfr.212.1661354274459; Wed, 24 Aug 2022 08:17:54 -0700 (PDT) Original-Received: from guix-xps13 (95-27-42-219.broadband.corbina.ru. [95.27.42.219]) by smtp.gmail.com with ESMTPSA id e18-20020a05651236d200b00492b0d23d24sm999659lfs.247.2022.08.24.08.17.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 08:17:53 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=andremegafone@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:240637 Archived-At: Hi Emacs, It seems that running project-find-regexp fails over tramp. Any idea? Thanks. Here's the backtrace: --8<---------------cut here---------------start------------->8--- (split-string (debug) (apply #'vc-git--run-command-string nil "ls-files" = args) "\0" t) [no locals] (mapcar #'(lambda (file) (concat default-directory file)) (split-string (= debug) (apply #'vc-git--run-command-string nil "ls-files" args) "\0" t)) [no locals] (setq files (mapcar #'(lambda (file) (concat default-directory file)) (sp= lit-string (debug) (apply #'vc-git--run-command-string nil "ls-files" args)= "\0" t))) [no locals] (let ((default-directory (expand-file-name (file-name-as-directory dir)))= (args '("-z")) (vc-git-use-literal-pathspecs nil) files) (setq args (appen= d args '("-c" "-o" "--exclude-standard"))) (if extra-ignores (progn (setq a= rgs (append args (cons "--" (mapcar #'(lambda (i) (format ":(exclude,glob,t= op)%s" (if (string-match "\\*\\*" i) i (if (string-match "\\./" i) (setq i = (substring i 2)) (setq i (concat "**/" i)) (if (string-match "/\\'" i) (set= q i (concat i "**")))) i))) extra-ignores)))))) (setq files (mapcar #'(lamb= da (file) (concat default-directory file)) (split-string (debug) (apply #'v= c-git--run-command-string nil "ls-files" args) "\0" t))) (if (project--vc-m= erge-submodules-p default-directory) (progn (let* ((submodules (project--gi= t-submodules)) (sub-files (mapcar #'(lambda (module) (if (file-directory-p = module) (progn (project--vc-list-files (concat default-directory module) ba= ckend extra-ignores)))) submodules))) (setq files (apply #'nconc files sub-= files))))) (delete-consecutive-dups files)) default-directory =3D "/ssh:192.168.1.82#8022:/data/data/com.termux/fil= es/home/repos/ecl/" vc-git-use-literal-pathspecs =3D nil dir =3D "/ssh:192.168.1.82#8022:/data/data/com.termux/files/home/repos/= ecl/" backend =3D Git extra-ignores =3D nil args =3D ("-z" "-c" "-o" "--exclude-standard") files =3D nil (let nil (let ((default-directory (expand-file-name (file-name-as-directo= ry dir))) (args '("-z")) (vc-git-use-literal-pathspecs nil) files) (setq ar= gs (append args '("-c" "-o" "--exclude-standard"))) (if extra-ignores (prog= n (setq args (append args (cons "--" (mapcar #'(lambda (i) (format ":(exclu= de,glob,top)%s" (if (string-match "\\*\\*" i) i (if (string-match "\\./" i)= (setq i (substring i 2)) (setq i (concat "**/" i)) (if (string-match "/\\'= " i) (setq i ...))) i))) extra-ignores)))))) (setq files (mapcar #'(lambda = (file) (concat default-directory file)) (split-string (debug) (apply #'vc-g= it--run-command-string nil "ls-files" args) "\0" t))) (if (project--vc-merg= e-submodules-p default-directory) (progn (let* ((submodules (project--git-s= ubmodules)) (sub-files (mapcar #'(lambda (module) (if (file-directory-p mod= ule) (progn (project--vc-list-files (concat default-directory module) backe= nd extra-ignores)))) submodules))) (setq files (apply #'nconc files sub-fil= es))))) (delete-consecutive-dups files))) [no locals] (cond ((eq backend 'Git) (let nil (let ((default-directory (expand-file-n= ame (file-name-as-directory dir))) (args '("-z")) (vc-git-use-literal-paths= pecs nil) files) (setq args (append args '("-c" "-o" "--exclude-standard"))= ) (if extra-ignores (progn (setq args (append args (cons "--" (mapcar #'(la= mbda (i) (format ":(exclude,glob,top)%s" (if (string-match "\\*\\*" i) i (i= f ... ... ... ...) i))) extra-ignores)))))) (setq files (mapcar #'(lambda (= file) (concat default-directory file)) (split-string (debug) (apply #'vc-gi= t--run-command-string nil "ls-files" args) "\0" t))) (if (project--vc-merge= -submodules-p default-directory) (progn (let* ((submodules (project--git-su= bmodules)) (sub-files (mapcar #'(lambda (module) (if (file-directory-p modu= le) (progn (project--vc-list-files ... backend extra-ignores)))) submodules= ))) (setq files (apply #'nconc files sub-files))))) (delete-consecutive-dup= s files)))) ((eq backend 'Hg) (let nil (let ((default-directory (expand-fil= e-name (file-name-as-directory dir))) args) (setq args (nconc args '("-mcar= du" "--no-status" "-0"))) (if extra-ignores (progn (setq args (nconc args (= mapcan #'(lambda (i) (list "--exclude" i)) extra-ignores))))) (let ((temp-b= uffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer = temp-buffer) (unwind-protect (progn (apply #'vc-hg-command t 0 "." "status"= args) (mapcar #'(lambda (s) (concat default-directory s)) (split-string (b= uffer-string) "\0" t))) (and (buffer-name temp-buffer) (kill-buffer temp-bu= ffer))))))))) [no locals] project--vc-list-files("/ssh:192.168.1.82#8022:/data/data/com.termux/file= s/home/repos/ecl/" Git nil) dir =3D "/ssh:192.168.1.82#8022:/data/data/com.termux/files/home/repos/= ecl/" backend =3D Git extra-ignores =3D nil --8<---------------cut here---------------end--------------->8--- In GNU Emacs 28.1.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, c= airo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Guix System Configured using: 'configure CONFIG_SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.= 1.8/bin/bash SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin= /bash --prefix=3D/gnu/store/c36vz6k65nvi3lbawcmma4wpy5m6cwr2-aadcg-emacs-28.1.91 --enable-fast-install --with-modules --with-cairo --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Memory information: ((conses 16 720251 121643) (symbols 48 59845 80) (strings 32 215755 11847) (string-bytes 1 6865269) (vectors 16 125544) (vector-slots 8 2419028 75894) (floats 8 1097 746) (intervals 56 4478 1261) (buffers 992 62)) --=20 Andr=C3=A9 A. Gomes "You cannot even find the ruins..."