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

Warning when running grunt PostCSS task after initial run #5

Closed
allenmoore opened this issue Nov 25, 2015 · 5 comments
Closed

Warning when running grunt PostCSS task after initial run #5

allenmoore opened this issue Nov 25, 2015 · 5 comments
Assignees

Comments

@allenmoore
Copy link

I've added mdcss to the PostCSS grunt tasks for an upcoming project. When running grunt, after running grunt to generate the initial style guide, a warning is thrown in the PostCSS grunt task. This is a copy of the warning:

Fatal error: Error: ENOENT, unlink '/Users/username/path/to/style-guide/examples.js',
Error: ENOENT, unlink '/Users/username/path/to/style-guide/prism.js',
Error: ENOENT, unlink '/Users/username/path/to/style-guide/script.js',
Error: ENOENT, unlink '/Users/username/path/to/style-guide/mdcss-logo.png',
Error: ENOENT, unlink '/Users/username/path/to/style-guide/style.css'

I have custom options in place for mdcss that change the directory name, title, and uses a custom logo. In order to determine if the warning is due to the custom options, I remove the options and used the mdcss defaults. I then deleted the previously generated style guide, and ran grunt twice. On the second run, the same warning appears as shown above.

I receive this warning no OS X El Capitan 10.11.1.

@zrothauser
Copy link

I'm getting the same problem, with the following settings:

require('mdcss')({
    theme: require( 'mdcss-theme-github' ),
    destination: 'test/visual/styleguide'
})

@jonathantneal
Copy link
Collaborator

Are you still having this issue? There has not been an unlink method used in mdcss, and any fs calls are either synchronous within try / catches or integrated with Promises.

@allenmoore
Copy link
Author

I am still having this issue. Yesterday, I integrated mdcss into a new project. I tested with the defaults, plus changing the default directory to a custom location. In every instance, this error occurred.

Is there a potential conflict with another grunt module? I can provide a package.json example of that would help.

@jonathantneal
Copy link
Collaborator

Yes, please do provide whatever information should allow me to replicate the issue. If it’s a conflict, then it would be valuable to understand the conflict and either mention it in the documentation or file an issue with the conflicting project.

@jonathantneal
Copy link
Collaborator

Some systems have issue overwriting files without first clearing the directory. This has been resolved in 1.5.0. Thanks, @allenmoore!

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

No branches or pull requests

3 participants