elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Misleading error when an old version of a package is installed #147

Open sporto opened 7 years ago

sporto commented 7 years ago

If I have a project which has an older version of a package elm make will fail giving an error related to wrong usage e.g.

elm-package say that packageX should be 2.1, but version 2.0 is installed in my system. This happens because someone else updated packageX in elm-package. Then when running elm-make I see:

Cannot find variable `PackageX.foo`.

68|     PackageX.foo

`PackageX` does not expose `foo`. 

Where foo was introduced in 2.1 of that package.

So I think that there is some problem with our app. But the real problem is that I haven't installed the updated package.

It would be great if elm make could give me an error like: "elm-package requires packageX 2.1, you have installed 2.0`

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.