Uncaught Error: write EPIPE


I keep getting this error message when I try to boot TidalCycles in Atom. I'm using Big Sur.

Atom: 1.57.0 x64
Electron: 9.4.4
OS: macOS 11.4
Thrown From: tidalcycles package 3.16.9

Stack Trace

Uncaught Error: write EPIPE

At events.js:200

Error: write EPIPE
    at afterWriteDispatched (internal/stream_base_commons.js:149:25)
    at writeGeneric (internal/stream_base_commons.js:140:3)
    at Socket._writeGeneric (net.js:776:11)
    at Socket._write (net.js:788:8)
    at doWrite (_stream_writable.js:435:12)
    at writeOrBuffer (_stream_writable.js:419:5)
    at Socket.Writable.write (_stream_writable.js:309:11)
    at Process.writeLine (/packages/tidalcycles/lib/process.js:48:24)
    at REPL.tidalSendLine (/packages/tidalcycles/lib/repl.js:77:15)
    at REPL.initTidal (/packages/tidalcycles/lib/repl.js:37:12)
    at REPL.start (/packages/tidalcycles/lib/repl.js:29:10)
    at HTMLElement.tidalcyclesBoot (/packages/tidalcycles/lib/tidalcycles.js:47:23)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:352215)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350690)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:786866)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:794837)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)


     -1:30.9.0 tidalcycles:boot (input.hidden-input)
     -0:05.4.0 core:select-all (a.stack-toggle)

Non-Core Packages

Extempore-Atom 0.4.2 
tidalcycles 3.16.9 

Welcome @gsaraydarian, that's a scary error message, but from this and this, it seems it's a path issue in the configuration. Or maybe you don't have ghc/ghci installed at all?

Yes, I can't seem to figure it out. I did do the troubleshooting that is on the TidalCycles page and on my terminal it says I have ghci installed as well as TidalCycles. And Supercollider opens with Superdirt so it looks like it is an issue with Atom when I try to boot TidalCycles from Packages.