elm-lang / elm-package

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

Cannot get any package. #207

Closed Custodia closed 8 years ago

Custodia commented 8 years ago

All attempts at getting any packages fail with Error: Unable to find a set of packages that will work with your constraints., even attempts to get only the core with elm package install fail.

The same behaviour happens on windows and arch linux tested with versions 0.17.0 and 0.16.0 of elm (gotten from npm)

JoeyEremondi commented 8 years ago

Can you post your elm-package.json file?

On Fri, May 13, 2016 at 11:30 AM, Jani Mäkelä notifications@github.com wrote:

All attempts at getting any packages fail with 'Error: Unable to find a set of packages that will work with your constraints.', even attempts to get only the core with 'elm package install' fail.

The same behaviour happens on windows and arch linux and with versions 0.17.0 and 0.16.0 versions of elm (gotten from npm)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/elm-lang/elm-package/issues/207

Custodia commented 8 years ago

I tried several. Even this auto generated (elm package install) file doesn't work:

{
    "version": "1.0.0",
    "summary": "helpful summary of your project, less than 80 characters",
    "repository": "https://github.com/user/project.git",
    "license": "BSD3",
    "source-directories": [
        "."
    ],
    "exposed-modules": [],
    "dependencies": {
        "elm-lang/core": "4.0.0 <= v < 5.0.0"
    },
    "elm-version": "0.16.0 <= v < 0.17.0"
}
JoeyEremondi commented 8 years ago

Looks like there's a bug in the auto-generated packages: it's looking for the version of Core for 0.17, but it's looking for the 0.16 compiler.

Try:

{ "version": "1.0.0", "summary": "helpful summary of your project, less than 80 characters", "repository": "https://github.com/user/project.git", "license": "BSD3", "source-directories": [ "." ], "exposed-modules": [], "dependencies": { "elm-lang/core": "4.0.0 <= v < 5.0.0" }, "elm-version": "0.17.0 <= v < 0.18.0" }

Custodia commented 8 years ago

That still returns the same error. Does elm package log it's failures somewhere?

jvoigtlaender commented 8 years ago

Are you actually sure you are running the 0.17 version of elm-package?

Could you please post the shell output of just calling elm-package without any parameters?

Custodia commented 8 years ago

It was not, that file generated with 0.16.0.

It works now with 0.17.0. Could have sworn that I tried elm package install on an empty directory on 0.17.0 but if that was the case can't think of any reason why it didn't work earlier so it's probably my fault.

Gonna join in on others that the error message should be more descriptive and that it shouldn't add dependencies that are incompatible.