Doom-emacs: Tramp session gets re-established over and over when traversing git repo directory structure

Created on 27 Jan 2020  ·  3Comments  ·  Source: hlissner/doom-emacs

What did you expect to happen?
C-x C-f to open an ssh connection to a remote server to a directory. The directory contains a git repo. Expecting a dired buffer. Expecting no slowness while going through the directories of the repo.

What actually happened?
Once you get into a remote git directory, and start going into different subdirectories, dired responds slow and I'm seeing a lot of logs about re-establishing the connection in the *Messages* buffer:

Tramp: Sending command ‘exec ssh -q   -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none clouddesk’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘clouddesk’
Tramp: Opening connection for clouddesk using ssh...done
Tramp: Opening connection for clouddesk using ssh...
Tramp: Sending command ‘exec ssh -q   -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none clouddesk’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘clouddesk’
Tramp: Opening connection for clouddesk using ssh...done
Tramp: Opening connection for clouddesk using ssh...
Tramp: Sending command ‘exec ssh -q   -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none clouddesk’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘clouddesk’
Tramp: Opening connection for clouddesk using ssh...done

Additional details:
This seems to be happening only in dired and only for git repos. I'm assuming dired tries to fetch some git specific info from the remote server, but for doing that it creates a new tramp connection every time.
Tried the same thing with vanilla Emacs and there are no problems with the connection and no reconnects.

Steps to reproduce:

  1. Connect to remote machine using Tramp
  2. Open a dired buffer to a git repo on the remote machine
  3. Browse the sub-directories
  4. Check the minibuffer or *messages* for attempts to re-establish the ssh connection

System information:

emacs   version    26.3
        features   NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
        build      Sep 02, 2019
        buildopts  (--with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules)
        windowsys  ns
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop, origin/develop, origin/HEAD 12094788d 2020-01-14 03:04:26 -0500
        dir        ~/.doom.d/
system  type       darwin
        config     x86_64-apple-darwin18.2.0
        shell      /bin/zsh
        uname      Darwin 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64
        path       (~/.nvm/versions/node/v10.16.3/bin/ ~/.nvm/versions/node/v10.16.3/bin/ /usr/local/bin/ /usr/bin/ /bin/ /usr/sbin/ /sbin/ ~/.toolbox/bin/ ~/Library/Python/3.7/bin/ /usr/local/opt/fzf/bin/ ~/.toolbox/bin/ ~/Library/Python/3.7/bin/ /Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_14/ /Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_14/ /Applications/Emacs.app/Contents/MacOS/libexec/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc :checkers syntax :tools docker (eval +overlay) (lookup +docsets) lsp macos magit pass :lang data emacs-lisp (java +meghanada) (javascript +lsp) markdown (org +dragndrop +present) (python +lsp) sh :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)

Tramp debug logs

Last login: Mon Jan 27 21:49:21 2020 from 10.95.68.85

     \   __|  __|
    _ \ (    (     AL2012.03
  _/  _\___|\___|

  Image created: Mon Nov 14 17:20:16 UTC 2016

%                                                                              


$ 
22:49:23.179409 tramp-process-actions (3) # Waiting for prompts from remote shell...done
22:49:23.179731 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘clouddesk’
22:49:23.179960 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
22:49:23.180176 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='26.3,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 
22:49:23.281449 tramp-wait-for-regexp (6) # 
exec env TERM='dumb' INSIDE_EMACS='26.3,tramp:2.3.5.26.3' ENV='' HISTFILE=~/
<,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.                                       
<,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\
<amp_history PROMPT_COMMAND='' PS1=\#\$                                       
<amp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 

#$ 
22:49:23.282053 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo tramp_exit_status $?
22:49:23.395369 tramp-wait-for-regexp (6) # 
(cd ~/) 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
#$ 
22:49:23.396027 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...done
22:49:23.396434 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
22:49:23.396837 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
22:49:23.516287 tramp-wait-for-regexp (6) # 
stty -inlcr -onlcr -echo kill '^U' erase '^H'
#$ 
22:49:23.516926 tramp-send-command (6) # echo foo
22:49:23.579002 tramp-wait-for-regexp (6) # 
foo
#$ 
22:49:23.579852 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
22:49:23.580400 tramp-send-command (6) # PS1=///f9e45fedc3d762db44ea6e4c577ea6da\#\$ PS2='' PS3='' PROMPT_COMMAND=''
22:49:23.638089 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.638771 tramp-open-connection-setup-interactive-shell (5) # Checking system information
22:49:23.639279 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
22:49:23.692509 tramp-wait-for-regexp (6) # 
"Linux 4.9.184-0.1.ac.235.83.329.metal1.x86_64"
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.693229 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
22:49:23.694288 tramp-send-command (6) # (echo foo ; echo bar)
22:49:23.746511 tramp-wait-for-regexp (6) # 
foo
bar
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.747163 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to ‘utf-8’ and ‘utf-8-unix’
22:49:23.747589 tramp-send-command (6) # set +o vi +o emacs
22:49:23.798074 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.798754 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for ‘send-process-string’ bug
22:49:23.799253 tramp-set-remote-path (5) # Setting $PATH environment variable
22:49:23.799721 tramp-send-command (6) # PATH=/home/dimiha/npm-global/bin:/apollo/env/SDETools/bin:/apollo/env/OdinTools/bin:/apollo/env/OctaneBrazilTools/bin:/apollo/env/NodeJS/bin:/apollo/env/BrazilCLI/bin:/apollo/env/BarkCLI/bin:/apollo/env/ApolloCommandLine/bin:/apollo/env/AmazonAwsCli/bin:/apollo/env/envImprovement/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export PATH
22:49:23.874667 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.875379 tramp-send-command (6) # mesg n 2>/dev/null; biff n 2>/dev/null
22:49:23.928705 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.929204 tramp-send-command (6) # stty tab0
22:49:23.995239 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:23.995887 tramp-send-command (6) # stty iutf8 2>/dev/null
22:49:24.051899 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.052584 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
22:49:24.116848 tramp-wait-for-regexp (6) # 
"/dev/pts/1"
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.117523 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
22:49:24.118024 tramp-send-command (6) # while read var val; do export $var="$val"; done <<'47fe3fd4acbc64945bef4147f4087dc1'
LC_ALL en_US.utf8
ENV ''
TMOUT 0
LC_CTYPE ''
PAGER cat
47fe3fd4acbc64945bef4147f4087dc1
22:49:24.180042 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.180694 tramp-send-command (6) # unset CDPATH HISTORY MAIL MAILCHECK MAILPATH autocorrect correct
22:49:24.238663 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.239676 tramp-maybe-open-connection (3) # Opening connection for clouddesk using ssh...done
22:49:24.240051 tramp-send-command (6) # echo $$ 2>/dev/null; echo tramp_exit_status $?
22:49:24.297635 tramp-wait-for-regexp (6) # 
3281
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.298414 tramp-send-command (6) # cd /local/home/dimiha/workspace/DimihaHelloAmazon/src/DimihaHelloAmazon/src/ &&  exec  env -u GIT_DIR PS1\=/ssh\:clouddesk\:/local/home/dimiha/workspace/DimihaHelloAmazon/src/DimihaHelloAmazon/src/\ \#\$\  LC_MESSAGES\=C git --no-pager ls-files -z -o --directory --no-empty-directory --exclude-standard -- com
22:49:24.368793 tramp-maybe-open-connection (3) # Opening connection for clouddesk using ssh...
22:49:24.413336 tramp-maybe-open-connection (6) # /bin/sh -i
22:49:24.418601 tramp-wait-for-regexp (6) # 
#$ 
22:49:24.419736 tramp-maybe-open-connection (3) # Sending command ‘exec ssh -q   -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none clouddesk’
22:49:24.419952 tramp-send-command (6) # exec ssh -q   -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none clouddesk
22:49:24.420335 tramp-process-actions (3) # Waiting for prompts from remote shell...
22:49:24.535135 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
22:49:24.536171 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
22:49:24.537030 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
22:49:24.537482 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
22:49:24.537854 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
22:49:24.538250 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
22:49:24.538544 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
22:49:24.538857 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
22:49:24.539137 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
22:49:24.539404 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
22:49:24.556443 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
22:49:24.557366 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
22:49:24.557878 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
22:49:24.558220 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
22:49:24.558506 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\(\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
22:49:24.558761 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
22:49:24.559014 tramp-process-actions (6) # 
Last login: Mon Jan 27 21:49:23 2020 from 10.95.68.85

     \   __|  __|
    _ \ (    (     AL2012.03
  _/  _\___|\___|

  Image created: Mon Nov 14 17:20:16 UTC 2016

%                                                                              


$ 
22:49:24.559420 tramp-process-actions (3) # Waiting for prompts from remote shell...done
22:49:24.559756 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘clouddesk’
22:49:24.560034 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...
22:49:24.560336 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='26.3,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 
22:49:24.668161 tramp-wait-for-regexp (6) # 
exec env TERM='dumb' INSIDE_EMACS='26.3,tramp:2.3.5.26.3' ENV='' HISTFILE=~/
<,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.                                       
<,tramp:2.3.5.26.3' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\
<amp_history PROMPT_COMMAND='' PS1=\#\$                                       
<amp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh 

#$ 
22:49:24.668909 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo tramp_exit_status $?
22:49:24.777325 tramp-wait-for-regexp (6) # 
(cd ~/) 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
#$ 
22:49:24.777962 tramp-open-shell (5) # Opening remote shell ‘/bin/sh’...done
22:49:24.778384 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
22:49:24.778840 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
22:49:24.896047 tramp-wait-for-regexp (6) # 
stty -inlcr -onlcr -echo kill '^U' erase '^H'
#$ 
22:49:24.896317 tramp-send-command (6) # echo foo
22:49:24.947099 tramp-wait-for-regexp (6) # 
foo
#$ 
22:49:24.947761 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
22:49:24.948288 tramp-send-command (6) # PS1=///f9e45fedc3d762db44ea6e4c577ea6da\#\$ PS2='' PS3='' PROMPT_COMMAND=''
22:49:24.997823 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:24.998487 tramp-open-connection-setup-interactive-shell (5) # Checking system information
22:49:24.998994 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
22:49:25.049540 tramp-wait-for-regexp (6) # 
"Linux 4.9.184-0.1.ac.235.83.329.metal1.x86_64"
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.050232 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
22:49:25.051304 tramp-send-command (6) # (echo foo ; echo bar)
22:49:25.100702 tramp-wait-for-regexp (6) # 
foo
bar
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.101466 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to ‘utf-8’ and ‘utf-8-unix’
22:49:25.101913 tramp-send-command (6) # set +o vi +o emacs
22:49:25.151761 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.152406 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for ‘send-process-string’ bug
22:49:25.152827 tramp-set-remote-path (5) # Setting $PATH environment variable
22:49:25.153324 tramp-send-command (6) # PATH=/home/dimiha/npm-global/bin:/apollo/env/SDETools/bin:/apollo/env/OdinTools/bin:/apollo/env/OctaneBrazilTools/bin:/apollo/env/NodeJS/bin:/apollo/env/BrazilCLI/bin:/apollo/env/BarkCLI/bin:/apollo/env/ApolloCommandLine/bin:/apollo/env/AmazonAwsCli/bin:/apollo/env/envImprovement/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export PATH
22:49:25.203596 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.204320 tramp-send-command (6) # mesg n 2>/dev/null; biff n 2>/dev/null
22:49:25.263802 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.264462 tramp-send-command (6) # stty tab0
22:49:25.319209 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.319959 tramp-send-command (6) # stty iutf8 2>/dev/null
22:49:25.380443 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.381125 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
22:49:25.443143 tramp-wait-for-regexp (6) # 
"/dev/pts/1"
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.443857 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
22:49:25.444451 tramp-send-command (6) # while read var val; do export $var="$val"; done <<'47fe3fd4acbc64945bef4147f4087dc1'
LC_ALL en_US.utf8
ENV ''
TMOUT 0
LC_CTYPE ''
PAGER cat
47fe3fd4acbc64945bef4147f4087dc1
22:49:25.497447 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.498137 tramp-send-command (6) # unset CDPATH HISTORY MAIL MAILCHECK MAILPATH autocorrect correct
22:49:25.557591 tramp-wait-for-regexp (6) # 
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.558231 tramp-maybe-open-connection (3) # Opening connection for clouddesk using ssh...done
22:49:25.558595 tramp-send-command (6) # echo $$ 2>/dev/null; echo tramp_exit_status $?
22:49:25.611961 tramp-wait-for-regexp (6) # 
3305
tramp_exit_status 0
///f9e45fedc3d762db44ea6e4c577ea6da#$
22:49:25.612689 tramp-send-command (6) # cd /local/home/dimiha/workspace/DimihaHelloAmazon/src/DimihaHelloAmazon/src/ &&  exec  env -u GIT_DIR PS1\=/ssh\:clouddesk\:/local/home/dimiha/workspace/DimihaHelloAmazon/src/DimihaHelloAmazon/src/\ \#\$\  LC_MESSAGES\=C git --no-pager ls-files -z -o -i --directory --no-empty-directory --exclude-standard -- com

:emacs dired bug networking remote resolved-elsewhere

Most helpful comment

This thread:
This thread
(Sorry for the spam )

All 3 comments

I've disabled the dired-git-info package in an attempt to figure out which package is the culprit, but the problem still persists.

It's diff-hl-dired-mode that's causing all the re-connections. I don't know why, but after disabling the diff-hl package, the problem disappeared.

Found this bug in diff-hl: https://github.com/dgutov/diff-hl/issues/100

I assume the problem starts here: https://github.com/hlissner/doom-emacs/blob/develop/modules/emacs/dired/config.el#L68. It should be

(use-package! diff-hl
  :hook (dired-mode . diff-hl-dired-mode-unless-remote)

This thread:
This thread
(Sorry for the spam )

Was this page helpful?
0 / 5 - 0 ratings