Coder Social home page Coder Social logo

Comments (7)

arve0 avatar arve0 commented on September 23, 2024

Hm, had the same trouble some time back, and then it was an installation problem with pandoc. My pandoc binary was not +x. What is your ls -l node_modules/metalsmith-pandoc/node_modules/pandoc-bin/vendor/pandoc?

from codeclub_lesson_builder.

andylolz avatar andylolz commented on September 23, 2024

If I reduce the number of files (e.g. by just loading Scratch) I don’t hit the error. I think the issue comment I linked above is related – that would explain the EMFILE error code.

from codeclub_lesson_builder.

arve0 avatar arve0 commented on September 23, 2024

Ahh! What is your operating system? find src | wc How many files are we talking about? Is increasing allowed open files a viable solution?

from codeclub_lesson_builder.

andylolz avatar andylolz commented on September 23, 2024

What is your operating system?

Mac OS 10.9. launchctl limit maxfiles says the soft limit is 256 open files.

find src | wc

I haven’t modified the src directory – I just tried to build what was there. Building just the scratch directory works fine.

Is increasing allowed open files a viable solution?

Err… It might work (testing now) UPDATE: It does work. It would probably be preferable to instead avoid surpassing the limit.

from codeclub_lesson_builder.

arve0 avatar arve0 commented on September 23, 2024

I also run Mac OS (10.10) and have maxfiles 256. Might be your computer is faster than mine?

I'll add a note for this in the readme. Thanks for the report! 😄

from codeclub_lesson_builder.

arve0 avatar arve0 commented on September 23, 2024

Added a comment in the readme.

Immediately I don't see a elegant way to fix this in the builder. Doing less in parallel, using run-sequence, might help. Might also consider patching reading of files in gulp/metalsmith in a forked repo. A PR is welcome.

I'll leave this open for now.

from codeclub_lesson_builder.

arve0 avatar arve0 commented on September 23, 2024

On ubuntu, one can stumble upon a similar error:

Error: watch ENOSPC

This fixes it:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

from codeclub_lesson_builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.