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

Failed to create connection to boot-ls on port 52440

Open zijianyue opened this issue 6 years ago • 3 comments

image

zijianyue avatar Sep 09 '19 02:09 zijianyue

Can you try increasing the timeout in lsp-tcp-server-command?

yyoncho avatar Sep 09 '19 15:09 yyoncho

I changed below code in func lsp-tcp-server-command ( change 20 to 100 and sit-for 1), and set lsp-tcp-connection-timeout 20 ,but it still report failure.

(let ((retries 0)) (while (and (not tcp-client-connection) (< retries 100)) (lsp--info "Waiting for connection for %s, retries: %s" name retries) (sit-for 1) (cl-incf retries)))

image

zijianyue avatar Sep 10 '19 02:09 zijianyue

After I reopen-file it seems work well.

LSP :: Waiting for connection for boot-ls, retries: 1 LSP :: Successfully connected to boot-ls LSP :: Connected to [jdtls:52376][boot-ls:53492 status:starting].

zijianyue avatar Sep 10 '19 03:09 zijianyue