Giter Site home page Giter Site logo

Unix.EOPNOTSUPP on arm64 about slipshow HOT 2 OPEN

Guiraud avatar Guiraud commented on August 22, 2024
Unix.EOPNOTSUPP on arm64

from slipshow.

Comments (2)

nilsbecker avatar nilsbecker commented on August 22, 2024 1

thanks for the workaround. i found i had to tweak it slightly to make it more robust. i use this bash function now

slipwatch() {
	# a workaround for the missing watch functionality
	fswatch --print0 --event Updated "$1"  | xargs -0 -n 1 slipshow
}

from slipshow.

panglesd avatar panglesd commented on August 22, 2024

Thanks for trying slipshow and sorry for the issue! My lack of knowledge of MacOS is guilty here...

Apparently, inotify (the utility that I use to watch changes on the source file) is a Linux only utility. Which is why it does not work on Mac...
I should have used the fswatch library, which is cross platform.

One workaround (until I fix this) is to use fswatch (the binary). From what I understand, the syntax would be in your case:

$ fswatch --event Updated file.md | xargs -n 1 slipshow

(the --event is here to prevent some infinite loop where the call of slipshow file.md is caught by fswatch to trigger a new slipshow file.md...)

However, that is a workaround for the --watch argument, not the --serve. So you will have to reload file in the browser to see the changes, or find a workaround for --serve as well... Maybe the live-reload js library?

from slipshow.

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.