We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Interesting issue. Using a perforce repo, the files need to be unlocked before building. sometimes you forget and the task throws an EPERM error:
Writing web/assets/style.min.css...ERROR Fatal error: Unable to write "web/assets/style.min.css" file (Error code: EPERM).�
that's caught and the task exits, as expected.
When sourceMap: true is set, relating to https://github.com/gruntjs/grunt-contrib-less/blob/master/tasks/less.js#L71 and grunt.file.write(), it just hangs.
sourceMap: true
grunt.file.write()
With --verbose, it catches it:
--verbose
Writing web/assets/style.min.css.map...ERROR
BUT: it does not exit the process and just hangs. This also affects watch tasks etc.
The text was updated successfully, but these errors were encountered:
this should probably be caught by the grunt/file.js grunt.file - https://github.com/gruntjs/grunt/blob/master/lib/grunt/file.js#L300 but it's just not working.
grunt/file.js
adding this fixes it:
try { grunt.file.write(sourceMapFilename, output.map); grunt.log.writeln('File ' + chalk.cyan(options.sourceMapFilename) + ' created.'); } catch(err){ nextFileObj(err); }
Writing web/assets/style.min.css.map...ERROR Writing web/assets/style.min.css...ERROR Fatal error: Unable to write "web/assets/style.min.css" file (Error code: EPERM).�
Sorry, something went wrong.
No branches or pull requests
Interesting issue. Using a perforce repo, the files need to be unlocked before building. sometimes you forget and the task throws an EPERM error:
that's caught and the task exits, as expected.
When
sourceMap: true
is set, relating to https://github.com/gruntjs/grunt-contrib-less/blob/master/tasks/less.js#L71 andgrunt.file.write()
, it just hangs.With
--verbose
, it catches it:BUT: it does not exit the process and just hangs. This also affects watch tasks etc.
The text was updated successfully, but these errors were encountered: