Skip to content

Include jars without sources #444

@nilskp

Description

@nilskp

Is your feature request related to a problem? Please describe.

This is in VSCode, but not sure if the scope is broader.

When I have a dependency that does not expose a -sources jar, the Metals Packages view, under the Libraries section, does not include this dependency, it's essentially hidden. Code linking is also broken, which makes it very hard to navigate code using such a library.

Describe the solution you'd like

There already exists multiple decompilation extensions for VSCode, so if Metals could simply not hide this jar, opening the no-source class files should result in such an extension kicking in and showing the decompiled (Java) code.

Describe alternatives you've considered

Can't think of any, other than not using Metals.

Additional context

For testing, here's an example of a custom Maven project without source files (v2.0.12.4 and backwards):

https://dl.frostwire.com/maven

Search terms

maven sources jar hidden invisible no-source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions