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

Not detecting added files on OSX and Windows 7 #4

Closed
pghalliday opened this issue Oct 17, 2012 · 3 comments
Closed

Not detecting added files on OSX and Windows 7 #4

pghalliday opened this issue Oct 17, 2012 · 3 comments
Labels

Comments

@pghalliday
Copy link

I just updated to grunt 0.3.17 and installed grunt-contrib-watch 0.1.2
I notice that now when I add files that match the files patterns the watch task no longer detects them

To verify this I created a really simple example. Using the following grunt.js if i add a new js file under the src directory lint is not run. However I know that it's working as saving grunt.js does result in lint being run and on all files including the new one. Watch only seems to watch new files if I restart it

module.exports = function(grunt) {

  grunt.loadNpmTasks('grunt-contrib-watch');

  grunt.initConfig({
    lint: {
      files: ['grunt.js', 'src/**/*.js']
    },
    watch: {
      scripts: {
        files: ['<config:lint.files>'],
        tasks: ['default']
      }
    }
  });

  grunt.registerTask('default', 'lint');
};
@shama
Copy link
Member

shama commented Oct 18, 2012

Thanks! What OS and version are you using?

@pghalliday
Copy link
Author

This was on OSX Mountain Lion, I just tried it on Windows 7 64 bit but it doesn't work there either. It only worked on a Ubuntu 64 bit VM

@shama
Copy link
Member

shama commented Oct 28, 2012

This should be fixed in v0.1.3. Please reopen if it is still an issue. Thanks!

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

No branches or pull requests

2 participants