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 guido.tapia@gmail.com on 20 May 2013 at 10:21
Original issue reported on code.google.com by
guido.tapia@gmail.com
on 20 May 2013 at 10:21