Open landongrindheim opened 4 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.
I'm not sure what caused elm-repl
to un-freeze, but it seemed to recover after issuing <enter>
a number of times without input.
After I finally had a valid session again, I was able to reproduce this issue the following:
~ $ elm repl
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl>
--------------------------------------------------------------------------------
> var = 1
1 : number
> dash = '-'
'-' : Char
> isKeepable chr = chr /= dash
<function> : Char -> Bool
> withoutDashes str = String.filter isKeepable str
<function> : String -> String
> anotherWithoutDashes str =
| let
| dash = '-'
| isKeepable chr = chr /= dash
| in
| String.filter isKeepable str
|
-- SHADOWING -------------------------------------------------------------- REPL
The name `dash` is first defined here:
9| dash = '-'
^^^^
But then it is defined AGAIN over here:
4| dash = '-'
^^^^
Think of a more helpful name for one of them and you should be all set!
Note: Linters advise against shadowing, so Elm makes “best practices” the
default. Read <https://elm-lang.org/0.19.1/shadowing> for more details on this
choice.
-- SHADOWING -------------------------------------------------------------- REPL
The name `isKeepable` is first defined here:
10| isKeepable chr = chr /= dash
^^^^^^^^^^
But then it is defined AGAIN over here:
5| isKeepable chr = chr /= dash
^^^^^^^^^^
Think of a more helpful name for one of them and you should be all set!
Note: Linters advise against shadowing, so Elm makes “best practices” the
default. Read <https://elm-lang.org/0.19.1/shadowing> for more details on this
choice.
I then left elm-repl
and started it:
~ $ elm repl
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl>
--------------------------------------------------------------------------------
> abc = 1
elm: /Users/lgrindheim/.elm/0.19.1/repl/tmp/elm-stuff/0.19.1/d.dat: openBinaryFile: resource busy (file is locked)
Quick Summary: While trying out the Elm REPL I found myself in a situation where I crashed the REPL and can no longer start a new session and do anything in it without it crashing as soon as I type anything and hit
<enter>
. I've included the session that lead to the crash, as well as some subsequent crashes. Please let me know if there's anything else that I could provide which would be helpful 🙂REPL sessions (including shell history)
```bash lgrindheim ~ $ elm repl ---- Elm 0.19.1 ---------------------------------------------------------------- Say :help for help and :exit to exit! More atAdditional Details