lsp-docker icon indicating copy to clipboard operation
lsp-docker copied to clipboard

container name missing suffix for lsp--client-uri->path-fn

Open minikN opened this issue 3 years ago • 2 comments

Describe the bug After starting a language server (intelephense in my case) and executing lsp-ui-peek-find-workspace-symbol I get this error:

Tramp-Buffer:

Error: No such container: lsp-langserver

Messages:

Tramp: Opening connection for lsp-langserver using docker...
Tramp: Sending command ‘exec docker  exec -it  lsp-langserver sh’
Tramp: Waiting for prompts from remote shell...
Tramp failed to connect.  If this happens repeatedly, try
    ‘M-x tramp-cleanup-this-connection’
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for lsp-langserver using docker...failed
Cleaning up the recentf list...done (0 removed)
tramp-signal-hook-function: Tramp failed to connect.  If this happens repeatedly, try
    ‘M-x tramp-cleanup-this-connection’

According to @yyoncho in Gitter:

lsp--client-uri->path-fn is set to the client wihtout the ID at some point we should copy the client and pass the proper lsp--client-uri->path-fn

To Reproduce

  • Open a project and wait for language server to start
  • Execute lsp-ui-peek-find-workspace-symbol

Expected behavior The function should open a tramp connection to the docker container with the proper name

Which Language Server did you use intelephense

OS

031 ~ ➜ uname -a
Linux voidwalker 5.8.16_1 emacs-lsp/lsp-mode#1 SMP Sat Oct 17 12:21:35 UTC 2020 x86_64 GNU/Linux

minikN avatar Oct 30 '20 08:10 minikN

@yyoncho Can you please see my fix in https://github.com/emacs-lsp/lsp-docker/pull/40 ? Do you have any input?

zflat avatar May 28 '21 19:05 zflat

Sorry, I saw it then I forgot about it - will review it tomorrow my time

yyoncho avatar May 28 '21 19:05 yyoncho