Hi Michael, I created a small test setup as follows: - A mini C++ project - An Emacs Lisp file with initializations for LSP mode - A build script to create clangd - A wrapper script for clangd, so you can see the output of clangd 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. 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. 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. 4. Install lsp-mode with all its dependencies on the 'local' machine. 5. Make sure the initializations from the .el file are executed. 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. Hope this helps, Martin -----Original Message----- From: Michael Albinus Sent: 11 December 2020 11:26 To: APEL Martin Cc: emacs-devel@gnu.org Subject: Re: Tramp and conversion of \r\n into \n EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary of the content and do not open unexpected attachments or links. If you consider this email as spam, you can click the following link https://spam-report.3ds.com/?linktext=https://www.mailcontrol.com/sr/PQhcOnFqQ7HGX2PQPOmvUnWT5wH6X0A_UZF2JwsSf9afotUhni4wvENwzuRffNHjJrqVYUl7c0yhqfUB1i-uFQ== (no login or additional action will be requested). APEL Martin writes: > Hi Michael, Hi Martin, > I could offer you a test case for a C++ environment: > I have a script to build clangd from the LLVM sources and the > necessary Emacs configuration settings. You would obviously need two > machines (which could be virtual), where you open a C++ file in Emacs, > which should then initialize the clangd on the remote machine. Would > that be a case you would want to investigate? Yes, pls send. There's also , would this be sufficient? I don't lack other machines, running Tramp tests permanently :-) > Best Regards, > > Martin Best regards, Michael. This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.compliance-privacy@3ds.com For other languages, go to https://www.3ds.com/terms/email-disclaimer