Comments (7)
Thanks for your feedback and screencast. The last pull-request was the biggest so far, and I clearly didn't test filewatcher enough. The spinner was my idea, but should clearly be optional. It interfers with output from stdout. I have to have a look at it tomorrow.
from filewatcher.
There is a new version 0.51 available from now on github that exists silently on sigint. I haven't pushed the gem yet, but please install it from the repo and tell me what you think:
git clone https://github.com/thomasfl/filewatcher.git
cd filewatcher
gem build filewatcher.gemspec
gem install filewatcher-0.5.1.gem
The spinner is now optional via the --spinner option.
BTW! Have you tried the --restart option? It speeds up autotesting so much that I have concidered making it default. It makes filewatcher fork a new process that the shell commands run in, and instead of waiting for the command to finish on file system updates, it starts up a new process and kills the old process in the background.
from filewatcher.
Excellent. Will test a little later and report back.
(Havent tested --restart yet).
EDIT:
Ok - built and installed 0.5.1, and both the repro case and my actual use case seem to work fine (same as 0.4.0) - no spinner by default, and sigint is handled properly.
I also think it is a good call to make the spinner off by default (and may I suggest perhaps to change it to "Watching" instead of "Scanning").
I tried the --restart option, but did not notice anything different. Maybe my use case is too simple.
If you want me to take a deeper look, let me know what to look for.
from filewatcher.
Thanks for your feedback Danny!
I'll change the text from "scanning" to "watching".
The speed increase with the --restart option is noticeable on my laptop. A better name for the option would be --background, because it runs the shell command in the background in a separate fork. If you use filewatcher for autotesting, and saves a source file several times with short interval between each time, then you'll notice the difference.
from filewatcher.
I see.
I will try that feature in my day to day use.
Since this feature is also doing some process forking trickery, I would be cautious about making it the default operation. Maybe let it be like it is now for a while, see if people report problems, and then decide if it should be the default or not in one of the future major releases.
from filewatcher.
I've changed the text displayed next to the scanner from "scanning" to "watching" and pushed the new 0.5.1 to the rubygems.org repository.
Thanks again for taking the time to test filewatcher.
from filewatcher.
My pleasure, thanks for the quick fix.
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.