elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

large files are corrupted when served through elm-reactor #214

Open avh4 opened 7 years ago

avh4 commented 7 years ago

This is a SSCCE for #213

With Elm 0.18.0, Mac OS X 10.11.6

Files larger than ~900kb are corrupted by elm-reactor when they are served.

If you now compare the downloaded file to the original, (diff -u <(xxd big.txt) <(xxd downloaded.txt)), you will see that around 900,000 characters in, the beginning of the file is repeated.

Additional info:

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.

evancz commented 7 years ago

I wonder if this is due to using a newer version of the snap-core Haskell package. I wonder if they have any issues open along these lines, because I basically did not touch the elm-reactor code at all for this release.

avh4 commented 7 years ago

I took a quick look and didn't see an obviously matching issues on snap-core. If I get a chance, I'll try making a bare-bones project using snap-core and see if it has the same issue so we can report it there.