ndreynolds / ratatouille

A TUI (terminal UI) kit for Elixir
MIT License
752 stars 39 forks source link

[bug] Ratatouille.Window failed to start #33

Open brendalf opened 2 years ago

brendalf commented 2 years ago

Hi folks,

@kessejones and I have been working on a personal project for a while. Since yesterday, he can't run the project because of the error below. On my computer, it's working fine.

We tried solving it with https://github.com/ndreynolds/ratatouille/issues/11, but it didn't work.

** (EXIT from #PID<0.94.0>) shutdown: failed to start child: Ratatouille.Window
    ** (EXIT) an exception was raised:
        ** (MatchError) no match of right hand side value: {:error, -1}
            (ratatouille 0.5.1) lib/ratatouille/window.ex:104: Ratatouille.Window.init/1
            (stdlib 3.16.1) gen_server.erl:423: :gen_server.init_it/2
            (stdlib 3.16.1) gen_server.erl:390: :gen_server.init_it/6
            (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
a-bruhn commented 2 years ago

Not sure if it helps, but I just encountered this error in my circleci build as well and in my case no terminal emulator environment variable was set. After setting $TERM, everything went smoothly.