-
Notifications
You must be signed in to change notification settings - Fork 40
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
How to debug for OSX #70
Comments
Hope that helps? |
Well heres the other thing is that a few months ago I did see gulp generating system notifications when it was doing stuff, but none of that is happening now. I get zero system notifications, and these I'll look into that option, thanks. |
Usually you would use |
I still wanna see the messages for each file though. Is there a way to make a config option that disables the notification but still shows the per-file message? |
Ah, so you want to show message in terminal, but not get notification in Notification Center? I think the best way for that is to simply log the files. Something like this: gulp.src('./**/*.js')
// .pipe(somePlugin()) // do something with stream
.on('data', function (file) {
console.log('File: ', file.relative);
}); You can make it prettier using something like https://github.com/sindresorhus/chalk or use gutils.log (though I think that might be deprecated in time). |
I find that running
it just hangs, leaving a process consuming 5+MB of RAM. This is the root of the issue. So a workaround in here or gulp to not use |
That's weird. Does it go away in time (i.e. ~30 seconds)? |
No, it never returns. I am supposed to get a system notification with the content "test", which I conspicuously also do not receive. |
And you see no notification? |
Right. It's quite clearly borked. |
I tried something like the snippet you suggested, what it receives inside I guess I ought to try to make the terminal-notifier actually work. That would solve my issue. |
julienXX/terminal-notifier#115 This is the issue. It actually works when not under tmux. Solved. Thanks for helping. |
Thanks for figuring it out! |
When I run gulp it leaves as many
terminal-notifier
processes running as there are files (such as CSS and JSX files) being processed, and there are a lot of them... Sometimes this precipitates "out of available file handles" issues with the operating system. It would appear (Just shooting from the hip here) that every time I edit and save a file some new process is spawned and failed to be cleaned -- after a nice heavy hack session of hundreds of file saves, something is bound to break.So I have been using
DISABLE_NOTIFIER=true gulp
instead, which seems to not leave a billionterminal-notifier
s hanging around. But this is not ideal because i can no longer see the messages that show me which files have just been changed (and just generally what gulp is up to).So I was hoping that someone here could help show me how I could get started troubleshooting what went wrong with my project's setup. Also possible is that i need to look at overall gulp config not just anything specific to gulp-notify.
The text was updated successfully, but these errors were encountered: