Skip to content

clojure-lsp: not working via Tramp #4745

Open
@jkxyz

Description

@jkxyz

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

When using clojure-lsp in a Tramp remote buffer, I'm observing the following behavior:

  1. The LSP server successfully starts and connects on the remote host
  2. Project diagnostics are correctly displayed in the modeline
  3. Code actions like "Move to let" work as expected
  4. Navigation functions like lsp-find-definition and lsp-describe-thing-at-point all fail to work, reporting that the symbol cannot be found, or displaying an empty help buffer

I've tested this on the sshx tramp method, and a custom wsl method.

Steps to reproduce

  1. Navigate to a remote Clojure file using Tramp, e.g. with the Tramp path /sshx:localhost:proj/foo.clj
  2. M-x lsp
  3. Once the server has started, observe that lsp-find-references and other functions don't work

Expected behavior

The LSP client should work seamlessly over Tramp.

Which Language Server did you use?

clojure-lsp

OS

Windows

Error callstack

Anything else?

It's worth noting that clojure-lsp works well with Eglot over Tramp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions