spapas
Problems with mix when using latest elixir + erlang on Windows cmd
Hello friends, I have a problem when using mix with windows cmd (latest erl+elixir).
I open a command line and run mix. After that, whenever I press up arrow (to get the prev cmd) I see ^[[A instead (notice that I get similar behavior with all arrow keys i.e I get ^[[A^[[B^[[D^[[C for up down left right).
If I run chcp on the same cmd it fixes the behavior and the arrows work again. But when I run mix again, it breaks again! Notice that I get the same behavior elixir x. Running iex works fine. Also please notice that if I run elixir (without parameters) the up arrow works. It only breaks If I pass a parameter to it (that’s what mix.bat also does).
This may be related with this Elixir + Erlang on Windows 11 terminal error - #2 by BradS2S ?
Please please please don’t answer me about powershell or wsl. I know these solutions exist but my workflow uses cmd and I want to keep using that.
Thank you.
Marked As Solved
garazdawi
I think this is the same issue as reported here: Erlang 26 breaks command line on Windows · Issue #7621 · erlang/otp · GitHub
If so, it will be fixed in 26.2.
If you want to try it out before it is released you can download an windows installer from the maint githubactions artifacts. For example here: https://github.com/erlang/otp/actions/runs/6689002396
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









