Hi Michael, I have created the trace files for remote compile and rgrep for you and attached them. For the remote compile I invoke a shell script called 'my_remote_compile.sh', which in turn calls a script 'my_compile.sh'. The script is called with two arguments, the build directory and the target name, which are lost, when the script is actually called. This works in Emacs 27.1. For the rgrep invocation I simply used a pattern 'mytest' and '*' for the file pattern. Regarding the error message about recursive invocation, I have not seen this anymore. Best Regards, Martin > -----Original Message----- > From: Michael Albinus > Sent: 17 December 2020 13:50 > To: APEL Martin > Cc: emacs-devel@gnu.org > Subject: Re: Tramp and conversion of \r\n into \n > > > APEL Martin writes: > > > Hi Michael, > > Hi Martin, > > > I built an Emacs version from the current master branch and tried it out: > > lsp-mode works well with a remote clangd now. > > Thanks for the feedback. > > > Unfortunately there are > > some other problems, which do not occur with Emacs 27.1 and which > > might be related to TRAMP: > > - my remote compile setup does not work anymore. It seems that the > > arguments to the invoked compile command are lost on the way to the > > remote machine > > - rgrep on a remote machine also does not work. It produces a list of > > files it intends to search instead of the grep output > > Direct async calls are new in Emacs 28, so they might not work yet in all cases. > Pls run your test with tramp-verbose set to 10, and send me the debug > traces in both cases. It would also good to know, how compile and rgrep are > invoked. > > > - I also encountered an error message from TRAMP once. Unfortunately I > > restarted Emacs afterwards, so I don't have the exact error message. > > It was something about a recursive call detected and a sentinel was > > mentioned. > > This is not related to the lsp-mode change, but rather to hardening Tramp > detecting blocking situations (you've seen my message about "Tramp and > timers"). Process sentinels are also affected. > > In order to circumvent this, you might add to your .emacs > > (setq debug-ignored-errors (cons 'remote-file-error debug-ignored-errors)) > > > 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