elm / compiler

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

error with bump/diff when docs.json line is longer than 65535 (in 0.19.1 but not 0.19.0) #2171

Open michaelglass opened 3 years ago

michaelglass commented 3 years ago

Quick Summary: ??? Ran into a known bug that prevents publishing my package with Elm 0.19.1. This just adds another data-point to issue #2055 (like #2098, #2132, from which this text was copied). (cc @juanedi)

SSCCE

$ elm bump
-- PROBLEM LOADING DOCS --------------------------------------------------------

I need the docs for 12.16.0 to compute the next version number, so I fetched:

    https://package.elm-lang.org/packages/NoRedInk/noredink-ui/12.16.0/docs.json

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

    [{"name":"Nri.Ui","comment":" A collection of helpers for working with No...

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?

Additional Details

npx elm@0.19.0-no-deps bump worked fine.

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

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