You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LSP doesn't work for external dependencies (like jars) #782
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.
Yeah, that makes sense to me, IMO this inLocalSystem should not exists as the LSP protocol states that files could be even in remote system, not only local, although this jar problem is still considered local.
Thanks, let me know if there is anything to help with, I'm interested in releasing this as soon as possible. We would need a release from lsp4ij as well
@angelozerr just to give you visibility, I built lsp4ij locally without that isInLocalFileSystem check and the issue fixes for me, although I know it was added because of #560, even so, I do think this check should not live there or jar files should be considered local as well.
I'm wondering if we could make it configurable by a setting/config or class we can extend to configure it, WDYT?
Thanks @angelozerr! I think from clojure-lsp side we are ready for the 0.10.0 release, no blockers so far, will test all plugin features tomorrow to confirm
Indeed please test a lot the nighty since @SCWells72 did so many big and great contribution and @FalsePattern contribute to switch to the new API for inlay hint.
Activity
angelozerr commentedon Jan 30, 2025
@ericdallo is it a blocker issue?
angelozerr commentedon Jan 30, 2025
I suspect the problem comes from
lsp4ij/src/main/java/com/redhat/devtools/lsp4ij/LanguageServersRegistry.java
Line 563 in 06cfb21
ericdallo commentedon Jan 30, 2025
Yes, unfortunately it is @angelozerr, it's something really common in Clojure development
ericdallo commentedon Jan 30, 2025
And I suspect this may happen for other languages like Java and Dart that have go to definition to external libs
ericdallo commentedon Jan 30, 2025
Yeah, that makes sense to me, IMO this inLocalSystem should not exists as the LSP protocol states that files could be even in remote system, not only local, although this jar problem is still considered local.
angelozerr commentedon Jan 30, 2025
I did that to fix #560
ericdallo commentedon Jan 30, 2025
Hum, looks like it's not the best way to fix it
ericdallo commentedon Jan 30, 2025
Any chance we can have a flag or setting to not do that? also, removing that fixes the problem?
angelozerr commentedon Jan 30, 2025
Customize this behavior is my mind. I need to find time because I am super busy to clean the dap support to create a release.
If it is easy to do , I will try to do that but I cannot promise that.
ericdallo commentedon Jan 30, 2025
Thanks, let me know if there is anything to help with, I'm interested in releasing this as soon as possible. We would need a release from lsp4ij as well
ericdallo commentedon Feb 3, 2025
@angelozerr just to give you visibility, I built lsp4ij locally without that isInLocalFileSystem check and the issue fixes for me, although I know it was added because of #560, even so, I do think this check should not live there or jar files should be considered local as well.
I'm wondering if we could make it configurable by a setting/config or class we can extend to configure it, WDYT?
LSP doesn't work for external dependencies (like jars)
LSP doesn't work for external dependencies (like jars)
fix: LSP doesn't work for external dependencies (like jars)
angelozerr commentedon Feb 3, 2025
@ericdallo could you try #796 please
ericdallo commentedon Feb 3, 2025
@angelozerr that fixes the issue for me!
angelozerr commentedon Feb 3, 2025
Thats great! I will try to move this logic inside mapping with the default document matcher in order to have yhe capability to change this logic.
angelozerr commentedon Feb 4, 2025
Finally I will let like this and this logic cannot be configured.
I will re-consider that when we will have a concrete sample.
fix: LSP doesn't work for external dependencies (like jars)
ericdallo commentedon Feb 4, 2025
Thanks @angelozerr! I think from clojure-lsp side we are ready for the 0.10.0 release, no blockers so far, will test all plugin features tomorrow to confirm
angelozerr commentedon Feb 4, 2025
That's great!
Indeed please test a lot the nighty since @SCWells72 did so many big and great contribution and @FalsePattern contribute to switch to the new API for inlay hint.
fix: give a document opened from workspace/textDocumentContent the fe…