I am connecting regularly to servers via tramp. Sometimes everything works fine but often times my messages buffer gets spammed full of

Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘’
Tramp: Opening connection for 123.630.239.152 using ssh...done

everytime I type something in a .py file. If I log into a different machine (same setup Ubuntu 18.04) it does not occur. I use build in tramp and did not specify anything with respect to tramp. If I open on the remote machine e.g. .bashrc this problem does not happen. does anyone know what the problem is?

thanks in advance

  • Is there a problem? Other than lots of messages appearing in your Messages buffer, does everything else work properly? If so, maybe there's something unusual about the network connection to that particular host; if all it does is generate noise in your Messages buffer, you could just ignore it – Tyler Mar 14 at 17:11
  • it renders the typing extremely slow and laggy. also, I should have mentioned, that it spams the minibuffer, so it is very annoying – CD86 Mar 14 at 17:14
  • that's definitely a real problem then! Is the bash prompt on the problem machine different than the other computers you connect to? I've had problems when the prompt of the target machine doesn't match the regexp Tramp uses to identify the prompts. – Tyler Mar 14 at 17:20
  • I use the very same .bashrc on every of those servers that I connect to that I use on my main machine -.- – CD86 Mar 14 at 17:41
  • 1
    I would hazard a guess that you are using flymake or flycheck with python, and that you are accessing your python files via tramp, and the flymake/check process is being invoked every few seconds or similar and starting up a new process on the remote server over tramp, and that is what is generating the connection messages. If that's correct, obviously it's not usable for you in this scenario, so either disable flymake/check, or find a better way to work with the remote files (e.g. with an emacs which is local to the files). – phils Mar 14 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.