Skip to content

error message when dune lang version is too new in dune-package is unclear #14560

@Alizter

Description

@Alizter

When a user downgrades their version of dune, and tries to use an installed dune package. They are met with the following situation:

$ dune build
File ".../dune-package", line 1, characters 11-15:
1 | (lang dune 3.23)
               ^^^^
Error: Version 3.23 of the dune language is not supported.
Supported versions of this extension in version 3.23 of the dune language:
- 1.0 to 1.12
- 2.0 to 2.9
- 3.0 to 3.21
-> ...

This is really unhelpful.

Instead we should say something like:

Error: The installed `dune` package was built and installed with an
unsupported version of dune. The current dune version is ....
Hint: Upgrade your version of dune.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for contributing for the first time to the Dune codebase
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions