Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear output: WARNING! <X> of your dependencies #79

Open
yotamDvir opened this issue Sep 26, 2019 · 0 comments
Open

Unclear output: WARNING! <X> of your dependencies #79

yotamDvir opened this issue Sep 26, 2019 · 0 comments
Labels

Comments

@yotamDvir
Copy link

After using elm-upgrade, I tried to install a package and got this cryptic error:

$ elm install elm/file
-- CORRUPT JSON ----------------------------------------------------------------

The elm.json for elm-community/list-extra 1.0.0 got corrupted somehow.

I removed it from my file cache, so if it was some transient error it should be
fixed if you try the same thing again. Please report this if it seems like an
Elm problem though!

Eventually I found out that old incompatible dependencies were not removed, and apparently one of these had elm-community/list-extra 1.0.0 as a dependency. I realize that stated in the output is:

WARNING! <X> of your dependencies have not yet been upgraded to
support Elm 0.19.

However, I think that the message is easy to miss, and it is unclear that the dependencies are kept as is in the elm.json (I thought they were just not copied from the old elm-package.json). Both of these problems can be fixed by adding to the list of manual steps something along the lines of:

"Replace or remove all old dependencies, otherwise Elm may fail to both compile and install other packages."

This line should only be added in case X is not 0 of course.

@avh4 avh4 added good first issue Good for newcomers help wanted labels Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants