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 22:48:26 +0000 Message-ID: References: <_cjSz3e_d7dB-G6yi32s-DPrp4mzoDHxqSRzmME4I-ihzlXVEzxQ7vsUrIh5dEk0Ofp56PgvenniYybY9hX4zOgzD-Cuky_G05tWXjOG4YA=@pm.me> <1CcRIDWRzuz9xy37ywZCMJYI43NbduqDwV3GGBpPcqjaxomNKERHqJdjxKn5pujNHqDg8KoB5l3ZxoU8DV8eMp45Yb0DyinWEIvJZ5RxZ_s=@pm.me> <-AiVyio30HLuInFNcNm3OTLCRNrFpNlkGopLCsL3HBp82dT1Tv1vgf6tbSuSIMvf6L74waKmKB_wcz9S2l0xVjudOu2o36bqEBFTEvvG4fQ=@pm.me> <8373e5c4-03d4-48fe-9e4d-b0c2d36590cc@gutov.dev> <5iagnGUjF-cYYddc4_1kHHViSr60gM5Lt2t0bTESI41QSUxZ3GPGbAhCpmjTawoMcMaB07DPi5_jHc4-m4ow4AKhS3z5evCwxq75_-emwQw=@pm.me> <892be2b8-f3c6-4958-8d49-7db73f6d0b85@gutov.dev> Reply-To: alexis purslane Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------ddd5c9254e32e8bfc6269dae5fa574ddd82e3cb229c5c8456ba655e14e0d1dd7"; charset=utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24870"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "71200@debbugs.gnu.org" <71200@debbugs.gnu.org>, "michael.albinus@gmx.de" To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 00:49:00 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 1sBMfk-0006IU-7v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 00:49:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBMfg-00053Y-Ub; Sun, 26 May 2024 18:48: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 1sBMfe-00052i-Fg for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:48:54 -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 1sBMfe-00082F-7x for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:48:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBMfm-0001oJ-HX for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:49:02 -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 22:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71200 X-GNU-PR-Package: emacs Original-Received: via spool by 71200-submit@debbugs.gnu.org id=B71200.17167637296931 (code B ref 71200); Sun, 26 May 2024 22:49:02 +0000 Original-Received: (at 71200) by debbugs.gnu.org; 26 May 2024 22:48:49 +0000 Original-Received: from localhost ([127.0.0.1]:42697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBMfZ-0001nj-9H for submit@debbugs.gnu.org; Sun, 26 May 2024 18:48:49 -0400 Original-Received: from mail-40134.protonmail.ch ([185.70.40.134]:52741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBMfW-0001nS-4n for 71200@debbugs.gnu.org; Sun, 26 May 2024 18:48:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1716763711; x=1717022911; bh=htOdceCYYGiwaJZNGfp1gjjkxeIDTTsu0VFdVsn5UJE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=okPgvnz8rEa/09vX9UqU9bcEIX+o+GSgzk1djCwFG4LJ/b8zHMvfLlph4OEFdEx/L WaSXAE/WjEFI0qntx05CnOfR+sE5pJ2QKwJzUvTWFeTwQixMPhPs3xbcLe96B5oBB5 pIpuV2jgY5qLTf+226pKyEZzWDaU5gTnkGGyYaZKkix5PKoY3ZWLeRerNOzBymolKR 32aFXYzH2mDKu3448UrD9PMsDtp1DXtHHsruIqSBKH4D9TOH/g84Do1iSK/biKxHVm d2ZX3osZbrL20uDMNeepdXAmGcycXXQyyZkXS2W2l5rshz8FVDnQPR/nuPkLOFiLzw KumPloKSDTpRw== In-Reply-To: <892be2b8-f3c6-4958-8d49-7db73f6d0b85@gutov.dev> Feedback-ID: 55030218:user:proton X-Pm-Message-ID: 87dbea01fbdd33321254602fc2214c9b608871d6 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:286000 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------ddd5c9254e32e8bfc6269dae5fa574ddd82e3cb229c5c8456ba655e14e0d1dd7 Content-Type: multipart/mixed;boundary=---------------------6a7d928870f0e85c5254dd21a85e7595 -----------------------6a7d928870f0e85c5254dd21a85e7595 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 Thanks for the detailed response! Re: ssh keys and committing, I knew that= , sorry for my unclear phrasing --- lack of sharing ssh keys was making pu= shing fail, and lack of sharing gpg keys was making committing fail (I sig= n my commits with my private key). I'm working on ssh forwarding right now= , although trying to sort of skip out on the whole thing by creating a tra= mp-method for distrobox and letting distrobox do it for me. I'll update to= the new project.el soonish and let you know if the errors work better! On Sunday, May 26th, 2024 at 10:44 PM, Dmitry Gutov wro= te: > On 27/05/2024 00:43, alexis purslane wrote: > = > > Follow up: > > = > > I have these containers installed: > > = > > 1. devcontainers/rust:latest > > 2. devcontainers/typescript-node:latest > > 3. devcontainers/cpp:latest > > 4. texlive/texlive:latest > > 5. tensorflow/tensorflow:latest-gpu > > = > > Only one of them wor-- > > = > > .... > > = > > Oh. > > = > > Git keeps "detecting dubious ownership" over each project's > > .git/ > > for some reason, which prevents `git ls-files` from running, > = > = > That's possible. > = > > hence the > > problem. So this isn't really a bug per-se, it's more like a lack > > of > > clear enough errors. > = > = > Yep. Poor error reporting came up not too long ago, and it's improved on > master: > https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D8d3e4e823f21d5a > = > I have now bumped the version headers for xref.el and project.el. > = > Try installing project 0.11.0 (it will be out on ELPA sometime in the > next 24 hours), the errors should be easier to understand now. > = > > I could also really use some help with getting the ownership and > > gpg & ssh > > keychain stuff (commits always fail because Magit over TRAMP can't > > access my GPG or SSH private keys) figured out over TRAMP but I can ge= t that help > > elsewhere. > = > = > Looking around the internet, it seems the error "detecting dubious > ownership" comes down to file ownership - here's one of the possible > solutions (https://askubuntu.com/a/1445820), but there are several > different approaches being recommended in different SO and SE answers. > = > To make a commit, you just need to have git config for user.name and > user.email on the working machine - ssh keys are usually not required > unless you're trying to sign commits as well. > = > It's pushing commits to a remote (or pulling, or cloning) that usually > becomes a problem. Over ssh, one usually solves that by enabling > "authentication agent forwarding" - logging in with "ssh -A'. > = > I'm not sure what is the preferred solution when using podman, but > here's an article that describes sharing your .ssh directory with the > container: > https://devcodef1.com/news/1088795/ssh-agent-forwarding-in-podman-contai= ner > (step number 3). > = > Of course that's only safe if you're the only one with access to it. > = > > Anyway, when git ls-files fails, maybe the stderr output it > > produced should be > > printed instead of just trying to parse its empty stdin and > > crashing. > = > = > Let me know how how it works for you. -----------------------6a7d928870f0e85c5254dd21a85e7595 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== -----------------------6a7d928870f0e85c5254dd21a85e7595-- --------ddd5c9254e32e8bfc6269dae5fa574ddd82e3cb229c5c8456ba655e14e0d1dd7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmZTvCsJkPPKVlEL598RFiEEQeYVaL02uTTs7dw288pWUQvn 3xEAADz6AP9CwxLG7BeZF/Ky4EvaZNoIV16GpAe/EDQa6l943SHhbQD/SYET yOanSiFjZrXQ47CZLprw046CcE9ZGchOxAk5EgA= =4uB3 -----END PGP SIGNATURE----- --------ddd5c9254e32e8bfc6269dae5fa574ddd82e3cb229c5c8456ba655e14e0d1dd7--