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

'check css' isn't showing the information associated with Parse Errors #484

dgmstuart opened this issue Oct 10, 2014 · 3 comments


Copy link

When running nanoc check css on I get the following mystery errors:

Issues found!
    [ ERROR ] css - Parse Error
    [ ERROR ] css - Parse Error

Running my output css through the W3C CSS validator site I can see the source of the problem (apparently the validator currently chokes on the @page selector - used in print stylesheets):

Parse Error @page { margin: 1.2cm; }
Parse Error }

It would be nice if nanoc could display this information as well.

Copy link

The w3c_validators gem doesn’t return that data in a ready-to-use format, but it does return the lines on which the error occurred, so that should give enough information (hopefully) to create a better error message:

    @message="\n        \n                                Parse Error\n                            ",

Copy link

Fixed by #504. This will be in the next patch release (3.7.5)!

Copy link

Great :)

denisdefreyne added a commit that referenced this issue Jan 11, 2015
denisdefreyne added a commit that referenced this issue Jan 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants