clojure-lsp / clojure-lsp/clojure-lsp

LSP does not function inside dependencies

Open
#1,503 3 comments 1 reaction 0 assignees View on GitHub
editor need-more-info
Dominant language
Clojure
Stars
1.3k
Forks
180
Avg merge
13m
Merged PRs (30d)
4

Description

**Describe the bug**
Using lein and nvim.
Let's say I have a function that is defined in a library. If I "go to definition" on it, I as expected see the definition of that function in a path like `zipfile://~/.m2/repository/dependency/...dependency.jar::namespace/foo/bar/file.clj`

However it looks like the lsp client does not attach to that buffer, and no LSP features work for it - so I cannot for example keep "going to definition" on functions inside that file, forcing me to clone and explore that project in a separate session.

**To Reproduce**
Steps to reproduce the behavior:
1. Open a namespace in a lein project that imports a namespace from maven
2. Go to definition to that dependency
3. LSP does not attach

**Expected behavior**
I would expect the LSP to attach to that buffer and allow further exploration

**Logs** - N/A

**User details (please complete the following information):**
- OS: MacOS
- Editor: NVIM v0.8.3
- Version: clojure-lsp 2023.01.26-11.14.00-nightly, clj-kondo 2023.01.20

**Additional context**
N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.