Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd Bug with rb-inotify backend #4

Closed
nex3 opened this issue Jan 13, 2010 · 2 comments
Closed

Odd Bug with rb-inotify backend #4

nex3 opened this issue Jan 13, 2010 · 2 comments

Comments

@nex3
Copy link
Collaborator

nex3 commented Jan 13, 2010

$ irb -rubygems -rfssm
>> FSSM.monitor {path("/tmp/foo") {update {|b,r| p [:up, b, r]}; create {|b,r| p [:cr, b, r]}; delete {|b,r| p [:del, b, r]};}}
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/root/file.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/state.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/LICENSE"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/pkg/fssm-0.1.2.gem"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/README.markdown"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/VERSION.yml"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/backends/inotify.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/monitor.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/support.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/profile/prof.html"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/profile/prof-fssm-pathname.html"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/example.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/root/file.css"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/root/file.yml"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/root/duck/quack.txt"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/backends/polling.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/backends/rubycocoa/fsevents.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/backends/fsevents.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/profile/prof-plain-pathname.html"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/profile/prof-pathname.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/path_spec.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/root/moo/cow.txt"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/pathname.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/fssm.gemspec"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/tree.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/profile/prof-cache.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/Rakefile"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/lib/fssm/path.rb"]
[:cr, "/tmp/foo", "../../home/nex3/code/fssm/spec/spec_helper.rb"]

This is on Linux, using the rb-inotify backend. Following this, no output is generated when files within the /tmp/foo directory are created or modified.

@nex3
Copy link
Collaborator Author

nex3 commented Jan 19, 2010

This bug seems to be because inotify uses relative paths to identify its files, while FSSM expects absolute names.

@nex3
Copy link
Collaborator Author

nex3 commented Feb 6, 2010

Use absolute paths for rb-inotify.

This bumps the required rb-inotify version up to 0.5.1.

Closed by dcd5c55

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant