Skip to content

Pin versions of libraries used by plugins #2894

Closed
@mitchellwrosen

Description

@mitchellwrosen

Problem: it is unclear which versions of plugins (the Haskell ones, anyway - I'm not sure if any plugins are not bundled Haskell libraries, but are instead communicated with via subprocess) my HLS has installed.

Describe the solution you'd like

Plugins pin their dependency on the underlying tool (e.g. hls-ormolu-plugin-1.0.2.1 could depend on ormolu == 0.4.0.0 rather than ormolu >= 0.1.2 && < 0.5)

Additional context

This (I think) would make it easier for different people on a team to end up installing a version of HLS that has the same underlying formatter (and other plugins).

Currently, someone I'm collaborating with has managed to install haskell-language-server-1.7.0.0 with a version of ormolu less than the latest 0.4.0.0, which is what my haskell-language-server-1.7.0.0 seems to have picked. So, we're getting some formatting diffs when we trade pull requests. 🥲

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions