-
-
Notifications
You must be signed in to change notification settings - Fork 931
Closed
Description
Describe the bug
lsp starting stuck when open tramp file..
To Reproduce
emacs -q -l lsp-start-plain.el
C-x C-f /ssh:host_name:~/test/test.py
to open an empty project with an empty python file.
my lsp-start-plain.el
(require 'package)
(setq debug-on-error t)
(let* ((package-archives '(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(no-byte-compile t)
(package-user-dir (expand-file-name (make-temp-name "lsp-tmp-elpa")
user-emacs-directory))
(custom-file (expand-file-name "custom.el" package-user-dir))
(pkg-list '(lsp-mode lsp-ui yasnippet lsp-java lsp-python-ms lsp-haskell helm-lsp lsp-treemacs dap-mode lsp-origami lsp-dart company flycheck)))
(package-initialize)
(package-refresh-contents)
(mapcar (lambda (pkg)
(unless (package-installed-p pkg)
(package-install pkg))
(require pkg))
pkg-list)
(add-hook 'prog-mode-hook 'lsp)
(add-hook 'kill-emacs-hook `(lambda ()
(delete-directory ,package-user-dir t))))
(provide 'lsp-start-plain)
;;; lsp-start-plain.el ends here
(require 'tramp)
(add-to-list 'tramp-remote-path 'tramp-own-remote-path) ;; make execute-find pyls on remote
(with-eval-after-load 'lsp-mode
(setq lsp-print-io t)
(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection "pyls")
:major-modes '(python-mode)
:remote? t
:server-id 'pyls-remote)))
Expected behavior
lsp start server correcting.
Which Language Server did you use
lsp-python
OS
Local: macOS GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Version 10.15.5 (Build 19F101)) of 2020-06-20
remote: ubuntu
Error callstack
there is no error.
maybe related:
*lsp-log*:
Command "pyls" is present on the path.
Command "pyls" is present on the path.
Found the following clients for /ssh:is:/home/wts/test/test.py: (server-id pyls-remote, priority 0)
The following clients were selected based on priority: (server-id pyls-remote, priority 0)
*pyls-remote* is empty
*lsp-log: pyls-remote:28853*:
[Trace - 06:09:25 PM] Sending request 'initialize - (1)'.
Params: {
"processId": null,
"rootPath": "/home/wts/test",
"clientInfo": {
"name": "emacs",
"version": "GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Version 10.15.5 (Build 19F101))\n of 2020-06-20"
},
"rootUri": "file:///home/wts/test",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
]
},
"applyEdit": true,
"symbol": {
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
}
},
"executeCommand": {
"dynamicRegistration": false
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"workspaceFolders": true,
"configuration": true
},
"textDocument": {
"declaration": {
"linkSupport": true
},
"definition": {
"linkSupport": true
},
"implementation": {
"linkSupport": true
},
"typeDefinition": {
"linkSupport": true
},
"synchronization": {
"willSave": true,
"didSave": true,
"willSaveWaitUntil": true
},
"documentSymbol": {
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"completion": {
"completionItem": {
"snippetSupport": true,
"documentationFormat": [
"markdown"
]
},
"contextSupport": true
},
"signatureHelp": {
"signatureInformation": {
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"hover": {
"contentFormat": [
"markdown",
"plaintext"
]
},
"foldingRange": {
"dynamicRegistration": true
},
"callHierarchy": {
"dynamicRegistration": false
},
"publishDiagnostics": {
"relatedInformation": true,
"tagSupport": {
"valueSet": [
1,
2
]
},
"versionSupport": true
}
},
"window": {
"workDoneProgress": true
}
},
"initializationOptions": null,
"workDoneToken": "1"
}
Metadata
Metadata
Assignees
Labels
No labels