elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Memory leak when using List.sortBy #124

Closed ghost closed 7 years ago

ghost commented 7 years ago

I had the following code in a module:

f a =
    { a | b = List.sortBy a.b }

c = List.map f xs

When I ran elm make, the 'module process bar' stopped after a while and the my machines memory was filled up to the point where the os just froze.

I know that the usage of List.sortBy is wrong, but I don't think that it should lead to a total halt of the system. There may be some memory leak in elm make.

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

For me, this fails immediately with:

screen shot 2016-12-21 at 11 43 37 pm

I suspect your http://sscce.org/ is missing some information. If you can get a piece of code that exactly replicates the problem you saw, please open it on https://github.com/elm-lang/elm-compiler/issues