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

CLI: Report character position in error #234

Closed
am11 opened this issue Jan 5, 2014 · 1 comment
Closed

CLI: Report character position in error #234

am11 opened this issue Jan 5, 2014 · 1 comment

Comments

@am11
Copy link
Contributor

am11 commented Jan 5, 2014

Cc: sass/node-sass#206 (comment)

Unlike JsHint, TsLint, JSCS, CoffeeScript and LESS, the current error message from SASS compiler doesn't contain character position (only the line number).

C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\cd.scss:141: error: no mixin named filter-gradient
Backtrace:
C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\cd.scss:141

Please make it so it outputs:

C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\cd.scss:141:35: error: no mixin named filter-gradient
Backtrace:
C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\cd.scss:141:35

(where 35 is the character position on line 141)

Thanks.

@mgreter
Copy link
Contributor

mgreter commented Nov 17, 2014

The new API exposes all available information now!
This information is also available in json (whish by node sass)!
Some messages still add a Backtrace which is no longer needed!
There is a wiki page with some API Documentation.

@mgreter mgreter closed this as completed Nov 17, 2014
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