From unknown Thu Jun 19 14:03:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66093 <66093@debbugs.gnu.org> To: bug#66093 <66093@debbugs.gnu.org> Subject: Status: Eglot over tramp sshfs/sftp Reply-To: bug#66093 <66093@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:51 +0000 retitle 66093 Eglot over tramp sshfs/sftp reassign 66093 emacs submitter 66093 Ko Nishi severity 66093 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 18 14:10:40 2023 Received: (at submit) by debbugs.gnu.org; 18 Sep 2023 18:10:40 +0000 Received: from localhost ([127.0.0.1]:54531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIhj-0002dz-4g for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:10:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIQa-0001wn-9Z for submit@debbugs.gnu.org; Mon, 18 Sep 2023 13:53:00 -0400 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 1qiIQF-0002Ar-44 for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2023 13:52:40 -0400 Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiIQB-0001Kj-0j for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2023 13:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1695059545; x=1695664345; i=kohnish@gmx.com; bh=SJGmvRupl8/vQiU2JuMtEo2v+Vn2DBDtVJwUEn+luJk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=PZ++zMWhlCOTYAXOb5n83kiLtyC0YphzqgdOQxw2v+4IiUJA0+6OnSEnr5y2SUoTkO93D00P9XF fUeUzRoBmCnD/6nruVZs3wJaH/NrVuvkAdeTAdPTqxPvhofdkg7cb0K4DvZrlGGGlYu3oSTbZM6JE 0hkKk/nzZK2LcDzbD/hEOEW2Vm8o79ASneg6FgrwUe7JcvAP15nMvytZ40yRqxfmM5ET58JzxQurV C6h3f/1qdkltLDKx6lOdvjiEIw9c8pTsQCxEcM0P/PSIFDcaauLkM3vj4VlVrv/UiO4XElvPTVDFL 0G94aDeFRx9jqfZU40gji12mYqd6fAfzetsw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [89.205.129.7] ([89.205.129.7]) by web-mail.gmx.net (3c-app-mailcom-bs07.server.lan [172.19.170.175]) (via HTTP); Mon, 18 Sep 2023 19:52:25 +0200 MIME-Version: 1.0 Message-ID: From: Ko Nishi To: bug-gnu-emacs@gnu.org Subject: Eglot over tramp sshfs/sftp Content-Type: text/html; charset=UTF-8 Date: Mon, 18 Sep 2023 19:52:25 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:3K8rZDDSzOBKn3Jz1iyt6JAEs34fgw0qyO485MvMP8EElfPZ0XlEleBFOAkr2bSLbAsYK mSLMGlda3RQAuqmo5HexklvF/lJrfjwkqecQapdFYa9ylkjq8oo/mhkQCskHktoUoRSWudZlVlBF rRJ7rW+KnPbH4HCfeyPlUTvL2V/qi0SXhnQmcvA5c9Kefh5R3WdsggyZ+zwIOUANBxpiil7XluFg rSlfpTEireO/8LaJZtBbwVhE5viJEK/O8hO3WU9SO1dvvkHfx4JadtmrLH9qcMq4nxYzaYjvThyV zw= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WcnMLe1VIec=;aY9+KGHeLnjOdNsqiiEX3l48NZH PAo4hXhK2USmbR/6fVAeRwqROk20P3LpPk7eK9P/ukoQmEnihj6FLFKvzjGavycPOjxhADeND SGTJ36iZvlj2F6jox9R5hyawKrBTuGK0u5NHBfgnPt1G2Db8EG36KIv43Qt3tJ54DZc4k2GfY usCoaNQ0c/BgXDeLylB5dmVtG3evGQUWTaYBYymhzjayovWACXr9bFt+d3QIhdIYPo0GL/hnf eKHpyyIz05iv62t1dmRDXl8fWnwh+UrB9RZYd8ZNa/tFJOUKR7CU/YKtQaykkdZoHkolvjOOq QzsotBZIMlYKythRNQZbQHpI2rgEpTwdiIYsmf7BC8ugCcASdwydXQTy2UgkqYmd6irpUlwLE G+xTitBsDAvr4L92NTjJo1FwsOzICH3uo73ZnJWCRTi0OO2srQ+t3OGvnkUlqWh0loJnuLDic /BfoZAXFmhj7BI+5ndSWVeiUasm1YuH9qqXNaRV2pPxdg1dc2IN5oMyESf3OVgguIBNlEEg/Y 42PV25HnR8Pd+rKMEXfAazmgPZcYTjb6o497t49triVVBj+/m8u+HlJD3GNibvx2K64r42c/9 R5UYsU9Ls4KY2s3syHjN1CQEs+je8HM0FRRIh2p0/6lUqgPg5WkVgtV44f4P4eyKqqd9eO08v /p8QbK/fk05yNj9zufRvPsSpxcc6G50Ajku1N6dJ19fyVSYXdM+pO6Oeze7HvZM/axQcrrcx7 9eScHVM0ixK9n3VMkD9UlsjLJ7awqed0uRWvOMKPaUpK990W81qRGQvvTU7N7xyAODUc0e53q NeAkAGm55CaMyvt8cPPxL2SQ== Received-SPF: pass client-ip=212.227.15.19; envelope-from=kohnish@gmx.com; helo=mout.gmx.net X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I was suggested to contact here from a github discussion https://github.com/joaotavora/eglot/discussions/1294. But in short, at the moment, eglot fails to spawn a functioning language server process over tramp when sshfs or sftp is used. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kohnish[at]gmx.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Sep 2023 14:10:36 -0400 Cc: michael.albinus@gmx.de, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/)
Hi, 
 
I was suggested to contact here from a github discussion https://github.com/joaotavora/eglot/discussions/1294.  
But in short, at the moment, eglot fails to spawn a functioning language server process over tramp when sshfs or sftp is used. 
For sshfs, I see clangd process without stty command on remote, while with sftp eglot doesn't find the path.  
It's probably the limitation of tramp but since the both setup are likely to provide ssh access, can we maybe try to support a such use case?
 
  
Best regards,
Ko
From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 03:46:40 2023 Received: (at 66093) by debbugs.gnu.org; 19 Sep 2023 07:46:40 +0000 Received: from localhost ([127.0.0.1]:55277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiVRQ-0002an-8F for submit@debbugs.gnu.org; Tue, 19 Sep 2023 03:46:40 -0400 Received: from mout.gmx.net ([212.227.17.22]:37501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiVRM-0002aG-Le for 66093@debbugs.gnu.org; Tue, 19 Sep 2023 03:46:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695109580; x=1695714380; i=michael.albinus@gmx.de; bh=d//NpQAKKWyMNyDnrdlrydk1eqI8J376N7Y65LFnwOw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=X/WqQ1lgGtnN9//E9IvTl/6gFphc2Q3cSeAn+o96jOhRJtOpZ4boiTEnZ2iDiEtIoJQ1p7jZpn5 ixjkja9gXNficavz4b9cwQ5UB2HUGs+BqWDB0rKUyMMcLIa1YQXK58t55dfcJbGVEloyNhk4pbeHm rGR1C7VFJqZBBZSzMgVt8N4LZDemgkzjytE8sopkH6xuAg5SdwAxUjS9JOfPk4ZY3rtIFA/oaz6qb xFL4ygEetdDOYGj23t4kxD27fnrtLtUq+f/MM0iXDgeQvRdm/VnPdV0MaxCr3FAiUdORZfkB+s+L9 vpKZ9lXrcjS4Xoed2EGmc4ZP3cp6M4KFz3JA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.17]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N8XPt-1rmJLh38G9-014Pj9; Tue, 19 Sep 2023 09:46:20 +0200 From: Michael Albinus To: Ko Nishi Subject: Re: bug#66093: Eglot over tramp sshfs/sftp In-Reply-To: (Ko Nishi's message of "Mon, 18 Sep 2023 19:52:25 +0200") References: Date: Tue, 19 Sep 2023 09:46:20 +0200 Message-ID: <878r92wqpf.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:WVZyJTLl2OwT8sVabMXod42S2U4ZcYEuNCzMePuYZ03VZdeCcSy dtm7oJz0aSgJNRWgFXSVUO8tiEYkzrwuGrOBygjygJnXmmqmSUeN/qz1LFBiTA4ne5Uf7Fh WaU0urtqQ+lZrwJk7RgZb1QkVUcMXC47zghkONafc1rtjxBEtSBLXHxNTL3bag8/lfzrbwy TwOYzHVuUFtRv3HwOz2OQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:W1hzvJ9fn6s=;7CKnAZAtcQ4GB98a8ay/3/085cv ZGvYIdZjS3h3JLFCubNmNToD+V0gKGd7RU7YecagP3dvB4BaJXRwh4aVJe6dsn80nXRrhNr9Q oVBIrutd+Cs/4UAKKmw5aNBigCmkabUDFuhXK9MKDTc9f4eS49FWldiC6fYrqoaW4GJUYNxPn UR0HXwzCOxPQNQaoeuEwYsAGWA6hkmZK4pvGR/4moynIALs7Pn++k2NTWL60odg9zQa1akxR4 8ow4kogySnQLFG59SSmeWQqYedGGyaJx12KptZYmhIi54Vk6Ir4f/rB8HmMPyokqAuJYgoPfC xC7S+jgUZfEovTX9xly+ifWQBrbfYx9sZHdcZHuKchI4ScIgmA+BIDX0RNy83XY2UvuZoo2YY 4EMZzSztbhNaQdXbQqmJ0Sc8OdnLcGrak7Nm5kr2E26yso0C/8O/ktDaGI4dy0QjKszOFkMKB 6vnWTYPcCj1NplTka/kWKJOT0ffoOisUe9OrAcmZlfXhCjvli5Gz4lBU3HezoO9GEBKploLR5 Jet6BS5m0kYpYXuVHXW3Qxab/EkdRyJeenzlxGzsAao2QMO0coHsY42GTwWv+Gmqi59Be9suk Cgosu7pVIuMSsZnaU5bab4al9DbJ0DIbNanyaLjpmY4s1WUggGYsmd5Fiqcw/2mlD+xIILC47 3TOm4da32G2N8fGsoprCsj1VAE3W39wpOojumXKTd7vtuVmesiFfdY0VbOOmsNnL1w6Ri5c2H HNKKzcc+W89CPgeL9e+g0CcPhLrvZ6L6+7ZFKEROTlBR7843fuGOCa4FEjYEYkZAxRLyvvsRW v/fumE3uiz/8BzGG51HWu6vBkiRxif3/FauimIiJ9gG0Io6dBzKauESxBzxxw4iptYWg+PgNc z5CkhIbjNgyAAI+BSj4ySEABl+Et/qEP+7ZuiQW5bRTT1cN2lsW29pEhgLMDI8ORY+rSd1KuR IFeNLcDwdUYgGeh11mRYu8mny4A= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66093 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Ko Nishi writes: > Hi, Hi Ko, > I was suggested to contact here from a github discussion > https://github.com/joaotavora/eglot/discussions/1294. > But in short, at the moment, eglot fails to spawn a functioning > language server process over tramp when sshfs or sftp is used. > For sshfs, I see clangd process without stty command on remote, while > with sftp eglot doesn't find the path. Tramp's sftp integration doesn't support remote processes. So there's no chance to make it working. sshfs, as general concept, doesn't allow remote processes either. Tramp has added this functionality by opening a parallel ssh connection, see tramp-sshfs.el for its configuration (the lines, where tramp-sshfs-method is added to tramp-methods). However, it calls remote commands directly via ssh, like this (according to Tramp traces): =2D-8<---------------cut here---------------start------------->8--- ssh -q -e none -t -t gandalf cd /home/albinus/src/emacs/ && ( env INSIDE_E= MACS\=3D30.0.50\,tramp\:2.7.0-pre ENV\=3D\'\' TMOUT\=3D0 LC_CTYPE\=3D\'\' = CDPATH\=3D HISTORY\=3D MAIL\=3D MAILCHECK\=3D MAILPATH\=3D PAGER\=3Dcat au= tocorrect\=3D correct\=3D /bin/sh -c stty\ raw\ \>\ /dev/null\;\ /usr/bin/= clangd ) =2D-8<---------------cut here---------------end--------------->8--- I'm not sure, but likely the snippet "stty\ raw\ \>\ /dev/null\;\ /usr/bin= /clangd" might need another quoting. > Best regards, > Ko Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 21:40:21 2023 Received: (at 66093) by debbugs.gnu.org; 20 Sep 2023 01:40:21 +0000 Received: from localhost ([127.0.0.1]:57966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qimCR-0001k5-Py for submit@debbugs.gnu.org; Tue, 19 Sep 2023 21:40:21 -0400 Received: from mout.gmx.net ([212.227.15.18]:53953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qifwQ-0007fp-L5 for 66093@debbugs.gnu.org; Tue, 19 Sep 2023 14:59:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1695149946; x=1695754746; i=kohnish@gmx.com; bh=2LRa3IUv54hsOq4FTSfDlupY4WYW4bgLMNt9NnuiV2Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UupAAcnTSsg6h1yVhrvQ9np2pCLc0IZX887GtiOt8O6QYiZZdHy0TlSyC39FMv60nwtvFu9ECT6 hpXUtMEwfwIiGJ1sdqAgdicrmKiw2aUc5K/dnHU3OZInEDi5mvSGh5pCJ64KHfL9gK46Z950UP3Bb dvDJm1fHbmrmfXGykOmpbf7gYS4SLUqqMtddq3Q84KLvtvZGhVconEabM6v8q9mlgvA3jo4qivzdB Aw39q4NpbjGPxrr9ICureP1B9KS7e0Ysd3Uuc7eU4P58pfIcxL7wDisXUL33IWds7CqAnK6uhejqk 6A+BoQJfle352QW4KZzY/SY+a8N5KhHIk1NA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [89.205.142.42] ([89.205.142.42]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Tue, 19 Sep 2023 20:59:06 +0200 MIME-Version: 1.0 Message-ID: From: Ko Nishi To: Michael Albinus Subject: Re: bug#66093: Eglot over tramp sshfs/sftp Content-Type: text/html; charset=UTF-8 Date: Tue, 19 Sep 2023 20:59:06 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <878r92wqpf.fsf@gmx.de> References: <878r92wqpf.fsf@gmx.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:HAeMCx2epNFZlgLOe9Vw9O5kY8apXCOjbkmLsB4gkHJ92CB2J76mdN2VP4ChiGv7bnXi2 rfKO09YxP+gMSmw6SCveFbdZdKISn8L08oYsDkay9mbmURc7CU7kWbp4T/0YaLw4tyybuwEDnE+5 TWrDHi+og8HS2DU1BEJCcy+d0BKyGeY0UDxsIvxe6WvRdXPrZINs9hyk733r3XZbpcuJxh5qHSvC rSWrye3gBzCwpZQdgdinGopBiFZLQBg658gtL2+qdcHiTDXFgsaUh7lvXy4liJ5xq0/Lk/YMmujg CQ= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:78ki+3IEwbI=;kl5uM7uNGmE5fVsTr3M/Uofif+s 5Pv7SQCYGNAyc9wbcRvfhuLGEH0fYDqbQPVHidpP7Mz2xfu71GWqpg23jseFD4EI08MfocDHb rykCY3HAq1xlupn2Xh9K0YkAm8TsZj0QjK+wkYFqqLOHxQUVTX/ec0A3ctUCnMLRmJjvSUSKz gTLFFZtgt9Ivbb5KKMh4IEOB9z9mcdPtnR9XLalnEHyXPajSxuGxtguL5lYy6xAlFoPnPVLk+ T4/qx09mL/LW/Xwiioy9qYsqU2TuoAtQ80T+0T+iTafXlcNDKBg2Q2jofnCKA/m1ZismW2Q1K secr37CkSQgyetc46VRzjs3IxSp4uAZSUBmF58hpwnszbvs3QoTHkjyvBzo4DPqcHKy/dLN/o Efou8jYb5LYTIRAfR7Ng8Roe/7+os5D/2Pg3TTj/JF+l3bN4W3YmyjfnCDfNFlXEZrct/6KCK Fmhfi4BHmxX0IsU3vlxioIQGNFFiE2uN1M4OUZxwTxTtLkyGh7mSwzQA3O4LNZLK7WwtYznNs XHR3aNjyseV13ot3BkX4whkLEV16XlcZcJWfdq+6zz8O/tuOSy6vg9BWWyKwL4N5HXRNUo8sM 7vIDbBXcpRDe/KHwFSmORc8yFgxyWIXOBb3q8YlCrn4zBKQcHNHvkzNO01We0aZMKeRxf1g2V W1zcw5jKZ955QOiUksD5Ebucz5qGvCC0vEF5Bmk9MX43CxQd7+nujB/W1BLHE0l+/T0jVJ5UQ AnfXMc11LMm48ZhCMi8DJT9QME0auswa57u3qwrAq2Ly9tluX2TweHp7GgCeurFJRmalTiVZa PNsIU4NSFiTLneVmCr9GJj3S6lj5KATrz4r6mWdPB1vZo= X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 66093 X-Mailman-Approved-At: Tue, 19 Sep 2023 21:40:16 -0400 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-)
Hi Michael,
 
Thanks for the prompt response. 
 
> Tramp's sftp integration doesn't support remote processes. So there's no
> chance to make it working.
 
Got it. It's a pity, gvfs-sftp feel snappier than sshfs on initial connection. 
 
> I'm not sure, but likely the snippet "stty\ raw\ \>\ /dev/null\;\ /usr/bin/clangd"
> might need another quoting. 
 
Without really understanding the code, If I copy the list from the ssh section of tramp-sh.el:245 and remove ("%c"), it started work after manually telling eglot to start clangd manually on propmt.
Eglot is noticeably faster than using just ssh or sshx on a server 80ms ping away. 
I think it'll be great for many people if there is one cross-platform network filesystem + remote command support, like SMB + ssh. 
But first sshfs.
 
Other than that many other things aren't working like vc-root-dir, finding PATH and etc. 
I'll try to understand the code and play around later.
 
Best,
Ko
 
Sent: Tuesday, September 19, 2023 at 9:46 AM
From: "Michael Albinus" <michael.albinus@gmx.de>
To: "Ko Nishi" <kohnish@gmx.com>
Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com
Subject: Re: bug#66093: Eglot over tramp sshfs/sftp
Ko Nishi <kohnish@gmx.com> writes:

> Hi,

Hi Ko,

> I was suggested to contact here from a github discussion
> https://github.com/joaotavora/eglot/discussions/1294.
> But in short, at the moment, eglot fails to spawn a functioning
> language server process over tramp when sshfs or sftp is used.
> For sshfs, I see clangd process without stty command on remote, while
> with sftp eglot doesn't find the path.

Tramp's sftp integration doesn't support remote processes. So there's no
chance to make it working.

sshfs, as general concept, doesn't allow remote processes either. Tramp
has added this functionality by opening a parallel ssh connection, see
tramp-sshfs.el for its configuration (the lines, where
tramp-sshfs-method is added to tramp-methods). However, it calls remote
commands directly via ssh, like this (according to Tramp traces):

--8<---------------cut here---------------start------------->8---
ssh -q -e none -t -t gandalf cd /home/albinus/src/emacs/ && ( env INSIDE_EMACS\=30.0.50\,tramp\:2.7.0-pre ENV\=\'\' TMOUT\=0 LC_CTYPE\=\'\' CDPATH\= HISTORY\= MAIL\= MAILCHECK\= MAILPATH\= PAGER\=cat autocorrect\= correct\= /bin/sh -c stty\ raw\ \>\ /dev/null\;\ /usr/bin/clangd )
--8<---------------cut here---------------end--------------->8---

I'm not sure, but likely the snippet "stty\ raw\ \>\ /dev/null\;\ /usr/bin/clangd"
might need another quoting.

> Best regards,
> Ko

Best regards, Michael.
From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 05:15:02 2023 Received: (at 66093) by debbugs.gnu.org; 20 Sep 2023 09:15:03 +0000 Received: from localhost ([127.0.0.1]:58358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qitIT-0002lc-0R for submit@debbugs.gnu.org; Wed, 20 Sep 2023 05:15:02 -0400 Received: from mout.gmx.net ([212.227.15.19]:47395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qitIN-0002lJ-EY for 66093@debbugs.gnu.org; Wed, 20 Sep 2023 05:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695201279; x=1695806079; i=michael.albinus@gmx.de; bh=O2FRaAiM34f8DrqRJx0WfQ2jix+KLFZ79yBqWgYJwOk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=OtucCe6w2jGFcRgzoirWJuboSfKkxtKOucMDSekAaMDJ4rk3/lue5MI528sAHw4MXQTPVeiemgh m+u2v8DOFuWokXdK27wnPOION/s7ht9+mbLi6ZpVV4o6h7QS1yaNyCADtWK6H4aP1mtcjXOQC+U7R HVlhyzjZqclcbVCMVxNxHbfXlXt0Ic4k8CbRsacbKrzdO9PkmURNUN0UHodb4qiW39I4Yd5ebm/DX gIwcvCgFKTGU6Oklagcevd7ilevsCUPABpsSmH92fLw7r6377MrrcawJB1GXXiye/KO9irxkuxH3b tjdbSmN53y/RdhfmdvMsswDDH1Ljn8KABuSw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.17]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnakR-1rS5KU1HxV-00jZ8z; Wed, 20 Sep 2023 11:14:39 +0200 From: Michael Albinus To: Ko Nishi Subject: Re: bug#66093: Eglot over tramp sshfs/sftp In-Reply-To: (Ko Nishi's message of "Tue, 19 Sep 2023 20:59:06 +0200") References: <878r92wqpf.fsf@gmx.de> Date: Wed, 20 Sep 2023 11:14:38 +0200 Message-ID: <87il858av5.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:XbPNrKiMl+Uj1kZ8i0lrQg88KssH+Hu93Vcr+4slkLmu1nbG5mL HnCCdwYG1e+wbV0Jy0xbC3xKaI7hxnu+fCN+jGvl198oIDXsYa5qGzfUoG9t/YmGRjgyUe5 Yh3j8kfPt0gWHEyU1MHuLFzhNqrwR3WQzGp18+9SrdlKH8AJ3xLWTe+hzZu3QummtRMHf24 avkWPG50KRc26JddWIaQw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:xL3gA8kghLk=;3rK1YlKnbHTRAHUahbVQY47KA8W jBDOl02OYvVq43HVaud+uv1MB3EixdKrMR0NmcjqLaq15h82WRHpuUiLnxuFN39TKc/VRE79L wb9YdDuGGEXu29Kfcp8m3zzw5AYDhtuHI58ys9qrazZbYUFiLW4Z2G1BkPUuo/I5H7uBKx6n9 C52oeUw1URyMWeLtrU8ldSEmBe1P8KtpN3SqX+XUEMQ7P3/48KL4Qn/daKkBVTk7CBgHxUGYw sdx055M8btY+lhubf4YFQyO3ehcZpgNQWoH0ILA7Hv7YDLqJ0GOL+VWhrzge3CTb0yNi6XNtt VDSpyJJYHugcVJCd6eG+HJkmmbeJAGJJMPZ9qIEnXmDksidh1Rmi1qkbcu1S8gg9WJcBKZ/Ed CHdvhbE0u8ahKvzL7C+3zBLERnZe5ebUiyw3AHFPqyqPXZB+Ur9NXruTkrlPGA8h5+weU0VCI OF193lgIQXMpZyDHlSl6ZPf3JFD9veQ+adKGm2DJ6fVFcPFKHadZtE1xzduQd2y3YQgtK3HzP CUq/17FwjDkVkU70GoYf+oRIIImzH7x4ad+ieuzBfWO/vPxzvbcwru7o6pxJwZvm29AwdGyEP 8JICORmGWxyAvMkx9lSUEXpA2O1qcyGXNkeYmYWSau6K+N1g1pa9j/GWkVIznUSZ3eRcfMEgl Q4fYbmDuCqe60/nGg645R5TjGZsnMdAbheokisqps7lxEGIkNM78MUJi+qa7D3DDf6wg7F35W Dt6lNZCl9meutJwv7+DFXTWTp0EvMC5Njru0+eIahc5pemHTxmtiEEI9KMuqldvDdlbdK1WnP vkwRf/49Llns7LxdNvNNuthbEFLWqejazUCNNZ2Oh0e1hq64uuK7V/ET7yB544wR0b3aylXcl H7ySpU8LRMUEMTQEFK5YmpXcQv1CuHdFi9t9JqWw9PN3OZsmxeS4XOS85kBzgTonptgB79tYN itYYIQ== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66093 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Ko Nishi writes: > Hi Michael, Hi Ko, > Without really understanding the code, If I copy the list from the ssh > section of tramp-sh.el:245 and remove ("%c"), it started work after > manually telling eglot to start clangd manually on propmt. > Eglot is noticeably faster than using just ssh or sshx on a server > 80ms ping away. Remote processes with sshfs are configured to use the direct async connection by default (see the Tramp manual, section "Improving performance of asynchronous remote processes"). You can achieve the same with ssh connections by setting the "direct-async-process" connection property, like =2D-8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-connection-properties (list (regexp-quote "/ssh:user@host:") "direct-async-process" t)) =2D-8<---------------cut here---------------end--------------->8--- > Best, > Ko Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 14:02:44 2023 Received: (at 66093) by debbugs.gnu.org; 22 Sep 2023 18:02:44 +0000 Received: from localhost ([127.0.0.1]:37274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjkUF-0008Od-MJ for submit@debbugs.gnu.org; Fri, 22 Sep 2023 14:02:44 -0400 Received: from mout.gmx.net ([212.227.15.15]:50059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjkUC-0008OP-4p for 66093@debbugs.gnu.org; Fri, 22 Sep 2023 14:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695405742; x=1696010542; i=michael.albinus@gmx.de; bh=mE5rt+zROb1Ee3bRP6JliWUzsLpB+h6kIejAqzxln+4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=DFsUepvBVSKz8mcZ401sPta31OkHvvABZ8+g3vjQWXp8jNZFpVxBLrsVbbMLs5I7h3kxZ7qrUWG oijgxUyF4QX6bxo8YUXXv+UfFh75SCC3opyb7t7Xy8ohtncJb5UQ5iaMUtSL6g+5k1/mJ2YzIAM74 jzvtJF/lJjgLM9PIYeo+Q+5SCmE6tysEzz/rpK0dTnJjCN34PseGaJdjl1U6wrLB266fW0kVt8Hn3 tklUD/pfjUUaKD8YQVVBkbhDbXl5F6Fo+fDJxACARjJfdthsTbDIRytLiUQmm518a2euMwC5zqeog A0hGUex2rV9DvlA4LhY2crxAh7urHyDDeGuA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.17]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MhU9Z-1rNSt30pFb-00ef0G; Fri, 22 Sep 2023 20:02:22 +0200 From: Michael Albinus To: Ko Nishi Subject: Re: bug#66093: Eglot over tramp sshfs/sftp In-Reply-To: (Ko Nishi's message of "Tue, 19 Sep 2023 20:59:06 +0200") References: <878r92wqpf.fsf@gmx.de> Date: Fri, 22 Sep 2023 20:02:21 +0200 Message-ID: <87h6nm9jde.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:5CTRNuto/vV90Ipv+kn/ZcWodtX/TKZ8fzOVeFTBlZyYWmVm+Jw /eBLcjCz5FwCYDmCBwWHjxvYwq7X6iwv9cxkpZxcMdAMUStKfhyziLJHNUyPjKWzN/CqB4C mQWGIGtCctJpmmFfbFdJq+TVnOeAtfBpJs388v1IVglSHNMdv/n5tPc501QQLvG+UEm6gZY UKCUblXpTifnmlUe1eksA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ZLwUYqtS+qE=;uIaO1GnD1rrYpGH0uD1E88Ve6/8 hChIhRs/o5xejKwjTQn/BLLwY52/77SbdCDe9BnmPhDqnFqaS8WI2ByUlEYfadqwgenpR18x4 hXUaj0J37BW2WZPm0GP/ZVRMGV30P0Y9tYW7raZPIWl7gXB8JS2xg7xEUNL/LINm5kusPKxhT 1KKAW4RhIYDC0kQcDb7i2JeqspDIPNfqFCRS+HlmWAEZ/f3vSZX3+XzwYsV8TtdOd97xLSATW bej9pwUywBgKc1k4Xov30vmuQV+nd3vAEc+O5P7FXwYLyxcUmBPA4+N2ELKFo6stQtohk4HW5 HmZjHFTc0tOeA/VKYtctB12kwf10x5jepN/kY8WKhX3L2bpWS7Vumk08jzPiXCjsHgAshMOg8 9KonWTF57b/Vl9JZj5wFGM0uN7jcGPfxmKO9rzzzjgHpF8blOtQifaiXsbbNNjgMUAcm20cX9 Uuf5aISgiBkVkkaVpqyHzN6vzVAx8ZGRb6BxvNTV28Eu3/EzyI1ZJTePhBcClLtOgIDHclaUi CT/8NtiMC3uHAd8vEF/LjKevipKkgNNqEUA5SztAOL96xJfTkJvGb76ecmnMwxEIjGeDnKXTF Vi83w2sRJOW5mQJTtotcDACitEBK1KvptdUrBHpPqJ9vzXoDgc7anGc+nl2LpwucWfCPvk/yP d9eatr0vAfTWaplrycHS2XnBfBywwphVUEyd4MkHQk8WU3cJW6ID3kbNN4PZ+upor4sUycpK3 1TsXBqHBEVZuLLHXBcK+KB6MXamTXh+vyuDU+qnJiN+Vlxv6bCxPcGxZDYIWtaW/ZLjIFK0Dp 5c6yitX4Mb3cfSH2eoYDwD5e04lkHKkSV2gcjlzSkOOeCQ8/sk8b8S5DkbKlGUsB+AYUWT2je Y6yWR6TgFd0V8KF9HZJEGaAUiaA8o9ZRskZCSxLD6el7SyT9+3PFUlNgg1JdV9opZE1V4is99 UgECSQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66093 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ko Nishi writes: > Hi Michael, Hi Ko, > Without really understanding the code, If I copy the list from the ssh > section of tramp-sh.el:245 and remove ("%c"), it started work after > manually telling eglot to start clangd manually on propmt. Well, after all it was a perfect shot! The "-t -t" ssh arguments have prevented the pipe process, eglot is using, to work properly. Could you pls test the appended patch? It is on top of the emacs-29 branch of the Emacs git repository, but it should apply also on the Emacs 29.1 sources. > Other than that many other things aren't working like vc-root-dir, > finding PATH and etc. > I'll try to understand the code and play around later. Yep, that's still open. Perhaps my patch improves the situation, because it suppresses the "-t -t" arguments only for pipe processes. > Best, > Ko Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 8ace0165ed9..7e6fce16d56 100644 =2D-- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -283,6 +283,8 @@ tramp-methods - \"%z\" is replaced by the `tramp-scp-direct-remote-copying' argument if it is supported. - \"%d\" is replaced by the device detected by `tramp-adb-get-device'= . + - \"%a\" adds the tty allocation argument \"-t\" in + asynchronous processes, if the connection type is not `pipe'. The existence of `tramp-login-args', combined with the absence of `tramp-copy-args', is an indication that the @@ -5033,6 +5035,7 @@ tramp-handle-make-process (when adb-file-name-handler-p (tramp-compat-funcall 'tramp-adb-get-device v))) + (tty-allocation (unless (eq connection-type 'pipe) "-t")= ) login-args p) ;; Replace `login-args' place holders. Split @@ -5049,7 +5052,7 @@ tramp-handle-make-process v 'tramp-login-args ?h (or host "") ?u (or user "") ?p (or port "") ?c (format-spec (or options "") (format-spec-make ?t tmpfile)) - ?d (or device "") ?l "")))) + ?d (or device "") ?a (or tty-allocation "") ?l "")))) p (make-process :name name :buffer buffer :command (append `(,login-program) login-args command) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 14:12:18 2023 Received: (at 66093) by debbugs.gnu.org; 22 Sep 2023 18:12:18 +0000 Received: from localhost ([127.0.0.1]:37293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjkdW-0000BK-I5 for submit@debbugs.gnu.org; Fri, 22 Sep 2023 14:12:18 -0400 Received: from mout.gmx.net ([212.227.17.22]:59891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjkdR-0000B2-Qb for 66093@debbugs.gnu.org; Fri, 22 Sep 2023 14:12:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695406316; x=1696011116; i=michael.albinus@gmx.de; bh=R1Td/VLhY8yVlfagWjMCIHBU4AsbzOSBtwUHJXkAYPQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=czuSVDzA1JEAdpYSMQ/EBkhm0wNkp+UhZglrixTWD+NXTeK5k6xy4AnbaqbQdcaPNl3NwvmJDVS ZTB3xDZcksGc5XrKvvNwKX9hThfrQAQMmCF0IZ/fMLWCquaVAkU/WvLh19NcStbWivyPSg/kWO9+W 7QoQslWRH14D8G6SCdfTbFSGOIf5l8RuCvP+aggqAjk+nknyTnSS+8r3XVsRIu/IEL/+UY4rd2+oX v26Rem2CP0eAC1lIsQX3P6XkAM941R9440uYP1xdsOKXRd0a7WxHhzcmTvbIXr50YP/4MzEnls073 FDHyXaPS4AeSxy82z25RKXoIVo3yA+e0Gd/w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.17]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mjj87-1rPiLP2AdX-00lEPO; Fri, 22 Sep 2023 20:11:56 +0200 From: Michael Albinus To: Ko Nishi Subject: Re: bug#66093: Eglot over tramp sshfs/sftp In-Reply-To: <87h6nm9jde.fsf@gmx.de> (Michael Albinus's message of "Fri, 22 Sep 2023 20:02:21 +0200") References: <878r92wqpf.fsf@gmx.de> <87h6nm9jde.fsf@gmx.de> Date: Fri, 22 Sep 2023 20:11:55 +0200 Message-ID: <877coi2i38.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:4/pW5f843Azj/reRTbAWWvdEKBsc8vpqPt2Q0Ol1MXvk2zObvcU CjlUf7KZ12u/turSCKPtX8vQ0oOD7p3m6nRnyPZ3ahwfggVcBuKEf3gxcD9pY3u4mwYLDFq 36FwZRYf0S8yawWQ616TI48pJiIXJRWV4flakqiy+L+FLsa9TH/JA9auiz2xAzb9TodjpX/ rODTvHOf5nsIQj9chC0hw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:bK766r3nOmE=;x2uoBSXTrrV2J2+6lDUICqYKa+j PIU3GKqvAJ/uohkkANt46n+2aI3iNwzv6Jk2iAkj8UGuKhBedGqwfNOSA4GSDuJ/9FEb/lE/M rf+ZROiSAMxNQhlcWyeVNjBrOwX88MBpgiqrrbP+2f1aIvpjMZAutUQ1D5Oaku3qRGSlJzHuN gndTYjvI642VURxl7YTtl3/t5bg5KzneUpO+BX+IA8msARHIZjZFE3QDA2QiToA6ZU5GD207K 4nkmjeJtg6qkbszRsuDjwX3LjnMPN1QDVS9TJGrigpDzCJvZAIJIFfpIOSGKHrgRiVbB+FCBO Cn8c03yIo8W0nCaDodTkDdnHfr98c6L062qUSrULa8bAQauHitCrNIc0H048of+r3ProKgzpK 6oV0R6yy94ggVV0pS74pyhVhU7XvHrxhL73j020jz2/SWrMrLoWRizOdyh/7e2k8rsBVC2JKk A6DbWYBXW3YpmL/2PH2+termwC06p7bmUaqU75JKtOhkFEwG8n0nZ7uZMRSeWQSSnULL7Tu5q bGfdw2SRnBWI1xYhYVg5gdVsfL5Xq5WDKl74Y6rdSBEO4W7uh7CIhVv6sBq1vL91UQbeorxlQ 21kaX8TIKOSHqTddAyXTh4MQc6Ms2XduZCX0evQ6W0ypqomXYU7plUuw19oa6qTGhwosYrXFC JORnFTBVVXdILyIH68O7Tqt0U+V2o0ywpX2/2ef95tOaV6OcbT5MlUqjeX73LTkNHRNTrtjVG cfXTQ9W3poYFJIcHIIC+Ee9JqSGH+kUdC8S+JW6tp0bg7X7rCu1DMQJKJ7EGkphvp8A8wOu8z 4jIfjr8DtMGI8Ujza66wQqF3gP6AMh13vIo1+K0rFaZ/7C3+X6P5MJcDYB4//RxfjEnr3XncK DLmWCyuwa3G7QhpeKl3a+3awfMYXxUL3xnCYDHVD9oiclCxm3XsxeQkWjWA2UHoQOT62snIwB PqYH10JMqjJGpjEhMbugYcFVWe4= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66093 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Ko, > Could you pls test the appended patch? It is on top of the emacs-29 > branch of the Emacs git repository, but it should apply also on the > Emacs 29.1 sources. Oops, the other part is missing. Pls apply also the appended patch here. >> Best, >> Ko Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp-sshfs.el b/lisp/net/tramp-sshfs.el index c638d32ec35..0e58e8d7ee5 100644 =2D-- a/lisp/net/tramp-sshfs.el +++ b/lisp/net/tramp-sshfs.el @@ -60,7 +60,7 @@ tramp-default-remote-shell ;; These are for remote processes. (tramp-login-program "ssh") (tramp-login-args (("-q") ("-l" "%u") ("-p" "%p= ") - ("-e" "none") ("-t" "-t") + ("-e" "none") ("-t" "%a") ("%h") ("%l"))) (tramp-direct-async t) (tramp-remote-shell ,tramp-default-remote-shell) @@ -323,6 +323,7 @@ tramp-sshfs-handle-process-file ?h (or (tramp-file-name-host v) "") ?u (or (tramp-file-name-user v) "") ?p (or (tramp-file-name-port v) "") + ?a "" ?l command)) ;; Synchronize stderr. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 26 09:44:40 2023 Received: (at 66093) by debbugs.gnu.org; 26 Sep 2023 13:44:40 +0000 Received: from localhost ([127.0.0.1]:47638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql8Mh-0004w5-Cb for submit@debbugs.gnu.org; Tue, 26 Sep 2023 09:44:40 -0400 Received: from mout.gmx.net ([212.227.15.15]:36441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql3zA-0005rB-N5 for 66093@debbugs.gnu.org; Tue, 26 Sep 2023 05:04:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1695719024; x=1696323824; i=kohnish@gmx.com; bh=wkalUwTvGO1V9xEREYGwscejjzk34vD56iq2X0e7p24=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Wer/+K7DKXtoo7ixuHV17M6/2BfLNm0my8yMptFVkAyHBr2Mo1d64YYz1MQ11a+8DxK/7Qq1H5T VhQV0SrG39MigvYIcCji2IDX+pixQoQanSreUJ74oqjidZ0fv3/3ZkmvcoppPncXAbMdekxucI/pG hOdzm9vIQEGoEfuFfLzSXwMipvRdJJmIHNuvwiNtSycHY2pbOeyAtATGMK3a0zWruSRGHHA0G/Lfb nmDo2YN6S/GuHSKvcuYXFXfTO3eheKTiirajwX6r6AeYs20mNofU+2i9500RL5Mi2Oe28Uoucn7J2 qmuXyS7mmpy6tcTpYGXzYvP5KMlyM89iwa4g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [147.12.24.3] ([147.12.24.3]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 26 Sep 2023 11:03:44 +0200 MIME-Version: 1.0 Message-ID: From: Ko Nishi To: Michael Albinus Subject: Re: bug#66093: Eglot over tramp sshfs/sftp Content-Type: text/html; charset=UTF-8 Date: Tue, 26 Sep 2023 11:03:44 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <877coi2i38.fsf@gmx.de> References: <878r92wqpf.fsf@gmx.de> <87h6nm9jde.fsf@gmx.de> <877coi2i38.fsf@gmx.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hLvz4ckeovl+bfw0RvWyoiQMRc2UrraIuOlV7+cCBJIAwt4IpklRd/6ZlJOXR5+m+gqyf judpobGB2YHFQ5K4c8RN9HR1nrdpAkU7QwwdhchfR/KoPyqwx+s92wKyEL8EEu4/2e7VPzxiREco pSpaOScmaJWrK/ge/ISEYluO1tf0guInBMpTa6s1Jt6tmGGF4a/RCM63flIK/cmXi6GhFTaPX8NQ GJ4VVc5xBP6S/pxPRG2WX73aSbk58xfZYTkZJCL3XBODVkohRyaGlYS7TSWBMQh77khKNfildu1G 74= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:l/1AST4+xPw=;XaiB/2a7rGe5h9nDdPrM6ouJkjM qttxs9JZR/J1PVAKZo63lOcTIsPxUGNM7ddCIfDwL+qQ7lJJOSIy5n0QGLY14FqdI1feETjBc XpfqYdB3lMzwgK+wTM/8wt/SoqqyxJL3ahu4HdCkUAAP99w55MsCvAyi6Lw/2s92nGCeTIKKu T2lk82bpimbGJoHH8kxoLcu7TK52Ai0dKd0+zoXMOa75584oiEh6F50ujfjfPi5TL8dz8oO1W LrwyN3HxGNI/cFSy33iAPehacq+fe//HHyAxNA+0H0urjk6r5g3E8nkN+dIC4+ljBplh6Q5a9 12Bbhr68JWmzIgJ14Lyemf3RN+jSJDttxarkMs00QjUIG/97bF2ob2rEM6y9ZxSLVtp3jLoGV zdvcVn4FSNnyySuiY/OAOatnaZp0M75wXMeP3bMuJdqhhbeWG9s6O7KmJ7hR5VomH17n/4eq/ 8yPUaLtb5oRwKZNROwkOqpT/k8z7NJKXahMbydKq4+DI8eRPBq3RA4r9Uav6X+AJFtb0nN9nc Tva7y72WwTqo8ltRLwn+xLCVizSgQA4KkTur638LiCNO/fADrcbqtYzRyixo7+8GKnmPwKb5l mXC7HwHR9XDgUvYJz57W3oLhkg//SV1NANZ1d/lbSpStrUKTQWRGalPfrrtPhWJaSRcGnnOmy aZ4pMSTK0a2BeDkipXt+l6QeRbpiAc4/IwDFgrUnrRjfg3QNKDKGonCjoi1vr6uwNu1dKrYsN TndxihzcCmE+uo3PkGKaMJ5ypURCJtqQJMNfKpSfD17VWvitSBO++5aGkjsNy+f4XJSlcEYaE nhIoq2jBssa3SJQ/jqRmkCqg== X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 66093 X-Mailman-Approved-At: Tue, 26 Sep 2023 09:44:37 -0400 Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-)
Hi Micheal, 
 
It works pretty good on emac29.1! Thank you. 
 
The only thing it doesn't work is vc-root-dir on a current file.  Like within sshfs eshell, it returns properly, but according the interactive functions in my init.el that does work based on current file, it returns nil. 
 
Btw, indeed, you might be right about async option, but sshfs "might" performce nicely for go to definition for eglot sometimes, but it's just an impression, I could be totally wrong if I actually measure it.
 
Best regards,
Ko
 
 
Sent: Friday, September 22, 2023 at 8:11 PM
From: "Michael Albinus" <michael.albinus@gmx.de>
To: "Ko Nishi" <kohnish@gmx.com>
Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com
Subject: Re: bug#66093: Eglot over tramp sshfs/sftp
Michael Albinus <michael.albinus@gmx.de> writes:

Hi Ko,

> Could you pls test the appended patch? It is on top of the emacs-29
> branch of the Emacs git repository, but it should apply also on the
> Emacs 29.1 sources.

Oops, the other part is missing. Pls apply also the appended patch here.

>> Best,
>> Ko

Best regards, Michael.
 
From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 26 12:59:44 2023 Received: (at 66093-done) by debbugs.gnu.org; 26 Sep 2023 16:59:44 +0000 Received: from localhost ([127.0.0.1]:49653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlBPT-0002Ge-Vq for submit@debbugs.gnu.org; Tue, 26 Sep 2023 12:59:44 -0400 Received: from mout.gmx.net ([212.227.15.15]:35565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlBPP-0002GM-TT for 66093-done@debbugs.gnu.org; Tue, 26 Sep 2023 12:59:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695747560; x=1696352360; i=michael.albinus@gmx.de; bh=E6pi0ULv07k3KLPwISiWA0ql3cjHTaZQNpkz0KnpiXk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=gRG5Oagbu4AqChiayANidEqYj3UnUMMqavNjoxl5Vg1mpIr+aJp0NcFPCJdcNgYuP74Xkr2PUog dk+GuZbSGbKWW6oCNQEFnOhlHtjrwtb6Om7857vrbsouGP/8U/8rRG+TAOXoauDXCS0sf4TRjA9+c 5TcOAFHK05n6C2Tr8vqkP3onMGrf+wnDR939jBla1Nt69VoXl1CmPL+j6rOqT/+KMRECuXCI2er/y WPGFqDgOsN5DezDKzpIul3FXNTkKAuRT+PV2hdV5wLlpDwhhovrApZzIYVw9GzgGvKDFUZJHDRAi7 baazzzzLpKC0qDfzTv81+TiWDbn2nEaAPO8w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.30]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1Ygz-1qmYBH0wjz-0036gf; Tue, 26 Sep 2023 18:59:20 +0200 From: Michael Albinus To: Ko Nishi Subject: Re: bug#66093: Eglot over tramp sshfs/sftp In-Reply-To: (Ko Nishi's message of "Tue, 26 Sep 2023 11:03:44 +0200") References: <878r92wqpf.fsf@gmx.de> <87h6nm9jde.fsf@gmx.de> <877coi2i38.fsf@gmx.de> Date: Tue, 26 Sep 2023 18:59:19 +0200 Message-ID: <87o7ho7tw8.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:t/Fdc3IGmSob8lcErAwla2lygkDAun8XKMM6xghPvfV3y8Cyqxi hBUPsossCLHzflkQnJtcZ0Kna8na+vG0cxyWSHpS6Et6HKojI1QcjLmv+TgJg9vKq2fwSLr P8IkftwhV759UvSiTN3kvSdo3RIfweD6UM8/8RFbAggMhNjImIE9GRbfV+rNXhddCwO2+oa hPWmVwHehLmBPb6F/RAzg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:fvIq/MeYKuk=;p38Xop67bnonc837JNsNjPoAB5T Y6lx15qIbF3v1K01HOnrtEyCj+LyqXEV7J2+TclJybup6n+3+5ZhTe5yB9ov6TX98cNv0xLUl e/xjs5IL8Wwysgg0w6dcbmfoOFhiXUr+TPGUMcnbAl05Efm0GmQAtuu8GMm7OmUNPXfIBOHVJ gBvKPJUa/mCJqphdFPDQZs1OZNAQc5WrA7BcAXQLconFw4xiYwhfg4BilDMsgn8Z2pKRpiOoc ASLhjMIYCz07zLJkmCo5AftZQLOvWxMAyJeFFiLDyq5QUAf5B6KSExZ96LYPlAvUiuVlrVEKR Ay3nUMsE08obRaQgTszugTOWCtQq2pCaCOvs2Gf8HEk9SrfmbSs+OfRgmpZEKcHvgU8hLPgOu P8sWZnXMhDolLgPzJzZNrRsLQvYGoOQcUvWS7CMnWsZGyBJhSlf8e3+eNsrTLeWey1oyC5R5e s1ZDZwEGXvTUIvXMxDkgYpYRVqc5e0qrL4WIbJvtqYtYszKycaBpfb1gA8DB9BqNB2C95NdZu p0ZwHZ4Pp9v5g3XN0Yquq+J7SQWgj5tpRylPHTmrGNtGNdqcbUI88rrvU03f0nKUrOWUgEEgz pqoN8Qp41Jzy1hKLcK+oIPrnyqseYixzj6i/VmTsUXy8r9+nTg8WJmwt4lsZemC+XSOsRsFGI clRlufIcgqakV9C5RMV/4/+g4AiXY0JYVdoHE52vn4y2VKOqQ49HNK0PYx+S5Amol4nC++6M9 kPEc58Jj2ozrk91hnI2Jh7GEU1D1G9TunN4Nh8QY+WAnwE1cnys1XvX9xH1ib6tsQM4sdpcH9 29EKjZEueTeNOoRlaHMlkeLZr0/7opTpGR3/cqYQnZwuRxAdd3ebw+0TgY7lUe0D7vz6cYHzD igh1wmrZaTXiDp+2SeeJkM6E0bVx/BzWMxPasRQx0IpPFfVP9n8/NtuIhWAlOEutPlLSUpDTw LPjTB5xwf94c9iDqNkgEzabczzU= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66093-done Cc: 66093-done@debbugs.gnu.org, joaotavora@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 29.2 Ko Nishi writes: > Hi Micheal, Hi Ko, > It works pretty good on emac29.1! Thank you. Thanks for the feedback. I've pushed the patch to the repositories, slightly modified. It will appear with Emacs 29.2 as well as on GNU ELPA later this week, as Tramp 2.6.1.3. > The only thing it doesn't work is vc-root-dir on a current file. Like > within sshfs eshell, it returns properly, but according the > interactive functions in my init.el that does work based on current > file, it returns nil. Yes. tramp-sshfs.el does not offer an implementation for `vc-registered'. To be precise, it offers the function =2D-8<---------------cut here---------------start------------->8--- (vc-registered . ignore) =2D-8<---------------cut here---------------end--------------->8--- Therefore, all files are not under VC control. This won't change. > Btw, indeed, you might be right about async option, but sshfs "might" > performce nicely for go to definition for eglot sometimes, but it's > just an impression, I could be totally wrong if I actually measure it. Pls tell me if you see more optimization knobs to be implemented. ATM, I believe we have done what's possible with this bug, so I'm closing it. > Best regards, > Ko Best regards, Michael. From unknown Thu Jun 19 14:03:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 25 Oct 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator