Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tramp Opening Connection Loop #61

Open
MatthewZMD opened this issue Oct 23, 2019 · 0 comments
Open

Tramp Opening Connection Loop #61

MatthewZMD opened this issue Oct 23, 2019 · 0 comments

Comments

@MatthewZMD
Copy link
Member

我不知道是不是因为我的remote-client配置出了问题,总之配置在这里

通过tramp打开第一个cpp文件时,ccls成功启动,但是tramp开始重复登录,这时emacs的cpu占用非常高,大概要等一分钟才会完成加载。之后一切回归正常,打开新文件也不会等待了。。

我初步怀疑是cache的问题,但不是很清楚该怎么修复。我所找到最接近的issue是这个,但我不是很懂底下的fix,如果你能用中文再解释一下就更好了。谢谢!

以下是Messages的部分buffer内容

Tramp: Opening connection for user@server using ssh...
Tramp: Sending command ‘exec ssh -l user  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none server’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘server’
Tramp: Opening connection for user@server using ssh...done
Tramp: Inserting ‘/ssh:user@server:/foo/boo/file.cc’...
Tramp: Encoding remote file ‘/ssh:user@server:/foo/boo/file.cc’ with ‘base64 <%s’...done
Tramp: Decoding local file ‘/tmp/tramp.kz84Za.cc’ with ‘base64-decode-region’...done
Tramp: Inserting ‘/ssh:user@server:/foo/boo/file.cc’...done
Tramp: Opening connection for user@server using ssh...
Tramp: Sending command ‘exec ssh -q -l user  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none server’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘server’
Tramp: Opening connection for user@server using ssh...done
LSP :: Connected to [ccls-remote:9341 status:starting]. [2 times]

Tramp: Checking ‘vc-registered’ for /ssh:user@server:/foo/boo/file.cc...done
LSP :: Connected to [ccls-remote:9341 status:starting].
LSP :: ccls-remote:9341 initialized successfully
Tramp: Opening connection for user@server using ssh...
Tramp: Sending command ‘exec ssh -q -l user  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none server’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘server’
Tramp: Opening connection for user@server using ssh...done
Tramp: Opening connection for user@server using ssh...
Tramp: Sending command ‘exec ssh -q -l user  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none server’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘server’
Tramp: Opening connection for user@server using ssh...done
Tramp: Opening connection for user@server using ssh...
Tramp: Sending command ‘exec ssh -q -l user  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none server’
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘server’
Tramp: Opening connection for user@server using ssh...done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant