You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I open a terminal, and run it with zig build run, it executes succesfully and finishes with 0 status code.
If I run from IntelliJ, it fails when opening /dev/tty, with error unexpected errno: 6 (i.e., NXIO or "no such device", apparently not handled properly in Zig). I saw a checkbox "Enable terminal" on the run configuration, but the same issue happens with or without it. I remember many years ago I had a similar issue with Goland (as a plugin in IntelliJ), but somehow it started working. I even found an issue on YouTrack where I posted. I tried the same workarounds (i.e. use -Drun.processes.with.pty=true in the VM Options, and enable run.processes.with.pty on the "registry"), but nothing worked.
For context, I tried on 2024.2.3, 2024.2.4, and on 2024.3 RC. I'm running on a Mac with Apple silicon and Sequoia 15.1.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered:
I've investigated deeper, it seems like the intellij "TTY emulation" just parses the color information from stdout, it does not actually provide a /dev/tty environment. For that, you need to use the intellij built-in terminal or an external terminal for tty-requiring code for the time being.
I'm not sure if this is new from v20 or if the issue existed before, but I can't seem to be able to run an app that needs a pty.
Consider this code:
If I open a terminal, and run it with
zig build run
, it executes succesfully and finishes with 0 status code.If I run from IntelliJ, it fails when opening
/dev/tty
, with errorunexpected errno: 6
(i.e., NXIO or "no such device", apparently not handled properly in Zig). I saw a checkbox "Enable terminal" on the run configuration, but the same issue happens with or without it. I remember many years ago I had a similar issue with Goland (as a plugin in IntelliJ), but somehow it started working. I even found an issue on YouTrack where I posted. I tried the same workarounds (i.e. use-Drun.processes.with.pty=true
in the VM Options, and enablerun.processes.with.pty
on the "registry"), but nothing worked.For context, I tried on 2024.2.3, 2024.2.4, and on 2024.3 RC. I'm running on a Mac with Apple silicon and Sequoia 15.1.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: