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

Various issues with macosx #36

Open
timuckun opened this issue Nov 21, 2011 · 2 comments
Open

Various issues with macosx #36

timuckun opened this issue Nov 21, 2011 · 2 comments

Comments

@timuckun
Copy link

I am using the sample rails script linked to on the wiki and am having some issues.

If I install ruby-fsevent and run it with debug I get this error

[fsevents] event detection error
[fsevents] event detection error
[fsevents] event detection error
[fsevents] event detection error
[fsevents] event detection error
[fsevents] event detection error

if I remove that gem and run it again it works better but not great. It sometimes missed chages and sometimes does not execute the code even though it detects a change. Very peculiar.

Still trying to isolate the last part.

@timuckun
Copy link
Author

One thing that seems to happen is that after a while it does not run the test after it detects a change in the test. It works fine for a while and then kind of gives up.

Notice that in the following transcript it is detecting changes but not running the tests

[watchr debug] received :changed event for lib/importer/sap_crm_sale.rb
[watchr debug] received :modified event for test/unit/lib/importer/sap_crm_sale_test.rb
[watchr debug] received :accessed event for test/unit/lib/importer/sap_crm_sale_test.rb
[watchr debug] received :changed event for test/unit/lib/importer/sap_crm_sale_test.rb

@textarcana
Copy link

ruby-fsevent does not work for me either (on Lion / 10.7.4)

Is there any reason not to just use the "rev" gem on OSX? It installs fine for me on Lion, and it seems to work correctly if I patch lib/watchr.rb as follows:

--- watchr.rb   2012-08-16 15:05:12.000000000 -0400
+++ /Library/Ruby/Gems/1.8/gems/watchr-0.7/lib/watchr.rb    2012-08-16 15:03:05.000000000 -0400
@@ -112,6 +112,8 @@
           when /darwin|mach|osx|fsevents?/i
             if Watchr::HAVE_FSE
               Watchr::EventHandler::Darwin
+            elsif Watchr::HAVE_REV
+              Watchr::EventHandler::Unix
             else
               Watchr.debug "fsevent not found. `gem install ruby-fsevent` to get evented handler"
               Watchr::EventHandler::Portable

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

2 participants