Skip to content

LSP doesn't work for external dependencies (like jars) #782

@ericdallo

Description

@ericdallo

When coding clojure-lsp integration with this plugin, I noticed that after you find the definition of a symbol that goes to a read only file of a external dependency, no LSP feature works on that opened file, no request besides textDocument/didOpen is sent to server.

Steps to reproduce in clojure-lsp:

  1. Install the plugin + nightly lsp4ij build: clojure-lsp-2.6.4.zip (ref branch)
  2. Open a clojure project, example: ericdallo/clojure-sample
  3. Open a clojure file like foo.clj and wait for LSP initialize.
  4. find definition of a function that belongs to a external lib, like concat or str from clojure.core.
  5. the new file will be opened, but no LSP feature will work there, like find references or go to definition of local variables.

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions