Comments (14)
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.
I have exactly the same issue on NetBSD 9.3.
from hfsnotify.
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.
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.
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.
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.
[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.
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.
Aha, that works -- thanks!
from hfsnotify.
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.
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.
Thanks! This should be good to go on master
now. Would someone like to try it out before I push to Hackage?
from hfsnotify.
Uploaded to Hackage as 0.4.0.1
.
from hfsnotify.
Yep, also builds on FreeBSD. Thanks for fixing this!
from hfsnotify.
Related Issues (20)
- Terminating steeloverseer+tmux triggers "Error removing watch:" HOT 2
- No modification notifications for symlinks HOT 5
- Doesn't work on macOS unless -N is specified HOT 1
- Allow debouncing regardless of if event is same file HOT 5
- Exceptions in Action gets swallowed HOT 7
- Drop shelly dependency HOT 1
- Does creation/deletion of a hard-link trigger a modification event? HOT 2
- Windows 10, no Event unless Pulling is forced. HOT 6
- Debounce config works in very unexpected way (only on Win32) HOT 1
- When events fire too quickly, the whole watch stops HOT 1
- `watchDir` misses some Git events, `watchTree` shows them all on Linux HOT 6
- Fire event variety "CloseWrite" HOT 3
- removeWatch: invalid argument (Bad file descriptor)
- Likely O(n^2) behaviour for `watchTree` HOT 17
- 0.4 release HOT 17
- stuck when compiling HOT 13
- Problems with fsnotify-0.4.0.1 on Windows HOT 6
- System.FSNotify does not export type WatchConfig HOT 9
- Build failure on windows for fsnotify-0.4.0.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfsnotify.