Closed trombik closed 3 years ago
I'm also running into this.
> ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-freebsd12.1]
> uname -msr
FreeBSD 12.1-RELEASE amd64
I'm having the same problem with this configuration:
> uname -msr
FreeBSD 12.1-RELEASE-p8 amd64
> ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-freebsd12.1]
I have a PR open which should fix this: https://github.com/mat813/rb-kqueue/pull/12
Try it out by replacing the rb-kqueue
line in your Gemfile with:
gem 'rb-kqueue', :git => "https://github.com/stevebob/rb-kqueue.git", :ref => "144ee7bb7963c77fc219ba736df7ee952d50ab19"
@stevebob @trombik @michelboaventura
Does it look like the fix mentioned in the PR has fixed the problem? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250432
Anything we need to change here in listen
?
@stevebob @trombik @michelboaventura Does it look like the fix mentioned in the PR has fixed the problem? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250432
I haven't tried the mentioned patch because I'm not using listen
, thus rb-kqueue
, from ports. With bundler, mat813/rb-kqueue#12 fixes the issue. With the patch, all the specs in listen
passed.
Anything we need to change here in
listen
?
No. Adding a "known issue" might help other users, though.
Anyone having the issue: add the following to Gemfile
gem "rb-kqueue", git: "https://github.com/stevebob/rb-kqueue.git", branch: "handle-unexpected-events"
@trombik I'm happy to add that as a "known issue". Do those go in the README or somewhere else?
Issues / limitations
in README.md
is the best place, I guess. something like:
FreeBSD users need patched version of
rb-kqueue
(as of 2020/11). see #475 for the issue, https://github.com/mat813/rb-kqueue/pull/12 for the patch, and Bug 250432 in bugzilla.
Adding to README here: https://github.com/guard/listen/pull/503/commits/a4c60957f49301a029704ebaee1ffbc2e83f2919
FYI, I'm helping out as a maintainer on rb-kqueue
; the latest version (0.2.6) includes @stevebob's patch. https://rubygems.org/gems/rb-kqueue
@gregschmit Do you need anything here in listen
, or is your message just an FYI?
@ColinDKelley it's just an FYI; I noticed you mentioned this issue in your README so if you want, you can remove that at some point.
@gregschmit Thanks for the clarification. I'll try to get that reference out of the README soon.
^ done
hi,
while trying to use
guard
, the watcher throws an exception after modifying a watched file.and some specs fails with the same exception when I run the specs in
listen
.as I cannot see any significant change in the
bsd
adapter, the issue is somewhere else, which is where i am stuck.