I found a bug in the 0.19 elm repl. Attempting to autocomplete by hitting <TAB> results in the existing letters of the word being _replaced_ by the remaining letters of the completed words, rather than the proper behavior, where the remaining letters are _appended_ to the existing letters.
Steps to reproduce:
$ elm repl # (Version 0.19.0)
> elephant x y = x + y
<function> : number -> number -> number
> eleph -- Pressing <TAB> here (with cursor just after h) results in the following line:
> ant -- ❌Should be `elephant`
Tab completion works correctly in the 0.18 REPL:
$ elm repl # (Version 0.18.0)
> elephant x y = x + y
<function> : number -> number -> number
> eleph -- Pressing <TAB> here (with cursor just after h) results in the following line:
> elephant -- ✅
Thank you for the excellent issue!
It looks like I did not fully understand how the haskeline library would behave, so there was a really simple fix. Should be fixed in the next round of binaries.
Thanks again for the report!
Most helpful comment
Thank you for the excellent issue!
It looks like I did not fully understand how the haskeline library would behave, so there was a really simple fix. Should be fixed in the next round of binaries.
Thanks again for the report!