mrdotb / live_react

✨ React inside Phoenix LiveView with seamless end-to-end reactivity
https://live-react-examples.fly.dev/simple
MIT License
90 stars 8 forks source link

nodejs worker is making my shell corrupted after quitting #10

Open mrdotb opened 2 months ago

mrdotb commented 2 months ago

When two esbuild watcher are run for SSR in dev env. After quitting iex the terminal output is corrupted.

image

roeeyn commented 1 month ago

I believe that if we manage to fix this, the same solution would work for LiveSvelte as well. Do you have any idea how to fix it? I'm happy to help with it, as this issue annoys me every time it happens, but I'm not very sure what the problem may be.

mrdotb commented 1 month ago

Quite annoying indeed. My theory is that it's related to special character sequence from esbuild or phoenix that log at similar time and corrupt the output. I don't have time currently but things you could try is disabling colors and tweak every config in Elixir / Esbuild to get pure text output. Then at this point if the problem is gone you turn things one by one until you find the culprit.

mrdotb commented 2 weeks ago

https://elixirforum.com/t/shell-corruption-after-exiting-iex-with-node-js-port/67380