Git Product home page Git Product logo

Comments (14)

tachylyte avatar tachylyte commented on July 17, 2024 1

Not FreeBSD, but I've just done a cabal build on master on NetBSD 9.3. No problems with the build. Thanks for fixing this!

from hfsnotify.

tachylyte avatar tachylyte commented on July 17, 2024

I have exactly the same issue on NetBSD 9.3.

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

Ah yes, I see the problem. There's no native file watcher on BSD so it's trying to treat the polling file watcher as native. Will put out a patch soon.

from hfsnotify.

arrowd avatar arrowd commented on July 17, 2024

FreeBSD has a libinotify-kqueue library, which implements Linux inotify interface using FreeBSD native kqueue. It might have sense to use it for fsnotify?

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

Oh that's cool, I was thinking we'd have to do a kqueue module. Although that might still be a good idea since it would help on Mac too. But in the short term we'll just have this library go back to using polling on BSD.

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

My efforts to get a FreeBSD VM with a Haskell toolchain aren't going so well, could one of you try doing stack build with the latest code on master?

from hfsnotify.

arrowd avatar arrowd commented on July 17, 2024
[6 of 7] Compiling System.FSNotify
                          
/usr/home/arr/projects/hfsnotify/src/System/FSNotify.hs:94:22: error:
    Not in scope: type variable ‘error’
   |                      
94 | type NativeManager = error "No native file watcher is available on this system. Please use WatchModePoll instead."
   |                      ^^^^^
                          
/usr/home/arr/projects/hfsnotify/src/System/FSNotify.hs:94:28: error:
    Illegal type: ‘"No native file watcher is available on this system. Please use WatchModePoll instead."’
      Perhaps you intended to use DataKinds
   |                      
94 | type NativeManager = error "No native file watcher is available on this system. Please use WatchModePoll instead."
   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Completed 116 action(s).  

from hfsnotify.

arrowd avatar arrowd commented on July 17, 2024

My efforts to get a FreeBSD VM with a Haskell toolchain aren't going so well

FreeBSD VM can be easily obtained using Vagrant, and to get Haskell just run pkg install hs-stack.

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

Aha, that works -- thanks!

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

This is not strictly required to fix the bug but could you tell me how to increase the resolution of the console for a FreeBSD Virtualbox guest :)? I had started with an image from here before you mentioned Vagrant. I tried several Google suggestions but it's still like 80 chars.

from hfsnotify.

arrowd avatar arrowd commented on July 17, 2024

It might be not that easy if the image you downloaded doesn't use UEFI, which is probably the case. It might be faster to get an SSH server:

echo PermitRootLogin yes >> /etc/ssh/sshd_config
echo PasswordAuthentication yes >> /etc/ssh/sshd_config
echo PermitEmptyPasswords yes >> /etc/ssh/sshd_config
sysrc sshd_enable=yes
service sshd start

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

Thanks! This should be good to go on master now. Would someone like to try it out before I push to Hackage?

from hfsnotify.

thomasjm avatar thomasjm commented on July 17, 2024

Uploaded to Hackage as 0.4.0.1.

from hfsnotify.

arrowd avatar arrowd commented on July 17, 2024

Yep, also builds on FreeBSD. Thanks for fixing this!

from hfsnotify.

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.