From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Tramp and conversion of \r\n into \n Date: Tue, 15 Dec 2020 12:37:50 +0100 Message-ID: <87pn3b1er5.fsf@gmx.de> References: <193e76e900f64f01a39893b12cf7c4ff@3ds.com> <871rfw900w.fsf@gmx.de> <87sg8c7i5w.fsf@gmx.de> <4f2b42e36d924f83883e120e601d40f7@3ds.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17173"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "emacs-devel@gnu.org" To: APEL Martin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 15 12:40:48 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kp8hE-0004LY-3t for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Dec 2020 12:40:48 +0100 Original-Received: from localhost ([::1]:41742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kp8hD-0001JI-68 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Dec 2020 06:40:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp8eU-0007aG-JE for emacs-devel@gnu.org; Tue, 15 Dec 2020 06:37:58 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:46423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp8eS-0005n8-H8 for emacs-devel@gnu.org; Tue, 15 Dec 2020 06:37:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608032271; bh=m2y6StKWcWiWnwzciQJfxMncSMQlJpshurcTO8hv7nw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Duxxe1n1NsrPUrRiHCZAPhT7cmTlD/3nrjiGZH9izYdRHqtivHaXiheuNZGkpEtxg RrG27ZbAtgYRJjwru3DmlH7YCtCX9/+C/7NqI9t8gsqNQd9ILuKtuWXKgkyxYzifor 2D42yHMv0ELTiyBntqLUji+z1XNe9NbEhEcyF8QQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.146.200]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQ5rU-1kTE5P1CD2-00M33f; Tue, 15 Dec 2020 12:37:51 +0100 In-Reply-To: <4f2b42e36d924f83883e120e601d40f7@3ds.com> (APEL Martin's message of "Fri, 11 Dec 2020 11:29:09 +0000") X-Provags-ID: V03:K1:EGMv0ahr7qlicerJaJYe1xaZ9tIFAGJqFVuKygo1yrssQjQAIR5 6bh2bAqQCAGhoEbv9zGLaL/zQ+PFBPcS0K2LwR5oE3yrYziuPBASuvMrWnBS7lSzJLeNiGJ Uts8cVYNH5Qg967h5ZvVEP1mVV2GROaHq4bCIpbcMED2bpxfUxFwcSgNR7rv9bGQaWyhXdK XpDoqQlrUNKwuSCmvfY5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:4CgAUafclpM=:LSImVUYsrwuiufwmjIrEQ9 JHz1uGE82JKyCpyUZqfy2P5neRZaElJRT3SW5sLlZphAM7QS4SdXKEmtLg2KrMl6Eye9IpdNU spz9br/W3DjIcKRFR930sLl7lRtja//QkD4XrlNX/ABdqMMtM5xhiuy9NIhuUjavbrVkTRuSl h92msYVxmBQrjC7y9hvvuwJ2IxM2bZeeFHOpGyymr1m6KkdxyqcmoX90AmzDYlPYvV0EuVkwC Ijz8MQa67CHBaY4qyC1v6Af3RgRxQCuvl1Uk07JVziN8t+UCiERRysbMj4X6R1egS+CBKi7Kq MM8xkwjaPO/g8mVu1Lcf09EHJulKtWwJiFqEa4jpBYG/Fk6O3uuYFzRYErrJYX/BarcPP6lTz VPdaZkoNBKs0GVH3VJZMs02RZ0D65tV6lkcCJaIZhspNB18VuunJ50zAGJdbC3PTkYHVpimym dZeCclonaxmtmuffCoM6BvlsMYSZMZFFIH9+YsuD3YUDgrLi4c/Xnv2GjK0cAs2OKLeeIIh0k r9/iaJXKoUsKOJ0D4Ut9fvcrctqT6u+ZSUHYGWv+zjMLNSvoXWMqc1KDjdjQQBPsbaDgq2r5T 6sc8l7UOiyYWPKUeb72n3qvVTI2m4qmSIOXoeZqofXy0RsCny1oUAFEh/3lq+pw2d+U/B8kTe 8JHYfOamvJUtsTLRZMJUmjLvx02gt48cF/IGpOSC5CzCwh+E+pkxC8580nAsRyITt0HNCeqdr DI7RTrS7pmaGZ/v3MxUX6vBQH02ZxXokEEafvXnP4i0zuOFz8DnLC6DDny4NdfLoZhzt0Gd6 Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260859 Archived-At: APEL Martin writes: > Hi Michael, Hi Martin, I've followd your recipe. My local machine runs Fedora 33, the remote machine runs Ubuntu 20.10. > Steps to do: > 1. Setup clangd: The clangd version you mentioned is rather old, but > you can try, if lsp mode works with that version. Otherwise I have > added a small build script, which will generate clangd from its > sources. It should install clangd somewhere into your path. This needs > to be done on the 'remote' machine. I have installed the Ubuntu package of clangd. It is --8<---------------cut here---------------start------------->8--- # apt list clangd Listing... Done clangd/groovy,now 1:11.0-51~exp1 amd64 [installed] clangd/groovy 1:11.0-51~exp1 i386 --8<---------------cut here---------------end--------------->8--- > 2. Put the wrapper-script somewhere into your path on the 'remote' machine. This simply redirects stdout and stderr of clangd, when it is invoked. This is referenced by the Emacs configuration. Done. clangd path name adapted to /usr/bin/clangd. > 3. Unpack the small example project and run the init.sh script in the project directory on the 'remote' machine. It will run cmake with the necessary options to generate a compile_commands.json file, which is needed by clangd. Done. > 4. Install lsp-mode with all its dependencies on the 'local' machine. Done. I've taken lsp-mode 20201209.1825 from MELPA. > 5. Make sure the initializations from the .el file are executed. Done. > 6. Now try to open the main.cpp file on the remote machine in Emacs on the local machine. This should trigger the start of clangd via lsp-mode. If the error occurs, the modeline shows 'clangd starting' forever. No error happened, everything looks normal. What else could I do? > Hope this helps, > > Martin Best regards, Michael.