Open grzegorzbalcerek opened 9 years ago
Problem still present in 0.17:
---- elm repl 0.17.0 -----------------------------------------------------------
:help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> f x = x
<function> : a -> a
> f 3
3 : number
> f 4
4 : number
> f 5
5 : number
> f 4
5 : number
Also, this is not limited to when pasting - the example I gave was from direct input into the repl.
There seem to be some kind of race condition in elm repl. Here are the symptoms. I am opening a repl session (Windows) and then pasting a list of commands in one go. Sometimes the result of a given command is not shown, and instead the previous result is repeated. Here are examples:
To try to reproduce, open elm repl and then paste the whole list of commands to it:
The problem does not seem to happen when the commands are entered one by one, when the next one is entered after the previous one showed the result already.