Skip to content

Cannot navigate into JARS in Sublime Text, opens browser instead #547

@askonomm

Description

@askonomm

Describe the bug
Whenever I hover over a function or package that isn't in my own project (e.g any external dependency), I get a popup with a path to the function inside of a JAR. Clicking on that link will however prompt to open the path in the browser, where it obviously fails to open it, because it is inside of a JAR. Worth mentioning that it attempts to load the file with a http://zipfile/// prefix, which I'm not sure if is Clojure LSP doing it or Sublime LSP.

Go to definition to that function also doesn't work, with Sublime instead prompting a "Unable to open URI". Thus, navigating to any dependency is not possible.

To Reproduce
Steps to reproduce the behavior:

  1. Open any Clojure file with dependencies in Sublime Text
  2. Try to go-to-definition or click on the path in the popup

Expected behavior
I expect it would open the correct file in Sublime Text, and scroll to the correct function.

Screenshots
Screen Shot 2021-09-09 at 00 15 58
Screen Shot 2021-09-09 at 00 18 27

Log - client <-> server
ADD JSON HERE
Log - clojure-lsp
error: Unable to open URI

User details (please complete the following information):

  • OS: MacOS
  • Editor Sublime Text 4
  • Version: clojure-lsp 2021.08.24-14.41.56, clj-kondo 2021.08.07-SNAPSHOT

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditorRelated to clojure-lsp on a text editor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions