node.js - Grunt-contrib-watch error when compiling less files -
not sure why keep getting these errors when running watch task.
grunt watch task
# watch task watch: options: nospawn: true livereload: true server_coffee: files: ['server/**/*.coffee'] tasks: ['coffee:changed'] server_copy: files: ['server/**/*.!(coffee)'] tasks: ['copy:changed'] client_coffee: files: ['client/**/*.coffee'] tasks: ['coffee:changed'] client_copy: files: ['client/**/*.!(coffee)'] tasks: ['copy:changed']
grunt event
# watch changed files grunt.event.on 'watch', (action, filepath) -> # determine server or client folder path = if filepath.indexof('client') isnt -1 'client' else 'server' cwd = "#{path}/" filepath = filepath.replace(cwd,'') # minimatch coffee files if minimatch filepath, '**/*.coffee' # compile changed file grunt.config.set('coffee', changed: expand: true cwd: cwd src: filepath dest: "#{path}-dist/" ext: '.js' ) # minimatch others if minimatch filepath, '**/*.!(coffee)' # copy changed file grunt.config.set('copy', changed: files: [ expand: true cwd: cwd src: filepath dest: "#{path}-dist/" ] )
notes
- happens sporadically
errors
any 1 of these errors.
node(11548,0x7fff70ce7cc0) malloc: *** error object 0x100c329c8: incorrect checksum freed object - object modified after being freed. *** set breakpoint in malloc_error_break debug [1] 11548 abort grunt build assertion failed: (("libev: ev_io_stop called illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax)), function ev_io_stop, file ../deps/uv/src/unix/ev/ev.c, line 2699. [1] 11930 abort grunt build node(11189,0x7fff70ce7cc0) malloc: *** error object 0x100a35f68: pointer being freed not allocated *** set breakpoint in malloc_error_break debug [1] 11189 abort grunt build [1] 11479 segmentation fault grunt build
Comments
Post a Comment