Open idgserpro opened 7 years ago
please update you .csslint
file to this and test again:
--format=compact
--quiet
--ignore=adjoining-classes,floats,font-faces,font-sizes,ids,important,qualified-headings,unique-headings
@hvelarde I stopped running csslint and running only jshint. The output was 260 lines and the error didn't occur. One thing I forgot to mention, is that I'm running in jenkins. On the local machine the error does not occur. It may be some incompatibility with the way the jenkins performs its processes. Any suggestion?
A similar problem happened here:
https://bugs.chromium.org/p/gerrit/issues/detail?id=467
if it is feasable, I'd try to patch /opt/programas/python-cache/eggs/plone.recipe.codeanalysis-2.2-py2.7.egg/plone/recipe/codeanalysis/analyser.py
to split up msg in smaller batches and see if printing the batches helps.
@do3cc what I think is occurring is that a process is trying to print a file that another process is still writing. Split will not work.
Same problem here using csslint and jshint when the output is very big. In my case I'm using gitlab.
@idgserpro ask @tisto for advice on Jenkins configuration.
In general, if the problem is that the output is too big, then either run it once manually and do the cleanup or rather make code-analysis avoid those files throwing lots of errors.
The point of p.r.codeanalysis is that if the package is clean, as soon as you introduce a code-analysis error you see it right away, if you have 1000+ errors and in your next commit you introduce 2 more, you will never notice them, making the problem worse and worse as time goes.
I have been able to reproduce the problem in Python by doing a non-blocking read on an empty pipe. So maybe the problem is that there is no data, rather than too much data. One way I was able to make the problem go away was to add a "try" clause to the Python program, e.g.
try:
Result = x.stdout.read()
except:
time.sleep(1)
Result=''
I'm trying to use
plone.recipe.codeanalysis
withcsslint
. The output ofcsslint
returns many lines (2300 lines). When I try to run the codeanalysis, I get the error:I am using
python 2.7.9
withRed Hat 6.7
.My settings:
.csslintrc: