gcc: builderMainLoop: pipe: resource exhausted (Too many open files)

25 views
Skip to first unread message

Luke Evans

unread,
Apr 24, 2024, 2:41:23 PM4/24/24
to Yesod Web Framework
I have a growing yesod project and have just started getting these pipe resource exhausted errors when my running 'yesod devel' is trying to recompile after detecting a file change in the project:

<no location info>: error:
    gcc: builderMainLoop: pipe: resource exhausted (Too many open files)

So far I have just rerun 'stack exec -- yesod devel' in the terminal and (eventually) it will build the whole project and run the site. 

I have the latest yesod binaries.  

Has anyone else run into this? 


jsch...@gmail.com

unread,
Apr 30, 2024, 4:27:47 PM4/30/24
to Yesod Web Framework
I don't use yesod devel. I use ghci with DevelMain.update, it also creates a server. :r followed by DevelMail.update in ghci is much faster so I would recommend trying that :)
If you use emacs or vim you can create a file change hook that sends :r and update to a ghci running in a tmux panel for example.

Luke Evans

unread,
May 1, 2024, 3:08:23 AM5/1/24
to Yesod Web Framework
Thanks.  I'll look into this approach. 
Reply all
Reply to author
Forward
0 new messages