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

Linter should display the file being processed when an error occurrs. #68

Open
GoogleCodeExporter opened this issue Mar 31, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I have found linter (both fixjsstyle ang gjslint) sometimes crashing with very 
obscure errors like:

AttributeError: 'NoneType' object has no attribute 'string

Now, I don't mind obscure errors, I have the linter source so I can kind of 
infer what they mean, but it would help so much if you just printed a message 
such as:

An unexpected error occurred whilst processing file ....../x/x/x.js:
... Stack Trace...
AttributeError: 'NoneType' object has no attribute 'string

As most of the time the cause of these obscure errors is clear if you just look 
at the file.

I do this by just using a stdout.print in fixjsstyle.py however, not being 
familiar enough with the linter source I would rather not submit my hack as a 
patch as I'm sure a more appropriate location exists to do this debugging.

Guido

Original issue reported on code.google.com by [email protected] on 20 May 2013 at 10:21

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

1 participant