compiler icon indicating copy to clipboard operation
compiler copied to clipboard

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

Open michaelglass opened this issue 4 years ago • 2 comments

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?
  • Elm: 0.19.1
  • Browser: fish shell
  • Operating System: OSX Catalina

Additional Details

npx [email protected] bump worked fine.

michaelglass avatar Feb 03 '21 14:02 michaelglass

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

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

github-actions[bot] avatar Feb 03 '21 14:02 github-actions[bot]

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

npx -p [email protected] elm bump

lucamug avatar Feb 08 '22 01:02 lucamug