elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.56k stars 662 forks source link

Failure to run elm bump/diff #2223

Open smucode opened 3 years ago

smucode commented 3 years ago

Quick Summary: ???

Running elm bump on the project smucode/elm-flat-colors using 0.19.1 I get this error:

➜  elm-flat-colors git:(master) elm diff   
-- PROBLEM LOADING DOCS --------------------------------------------------------

I need the docs for 1.0.0 to compute this diff, so I fetched:

    https://package.elm-lang.org/packages/smucode/elm-flat-colors/1.0.0/docs.json

I got the data back, but it was not what I was expecting. The response body
contains 215598 bytes. Here is the beginning:

    [{"name":"FlatColors.AmericanPalette","comment":" American Palette by [Ke...

Does this error keep showing up? Maybe there is something weird with your
internet connection. We have gotten reports that schools, businesses, airports,
etc. sometimes intercept requests and add things to the body or change its
contents entirely. Could that be the problem?

SSCCE

Additional Details

???

github-actions[bot] commented 3 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.

lucamug commented 2 years ago

Same as https://github.com/elm/compiler/issues/2171

This issue has a workaround described here, in case anyone need it: https://package.elm-lang.org/packages/NoRedInk/noredink-ui/latest/

npx -p elm@0.19.0-no-deps elm bump
dillonkearns commented 1 year ago

For reference, npx elm@0.19.0-no-deps no longer works. Running this command makes the problem more explicit I think npm i -g elm@0.19.0-no-deps:

npm ERR! I got a "404 Not Found" trying to download from the following URL:
npm ERR! https://github.com/elm/compiler/releases/download/0.19.0/binary-for-mac-undefined.gz

So the workaround described there doesn't work anymore, at least on M1 Macs. I was able to install it from https://github.com/elm/compiler/releases.