Hangs on missing HTML files #51

TheHalcyonSavant opened this Issue Oct 13, 2015 · 2 comments


None yet

3 participants


When the specified files can't be found by the multitask src configuration pattern, then jsbeautifier task starts some infinite loop in the background and it doesn't return immediately. To reproduce this bug, just use the following simple HTML configuration:

jsbeautifier: {
  html: {
    src: ["app/views/*.html"]

and leave the src folder empty.
Now, try run grunt jsbeautifier:html and it'll never return - will hang forever.

dpalic commented Oct 15, 2015

same issue here. We did a workaround by adding a dummy file into the empty folder, but this is a bad hack (even if it helps to workaround it)

@piotrkulpinski piotrkulpinski added a commit to piotrkulpinski/grunt-jsbeautifier that referenced this issue Nov 2, 2015
@piotrkulpinski piotrkulpinski Fixes #51 Hangs on missing HTML files c6df51a
vkadam commented Apr 9, 2016

Fixed with upgrade of async dependency in commit e48b8fd, test added in commit ccfd245. Will be available with version 0.2.12
This makes #53 not required.

@vkadam vkadam closed this Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment