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

Wrong counting of files when using a wrapfile? #40

Open
mpoelstra opened this issue Mar 31, 2014 · 3 comments
Open

Wrong counting of files when using a wrapfile? #40

mpoelstra opened this issue Mar 31, 2014 · 3 comments

Comments

@mpoelstra
Copy link

When using the wrapfile option I always encounter the following error after the last validated file:

Fatal error: Unable to read "undefined" file (Error code: ENOENT).

This is due to the code on L275:

w3cjs_options.input = wrapfile.replace("<!-- CONTENT -->", grunt.file.read(files[counter]));

Changing L265:

if (options.wrapfile) {

Into

if (options.wrapfile && files[counter]) {

Will fix this, but I think this is more a workaround and not the best fix. What do you think?

@dynamicdan
Copy link

Worked for me but now I have

Running "validation:files" (validation) task
Validated skipping.._tempvlidation.html

Done, without errors.

which is odd.

@trevordmiller
Copy link

I have the same "Unable to read 'undefined' file" error when using wrapfile @mpoelstra.

@Bitneko
Copy link

Bitneko commented Sep 21, 2014

I have the similar problem with multiple remote files. On the first successful remote file, it will just skip the remaining files with 'Validated skipping.._tempvlidation.html' messge.

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

No branches or pull requests

4 participants