Code Monkey home page Code Monkey logo

Comments (14)

shama avatar shama commented on June 30, 2024

Yep confirmed on Windows. Watch will spawn the task but then immediately closes. Will look into a fix shortly. Thanks!

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

After further investigation I've found that this works with the latest Grunt v0.4 and watch task. Try installing both using a git url as dependency. Won't be an issue when each are officially released. Thanks!

from grunt-contrib-watch.

niyazpk avatar niyazpk commented on June 30, 2024

Cool. Thanks!

from grunt-contrib-watch.

niyazpk avatar niyazpk commented on June 30, 2024

I installed the latest commit from the grunt devel branch and this bug is still present. Here is my current package.json:

{
  "name": "my-project-name",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "git://github.com/gruntjs/grunt.git#1f77fef26c564fe74e0b9860f055703649156113",
    "grunt-contrib-jshint": "~0.1.0",
    "grunt-contrib-nodeunit": "~0.1.0",
    "grunt-contrib-sass": "~0.2.1",
    "grunt-contrib-uglify": "~0.1.0",
    "grunt-contrib-watch": "git://github.com/gruntjs/grunt-contrib-watch.git#6360a36871d55a7a500f86e0ddd0fb9cd08f2773"
  }
}

FWIW the first time npm install ended silently for some reason. ( https://github.com/isaacs/npm/issues/2981 )

So I uninstalled this module and ran npm install again which seemed to install the watch module again. But still grunt watch is not reporting any lint errors.

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Hmm I'll check again.

from grunt-contrib-watch.

srigi avatar srigi commented on June 30, 2024

I have slightly different problem - watching for file changes fires linting on change ev. If linting fails I get classic error message:

Aborted due to warnings.

Problem with it is, that after this error, linting of the file is not restarted. Correcting the file will not initiate relinting affected file. Other files keep linted until first error.

update: not related to original issue, also solved :)

from grunt-contrib-watch.

niyazpk avatar niyazpk commented on June 30, 2024

I updated grunt to the latest version (then) a few days back and it is working fine now. Thanks guys!

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Oh awesome, closing then. :D

from grunt-contrib-watch.

ngryman avatar ngryman commented on June 30, 2024

I had the exactly same issue w/ [email protected], after updating to 0.2.0 the problem disappeared :)

from grunt-contrib-watch.

swar30 avatar swar30 commented on June 30, 2024

I'm on windows 7 with "grunt": "~0.4.0", "grunt-contrib-watch": "~0.3.1" and it reproduces for me.
jshint when ran in watch, does not report it's results, only have indication that watch is triggered, but no results, unless jshint passes successfully.

from grunt-contrib-watch.

WillsonHaw avatar WillsonHaw commented on June 30, 2024

I am getting the exact same result as swar30 when I run the grunt task from WebStorm. If I just run it from command line, it works fine.

from grunt-contrib-watch.

knownasilya avatar knownasilya commented on June 30, 2024

Have this issue as well, where it works the first time, maybe a second time (sometimes), but subsequent watches do not trigger.

Using grunt-contrib-watch 0.4.4, grunt-contrib-jshint 0.6.0, with grunt 0.4.1.

Looks like an issue with nospawn: true.

from grunt-contrib-watch.

franleplant avatar franleplant commented on June 30, 2024

Hey Im having the same issue in windows. Is there any updates on this?

Im using <grunt 0.4.1> <"grunt-contrib-jshint": "~0.6.0"> <"grunt-contrib-watch": "~0.5.1">

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Your issue is likely something different the original poster's issue. Please open a new issue with a description of the error you're experiencing, the portion of your watch config. Also try debugging using grunt watch --verbose or grunt watch --stack to ensure something isn't mistakenly configured. Thanks!

from grunt-contrib-watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.