Skip to content
This repository was archived by the owner on Jul 17, 2022. It is now read-only.

Notification dont't show #27

Closed
fredw opened this issue Aug 9, 2013 · 16 comments
Closed

Notification dont't show #27

fredw opened this issue Aug 9, 2013 · 16 comments

Comments

@fredw
Copy link

fredw commented Aug 9, 2013

Hi,

I'm trying to configure the grunt-notify on my Gruntfile.js, but without success.
Tested on Ubuntu with the Notify-Send and Windows 8 with Growl for Windows and Snarl, both do not work.
The command I am running is: grunt notify
In the terminal only displays the message: Done, without errros
Below is my Gruntfile test.

module.exports = function(grunt) {

    // Load all tasks
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

    grunt.initConfig({
        notify: {
          test: {
            options: {
              message: "Test"
            }
          }
    });

    grunt.registerTask('default', ['notify']);
};

Thanks!

@dylang
Copy link
Owner

dylang commented Aug 9, 2013

If that's the whole file then you didn't tell grunt to load grunt-notify. Add this line:

grunt.loadNpmTasks('grunt-notify');

Let me know if that works for you.

@dylang
Copy link
Owner

dylang commented Aug 9, 2013

Ooops, silly me, i didn't notice

// Load all tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

That should load it, in theory.

Was it installed via

$ npm install grunt-notify ---save-dev

@fredw
Copy link
Author

fredw commented Aug 9, 2013

Is installed, it does not give any error in the execution of grunt and not "Done".

@walkerfranson
Copy link

sem ttulo
I have same problem

@dylang
Copy link
Owner

dylang commented Aug 18, 2013

I just released Grunt-Notify 0.2.8 - it should hopefully address this issue. Let me know if you run into this again or other issues. Thanks for your support.

@dylang dylang closed this as completed Aug 18, 2013
@fredw
Copy link
Author

fredw commented Aug 18, 2013

I upgraded to 0.2.8 and the problem remains, no message is displayed, both as Growl with Slarn.

@dylang
Copy link
Owner

dylang commented Aug 18, 2013

Hi @fredw - I just did another deploy that adds debug output.

Can you add --debug and paste the output here?

@fredw
Copy link
Author

fredw commented Aug 18, 2013

C:\Program Files (x86)\EasyPHP-5.3.9\www\default-website>grunt notify --debug
Running "notify:watch" (notify) task
[D] Task source: C:\Program Files (x86)\EasyPHP-5.3.9\www\default-website\node_m
odules\grunt-notify\tasks\notify.js
[D] [grunt-notify] IS_MAC: false
[D] [grunt-notify] IS_WINDOWS: true
[D] [grunt-notify] app_found: false
[D] [grunt-notify] IS_WINDOWS: true
[D] [grunt-notify] PROGRAM_FILES: C:\Program Files
[D] [grunt-notify] PROGRAM_FILES_X86: C:\Program Files (x86)
[D] [grunt-notify] app_found: false
[D] [grunt-notify] os: Windows_NT
[D] [grunt-notify] version: 6.2.9200
[D] [grunt-notify] IS_MAC: false
[D] [grunt-notify] MOUNTAIN_LION: false
[D] [grunt-notify] semver: false
[D] [grunt-notify] app: false
[D] [no-notifications] title: Task Complete
[D] [no-notifications] message: SASS and Uglify finished running
Running "notify:server" (notify) task
[D] Task source: C:\Program Files (x86)\EasyPHP-5.3.9\www\default-website\node_m
odules\grunt-notify\tasks\notify.js
[D] [no-notifications] title: default-website
[D] [no-notifications] message: Server is ready!

@dylang
Copy link
Owner

dylang commented Aug 18, 2013

@fredw Thanks for doing that. It looks like it can't find heysnarl or grownotify. Can you tell me where you have them installed? Heysnarl should be in the snarl install directory, growlnotify is a separate download for Windows and Mac. Also what versions are you using.

@fredw
Copy link
Author

fredw commented Aug 18, 2013

I installed both, Snarl and Growl for Windows. They are respectively installed in C:\Program Files (x86)\Snarl\ and C:\Program Files (x86)\Growl for Windows\. The Growl is at version 2.0.9 and Snarl in R3.0.1 (V44.88)

@walkerfranson
Copy link

Thanks it's working now...

@dylang
Copy link
Owner

dylang commented Aug 18, 2013

@fredw It looks like you have Snarl installed in a different directory than the default. I just pushed a new version that will try your install directory as well.

For Growl to work growlnotify must be in your path. You should be able to try growlnotify --version from the same directory as your Gruntfile and get something back.

BTW, for everyone: to get the latest version of grunt-notify you may need to do npm install grunt-notify because npm update doesn't seem to update devDependencies.

@fredw
Copy link
Author

fredw commented Aug 18, 2013

Now it works! The Snarl went to work after upgrading grunt-notify. To Growl, missing add the installation directory in Windows path variable.

Thank you for your attention in solving the problem!

@dylang
Copy link
Owner

dylang commented Aug 18, 2013

@fredw and @walkerfranson Happy to hear it is working! Enjoy and thanks for helping find and fix the problems.

@vict-shevchenko
Copy link

Hi, can You please help. Am I correct, to use notifier successfully I need:

  1. Download and install Growl for Windows
  2. Download growlnotify - IMPORTANT : Unpack growlnotify to a folder that is present in your path!
    -after that growlnotify --version should work
  3. Install npm and run: $ npm install growl
  4. Run npm install grunt-notify --save-dev

And only then I will be able to use it?

@jparkerweb
Copy link

Adding the path to Growl / Snarl to my system PATH fixed the issue. Please add this info to the main GitHub page to help future Notify users ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants