Issue of rendering newline/line warp on the terminal after running iex -S mix in the specific project

Issue of rendering newline/line warp on the terminal after running iex -S mix in the specific project

The terminal rendering became weird every time I ran $ iex -S mix in one of my working projects, and I don’t know how to fix that terminal session, all I can do is open a new one.

This issue only occurred in the specific project, not in any other project or other versions of Elixir, below are the steps of how do we reproduce the issue, and all my colleagues can reproduce this issue too.

Does anyone know if there’s anything I can do? Please help, thanks.

  • My environment:
    • MacBook Pro 2019, macOS Monterey v12.6
    • The version of Elixir: Erlang/OTP 25 [erts-13.0.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]

Reproducing in the macOS built-in Terminal v2.12.7 and Bash v3.2.57

  1. Execute ls before $ iex -S mix
  2. Run $ iex -S mix in the root of my project
  3. Abort iex with ctrl + \ and the terminal rendering become weird
  4. Execute ls after $ iex -S mix, the input command becomes invisible…

Reproducing in the iTerm2 v3.4.16 and zsh v5.8

Update for someone who ran into the same issue:

Refer to the checking options given by José:

I temporarily fixed this issue by removing the elixir-nodejs server from the children list in application.ex, but still figuring out what to do next since we need this library to execute custom JS code…