elm-package icon indicating copy to clipboard operation
elm-package copied to clipboard

Incorrect error message when using incorrect version number

Open That-David-Guy opened this issue 8 years ago • 3 comments

Apologies if this is not the right repo for this.

To Reproduce

  1. Put this in your elm-package:
{
    "version": "1.0.0",
    "summary": "helpful summary of your project, less than 80 characters",
    "repository": "https://github.com/user/project.git",
    "license": "",
    "source-directories": [
        "."
    ],
    "exposed-modules": [],
    "dependencies": {
        "NoRedInk/elm-decode-pipeline": "3.0.0 <= v < 4.0.0",
        "elm-community/list-extra": "6.0.0 <= v < 7.0.0",
        "elm-lang/core": "5.1.1 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0",
        "elm-lang/http": "3.0.0 <= v < 4.0.0",
        "elm-lang/navigation": "2.1.0 <= v < 3.0.0",
        "evancz/url-parser": "2.0.1 <= v < 3.0.0"
    },
    "elm-version": "0.18.0 <= v < 0.19.0"
}
  1. Run elm-make

Output

Packages configured successfully!
Could not find package elm-lang/navigation.

Maybe your elm-stuff/ directory has been corrupted? You can usually fix stuff
like this by deleting elm-stuff/ and rebuilding your project.

Expected Output

No packages exist for `"elm-lang/http": "3.0.0 <= v < 4.0.0"`.
Did you mean an earlier version?

Notes

The error mentions navigation but the issue was http version was incorrect.

That-David-Guy avatar Mar 16 '17 00:03 That-David-Guy

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot avatar Mar 16 '17 00:03 process-bot

I'm hitting this too. I get this message instructing me to delete my elm-stuff directory immediately after deleting it.

sjfloat avatar Mar 25 '17 18:03 sjfloat

Actually, I think this could be #253

sjfloat avatar Mar 25 '17 18:03 sjfloat