unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: APEL Martin <Martin.APEL@3ds.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: Tramp and conversion of \r\n into \n
Date: Fri, 11 Dec 2020 11:29:09 +0000	[thread overview]
Message-ID: <4f2b42e36d924f83883e120e601d40f7@3ds.com> (raw)
In-Reply-To: <87sg8c7i5w.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 3611 bytes --]

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 <michael.albinus@gmx.de>
Sent: 11 December 2020 11:26
To: APEL Martin <Martin.APEL@3ds.com>
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 <Martin.APEL@3ds.com> 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 <https://snapcraft.io/install/clangd/fedora>,
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<mailto:3DS.compliance-privacy@3ds.com>


For other languages, go to https://www.3ds.com/terms/email-disclaimer

[-- Attachment #2: test_setup.tar.gz --]
[-- Type: application/x-gzip, Size: 1072 bytes --]

  reply	other threads:[~2020-12-11 11:29 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11  7:46 Tramp and conversion of \r\n into \n APEL Martin
2020-12-11  9:15 ` Michael Albinus
2020-12-11  9:59   ` APEL Martin
2020-12-11 10:26     ` Michael Albinus
2020-12-11 11:29       ` APEL Martin [this message]
2020-12-11 11:52         ` Michael Albinus
2020-12-13 16:04           ` Michael Albinus
2020-12-15 11:37         ` Michael Albinus
2020-12-15 12:45           ` APEL Martin
2020-12-15 14:37             ` Michael Albinus
2020-12-15 18:45               ` Michael Albinus
2020-12-16  6:44                 ` APEL Martin
2020-12-16 15:34         ` Michael Albinus
2020-12-16 15:55           ` APEL Martin
2020-12-17 11:35           ` APEL Martin
2020-12-17 12:50             ` Michael Albinus
2020-12-18  7:48               ` APEL Martin
2020-12-18 12:35                 ` Michael Albinus
2020-12-18 12:56                   ` APEL Martin
2020-12-18 13:04                     ` Michael Albinus
2020-12-18 14:54                       ` APEL Martin
2020-12-18 15:00                         ` Michael Albinus
2020-12-18 15:10                           ` APEL Martin
2020-12-18 15:18                             ` Michael Albinus
2020-12-22 14:57                             ` Michael Albinus
2021-01-07 11:13                               ` APEL Martin
2020-12-19  9:18             ` yyoncho
2020-12-19 16:48               ` Michael Albinus
2020-12-20 14:03                 ` Michael Albinus
2021-08-05  1:46                 ` Thomas Ross
2021-08-05  6:16                   ` Eli Zaretskii
2021-08-07  2:08                     ` Thomas Ross
2021-08-05 14:10                   ` Stefan Monnier
2021-08-05 15:40                     ` Michael Albinus
2021-08-05 16:25                       ` Stefan Monnier
2021-08-06  7:13                         ` Michael Albinus
2021-08-06 14:46                           ` Stefan Monnier
2021-08-07 13:51                             ` Michael Albinus
2021-08-07 22:04                               ` Stefan Monnier
2021-08-08  6:13                                 ` PTYs vs. pipes for subprocesses [was: Tramp and conversion of \r\n into \n] tomas
2021-08-08 14:25                                 ` Tramp and conversion of \r\n into \n Michael Albinus
2021-08-12 18:47                                   ` Michael Albinus
2021-08-13 12:16                                     ` Michael Albinus
2021-08-07  2:07                     ` Thomas Ross
2021-08-07 13:54                       ` Michael Albinus
2021-08-08 14:29                         ` Michael Albinus
  -- strict thread matches above, loose matches on Subject: below --
2020-12-09  7:34 yyoncho
2020-12-10 13:44 ` Michael Albinus
2020-12-11 14:11   ` yyoncho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f2b42e36d924f83883e120e601d40f7@3ds.com \
    --to=martin.apel@3ds.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).