-
Notifications
You must be signed in to change notification settings - Fork 213
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
Connection issues with lsp-bridge-enable-with-tramp and doom emacs #769
Comments
The problem seems to be that lsp-bridge cannot get the remote hostname. Are you using the ssh protocol? If so, please provide the tramp path of the file and the ssh config file. Thanks. |
Yes, I'm using the ssh protocol. The path would look something like this: My SSH config file would then look like this:
|
This question seems similar to issue #758. Is the host name defined in .ssh/config in domain name format rather than IP format? |
The config is indeed defined in name format. However, I also tried using ip format: With config:
I get a slightly different error this time:
|
Please update to the latest version and then execute lsp-bridge-tramp-show-hostnames function. |
Hm, I'm still getting the error even when using the ipv4 format. Here is the complete stacktrace when I first try to connect to a file and then run
|
According to the provided log, it seems that the issue lies in the encryption of the private key file. Paramiko raised a |
Alright so removing the password from my private key circumvented the encryption problems but when I connect I still get the following error: With logging enabled I now get:
I also noticed that in the following 3 scenario's the program behaves differently:
The autocomplete also does not seem to be working when I'm using |
In the opening tramp file, will the autocomplete return some yas-snippets or nothing at all? |
When I open the file using tramp I get the following logs:
Autocomplete returns yas-snippets and search words: But no real lsp functionality: Log of remote lsp on initial file opening:
last two entries of remote lsp after typing np. (I gave up on censoring the server ip and paths):
A more complete stacktrace (as much as my terminal allows): https://pastebin.com/ABm9rjk9 |
I commit a565130 You can turn on lsp-bridge-enable-log, lsp-bridge will print debug message for completion predicate result, if result is nil, that's why completion menu not popup. |
Did you test with emacs -Q? I guess other package in Doom will conflict with lsp-bridge. |
Hey, thank you for this package, it is the best experience I've had with LSP in emacs so far!
However, while trying to integrate lsp-bridge in my daily workflow (doom emacs + remote pyright) I hit a block. When I
(setq lsp-bridge-enable-with-tramp 't)
I fail to connect to the LSP server when opening a file using tramp (see logs below).PS: When opening a remote file using
lsp-bridge-open-remote-file
everything works as expected.Details:
The text was updated successfully, but these errors were encountered: