elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

Incorrect error message when using incorrect version number #264

Open That-David-Guy opened 7 years ago

That-David-Guy commented 7 years ago

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.

process-bot commented 7 years ago

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.

sjfloat commented 7 years ago

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

sjfloat commented 7 years ago

Actually, I think this could be #253