From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: alexis purslane via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71200: TRAMP: Trying to do a project-find-file or (find-directory) using the podman method causes a (wrong-type-argument stringp nil) error Date: Sun, 26 May 2024 00:12:45 +0000 Message-ID: <_cjSz3e_d7dB-G6yi32s-DPrp4mzoDHxqSRzmME4I-ihzlXVEzxQ7vsUrIh5dEk0Ofp56PgvenniYybY9hX4zOgzD-Cuky_G05tWXjOG4YA=@pm.me> Reply-To: alexis purslane Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------d5979f164c71f088fb19cc3f2c2e13e3465ef399b0a9290613f98691998662b7"; charset=utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28077"; mail-complaints-to="usenet@ciao.gmane.io" To: 71200@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 26 02:14:16 2024 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 1sB1Wh-00075H-Fm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 02:14:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sB1WO-00035u-Vl; Sat, 25 May 2024 20:13:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sB1WM-00035B-O5 for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 20:13:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sB1WM-0000p8-G0 for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 20:13:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sB1WT-0001Tg-TD for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 20:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: alexis purslane Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2024 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71200 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.17166823934027 (code B ref -1); Sun, 26 May 2024 00:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 May 2024 00:13:13 +0000 Original-Received: from localhost ([127.0.0.1]:33487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB1Vg-00011v-99 for submit@debbugs.gnu.org; Sat, 25 May 2024 20:13:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB1Vc-0000vX-Uq for submit@debbugs.gnu.org; Sat, 25 May 2024 20:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sB1VS-0002pT-K7 for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 20:12:58 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sB1VM-0000jU-SX for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 20:12:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1716682370; x=1716941570; bh=naqPezqWU9oRKFT2X3VWpPGXvi3gg92IDMf1sk7ypKA=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=guv0g/FSwbIDQi0cDoBqLOljDAX6fUi7VXEQOWCL4jWM1M7sU4kAeo5FZByT446GJ cLwXdfMgleZRqXLB1Rt7CIqP+VbgwnNSm++8Nfy/fHgYA6ECEj3AFX8ef1MnYPNf9D tkwl0A9qZkVoJmmqQQPAcuYwm021e2Qr3MiZf/Bji1LJsY2tRMpt8be/4yuGUERwU2 R3uzv3Z7FHhcMVYPZq5FwHvOJQWU4s8D0nL/U5TAaCodRPXrZ++G/UHNzVv2AYI625 wjuU4AFuFGaAbvfBczijsEwZmwtDX5auFQnKOxr/TM/bs8WEqnGPY29yBTIQtyGuis KZKPSdkFBcVZg== Feedback-ID: 55030218:user:proton X-Pm-Message-ID: bd2855bbfc5c5bb2fcc2c772d939f80757b8f96f Received-SPF: pass client-ip=185.70.43.16; envelope-from=alexispurslane@pm.me; helo=mail-4316.protonmail.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285915 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------d5979f164c71f088fb19cc3f2c2e13e3465ef399b0a9290613f98691998662b7 Content-Type: multipart/mixed;boundary=---------------------3f910dfbdf3b59097943ffb9ce4ebe11 -----------------------3f910dfbdf3b59097943ffb9ce4ebe11 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 As the the title says, whenever I try to do project-find-* on a project th= at uses the podman TRAMP method, it spits out an error and otherwise does = nothing. Here's the backtrace: ``` Debugger entered--Lisp error: (wrong-type-argument stringp nil) split-string(nil "\0" t) project--vc-list-files("/podman:development:~/Development/embryo-engine/= " Git nil) #f(compiled-function (dir) #)("/podman:deve= lopment:~/Development/embryo-engine/") mapcan(#f(compiled-function (dir) #) ("/pod= man:development:~/Development/embryo-engine/")) #f(compiled-function (project &optional dirs) #)((vc Git "/podman:development:~/Development/embryo-engine/") ("/podman:= development:~/Development/embryo-engine/")) apply(#f(compiled-function (project &optional dirs) #) (vc Git "/podman:development:~/Development/embryo-engine/") ("/p= odman:development:~/Development/embryo-engine/")) project-files((vc Git "/podman:development:~/Development/embryo-engine/"= ) ("/podman:development:~/Development/embryo-engine/")) project-find-file-in(nil ("/podman:development:~/Development/embryo-engi= ne/") (vc Git "/podman:development:~/Development/embryo-engine/") nil) project-find-file() #("/podman:d= evelopment:~/Development/embryo-engine/") funcall(# "/= podman:development:~/Development/embryo-engine/") (lambda (&rest _) (funcall (dashboard-projects-backend-switch-function) = (dashboard-expand-path-alist "0|/podman:development:~/Development/embryo-e= ngine/" dashboard-projects-alist)))((item :tag #("=EE=AC=B4 /podman:develo= pment:~/Development/embryo-engine/" 0 1 (rear-nonsticky t display (raise 0= .01) font-lock-face (:family "Symbols Nerd Font Mono" :height 1.0) face (:= family "Symbols Nerd Font Mono" :height 1.0))) :action (lambda (&rest _) (= funcall (dashboard-projects-backend-switch-function) (dashboard-expand-pat= h-alist "0|/podman:development:~/Development/embryo-engine/" dashboard-pro= jects-alist))) :button-face dashboard-items-face :mouse-face highlight :bu= tton-prefix "" :button-suffix "" :format "%[%t%]" :button-overlay # :from # :to #) nil) widget-apply-action((item :tag #("=EE=AC=B4 /podman:development:~/Develo= pment/embryo-engine/" 0 1 (rear-nonsticky t display (raise 0.01) font-lock= -face (:family "Symbols Nerd Font Mono" :height 1.0) face (:family "Symbol= s Nerd Font Mono" :height 1.0))) :action (lambda (&rest _) (funcall (dashb= oard-projects-backend-switch-function) (dashboard-expand-path-alist "0|/po= dman:development:~/Development/embryo-engine/" dashboard-projects-alist)))= :button-face dashboard-items-face :mouse-face highlight :button-prefix ""= :button-suffix "" :format "%[%t%]" :button-overlay # :from # :to #) nil) widget-button-press(706) evil-ret-gen(nil nil) evil-ret(nil) funcall-interactively(evil-ret nil) command-execute(evil-ret) ``` I have a weird little snippet of code to fix it, and a sort-of analysis of= what I think is wrong, here: https://gist.github.com/alexispurslane/890ea= 9971787c979f8c59c8decf132c4. However, this fix is half-baked currently. Here's my emacs info: ``` Basic Info: = GNU Emacs 29.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-04-25 Build Flags: "--build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --prog= ram-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D= /usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --dat= adir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libe= xecdir=3D/usr/libexec --localstatedir=3D/var --runstatedir=3D/run --shared= statedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info = --with-cairo --with-dbus --with-gif --with-gpm=3Dno --with-harfbuzz --with= -jpeg --with-json --with-modules --with-native-compilation=3Daot --with-pg= tk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --= with-webp --with-xpm --with-xwidgets build_alias=3Dx86_64-redhat-linux-gnu= host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF = -O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -= pipe -Wall -Werror=3Dformat-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOUR= CE=3D3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-harde= ned-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annob= in-cc1 -m64 -march=3Dx86-64 -mtune=3Dgeneric -fasynchronous-unwind-tables= -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omi= t-leaf-frame-pointer ' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib6= 4/pkgconfig:/usr/share/pkgconfig CXX=3Dg++ 'CXXFLAGS=3D-O2 -flto=3Dauto -f= fat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3D= format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3D3 -Wp,-D_GLIBC= XX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-pro= tector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march= =3Dx86-64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-prot= ection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointe= r '" ``` This seems like it is probably a bug, and not just user error, so I hope t= his helps. Don't hesitate to let me know if you need more info. -----------------------3f910dfbdf3b59097943ffb9ce4ebe11 Content-Type: application/pgp-keys; filename="publickey - alexispurslane@pm.me - 0x41E61568.asc"; name="publickey - alexispurslane@pm.me - 0x41E61568.asc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="publickey - alexispurslane@pm.me - 0x41E61568.asc"; name="publickey - alexispurslane@pm.me - 0x41E61568.asc" LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgp4ak1FWXlPNktCWUpLd1lCQkFI YVJ3OEJBUWRBaW0wYXBzbTJaTmd1N1lYU3VDLzNUVjUvenhNZE1tWDMKazhUZllSUVlRaXZOSzJG c1pYaHBjM0IxY25Oc1lXNWxRSEJ0TG0xbElEeGhiR1Y0YVhOd2RYSnpiR0Z1ClpVQndiUzV0WlQ3 Q2pBUVFGZ29BSFFVQ1l5TzZLQVFMQ1FjSUF4VUlDZ1FXQUFJQkFoa0JBaHNEQWg0QgpBQ0VKRVBQ S1ZsRUw1OThSRmlFRVFlWVZhTDAydVRUczdkdzI4OHBXVVF2bjN4RlJ2Z0QrTUUzdEhXOFgKdGpt NXdqeU9zVzQ1NjIxSEpGUXdGZnVnbGZZczlkVU03YTRBLzNFeEppdFVMTk1mdy9DRlVIbVAyR21T Ckp1blE1cENNYzkyM1FYdytPZjBMempnRVl5TzZLQklLS3dZQkJBR1hWUUVGQVFFSFFBVHJrMXFN Q0FVVgpDMFRBeFAvV3B6QjY4MG5DVmNlK1E2OVNPUWR6Uk9VY0F3RUlCOEo0QkJnV0NBQUpCUUpq STdvb0Foc00KQUNFSkVQUEtWbEVMNTk4UkZpRUVRZVlWYUwwMnVUVHM3ZHcyODhwV1VRdm4zeEc5 VkFFQTlDV1Q5bHVuCldWZG5MWis0RlpySUZKZW9EUFAzTE9Jd09oRFVnY1ZtZU8wQS9qdHVjYjRk eERzVTFiRjNkVjlHbGszaQo1SDJZcnIvRTJBYVlMbWFOVVBvTgo9SzRRaQotLS0tLUVORCBQR1Ag UFVCTElDIEtFWSBCTE9DSy0tLS0tCg== -----------------------3f910dfbdf3b59097943ffb9ce4ebe11-- --------d5979f164c71f088fb19cc3f2c2e13e3465ef399b0a9290613f98691998662b7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmZSfm8JkPPKVlEL598RFiEEQeYVaL02uTTs7dw288pWUQvn 3xEAAJYDAQDKdfvc/2z13Pr9cAgaMyvRjyDMwCUM4h7eKUkYX8egXwD+N2DK uU6WbECvrt79H/qbMtjWVk0qNUAfahHLiK/oaQs= =jMZN -----END PGP SIGNATURE----- --------d5979f164c71f088fb19cc3f2c2e13e3465ef399b0a9290613f98691998662b7--