Comments (7)
Maybe there is some useful info in the log files:
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
from filewatcher.
Seems to be using 2.0.0 for some reason. Not sure why.
from filewatcher.
How about creating a script like this, so you have control over which version of ruby you're running?
#!/bin/sh
/bin/ruby2.1.0/bin/ruby /path/to/filewatcher '~/app.rb' 'app'
from filewatcher.
New terminal window with the proper responding which ruby
. This is what happens upon filewatcher "/users/rich/app.rb" "app"
rich$ filewatcher "/users/rich/app.rb" "app"
/Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:145:in `spawn': No such file or directory - app (Errno::ENOENT)
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:145:in `block in <top (required)>'
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/lib/filewatcher.rb:60:in `watch'
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:95:in `<top (required)>'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/filewatcher:22:in `load'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/filewatcher:22:in `<main>'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/ruby_executable_hooks:15:in `eval'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/ruby_executable_hooks:15:in `<main>'
This issue seems to be migrating.
from filewatcher.
I got it to work:
filewatcher "/users/rich/app.rb" "clear; ruby ~/app.rb"
from filewatcher.
Great! I can actually remember having the same problems some years ago when I first wrote this. You can also use the execute switch: -e. If the file extension is .rb then a ruby interpreter will execute ut. Actually this option is one of the features I've seriously have considered removing, since it's hardly being used.
from filewatcher.
Well the first parameter is the filesystem part, which I know little about. I'm assuming that's just a trigger coming from the filesystem. Second parameter has its own execution (ruby) in the command. What would be useful is if the command could know about .bash_profile aliases, as in my case, it didn't know my alias app
which is the command I was needing.
from filewatcher.
Related Issues (20)
- The filewatch does not work if files are creating too fast HOT 5
- unexpected behavior on Windows and two callbacks on one DELETE on Linux HOT 3
- --restart flag support process kill with custom signal? HOT 3
- filewatcher loops infinitely when executing a script that invokes ssh HOT 9
- "Batching" all changes into one event HOT 3
- Sync to database example HOT 1
- Question regarding API HOT 3
- How do I know which directory has changed when there is a change HOT 1
- Stable release soon? HOT 2
- Filewatcher not found in Ruby 3.2.2 HOT 13
- When used with multiple watch paths block vars are improperly assigned HOT 5
- Speed up tests HOT 1
- `Filewatcher` vs `FileWatcher` case change from rubygems HOT 4
- 1.0 Release -- event 'updated' raises NotImplementedError HOT 4
- Crash on file deletion (via executable) HOT 1
- Doesn't seem to work if repos have a dot in the name HOT 2
- Replace Gemnasium with Depfu
- Trollop dependency is deprecated HOT 9
- Switch from Travis CI to Cirrus CI HOT 1
- Detect rename HOT 3
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 filewatcher.