From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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: Mon, 27 May 2024 01:44:13 +0300 Message-ID: <892be2b8-f3c6-4958-8d49-7db73f6d0b85@gutov.dev> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7901"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: "71200@debbugs.gnu.org" <71200@debbugs.gnu.org>, "michael.albinus@gmx.de" To: alexis purslane Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 00:45:18 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 1sBMc7-0001ow-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 00:45:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBMbn-0003RO-U8; Sun, 26 May 2024 18:44:55 -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 1sBMbm-0003Qy-4f for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:44: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 1sBMbl-0007MY-Sj for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:44:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBMbt-0001hj-QU for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 18:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2024 22:45:01 +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.17167634776501 (code B ref 71200); Sun, 26 May 2024 22:45:01 +0000 Original-Received: (at 71200) by debbugs.gnu.org; 26 May 2024 22:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:42687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBMbV-0001gm-15 for submit@debbugs.gnu.org; Sun, 26 May 2024 18:44:37 -0400 Original-Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159]:60291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBMbQ-0001gV-1p for 71200@debbugs.gnu.org; Sun, 26 May 2024 18:44:35 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 09064180009D; Sun, 26 May 2024 18:44:16 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 26 May 2024 18:44:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1716763456; x=1716849856; bh=0OCnD4QcdH0X/rrmSEptncN+hKSUcd6RwSnRzn+rEg8=; b= KZpDpWbB9HH0afQbXhGVjrHtZOkXDxkkTs1WhVzzmdUJoPbcx5zlEEEVNV9jVupP lGgEnM1SECCW/DosJdiLlyTCbIJDJ9JCtrVKASn5YmP+T7bWpovr545LhyfGV9ym DhMJkKW9iSsShNch8QXpi48Mjgp4jz4/2sI4fEk1SFyAkrfn589rTOuwpkjWG4jO i3Zs7d5ihW91AfCP6BsR8p9wzZOI0wpFDyRM11AQtHiprtzpEJoVCuws7r1fT699 8xHjCN12pk6Zt58H2MfOh8FJtCAJqAvKwYjWdxVE+3cezHIUsI7Ym/MtEI4OixW1 M19/VdaiFxhsLvvmTJo3xQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716763456; x= 1716849856; bh=0OCnD4QcdH0X/rrmSEptncN+hKSUcd6RwSnRzn+rEg8=; b=G FRqxoXNniiRY+/ET59k3N8Bbf2EUYICtkWBnfYr6i+nHPvd19RupURKkRFjWZVVM Kl54qimDbNlPWcyuCOFg0ugJS0lTRbu0KMKDme2FWzPVIwmueq6O4K1WSA1hJ//6 NkiAMAOZTfCQI5uJxmAhPLyS8dAJs5pIPEK8hVpvLeZba78nTCfR558UaOgCgghe s9KKSJN+9dMug4Y12R5dsKBGdPzrsaMqK3dylYTfmvXL3HL0paCStCqUUgnu22u4 Ari9JGEwgXgj+tY47zTNukRa/L/6FsARNFPRikMet7uPLJoUlW0J75Lvi4vkWimk 8MMWBwA0Q7srkFBbthtZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejfedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeeifedutdejgffhkeehuedtueduvdeliedtveetieetgfefffelieekhfeg veeknecuffhomhgrihhnpehgnhhurdhorhhgpdgrshhkuhgsuhhnthhurdgtohhmpdguvg hvtghouggvfhdurdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 26 May 2024 18:44:15 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:285999 Archived-At: 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=8d3e4e823f21d5a 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 get 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-container (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.