Stumbled upon this today, and just wanted to throw it out there.
A project I'm working on has started with me creating some html 'modules' and copy pasting them a bunch of times into the same file, and then doing individual tweaks from there.
Most of these modules have the same id for now right after the mass pasting, so they would get flagged as being bad html. I noticed at some point that I was no longer getting flags for these, and after testing discovered that I was not getting any more flags at all.
In my testing, I discovered that htmlhint seems to max out at 147 flagged errors in my file. If there are any more than that, I get an error in my console:
SublimeLinter: error in SublimeLinter daemon:
SublimeLinter: --------------------
SublimeLinter: Traceback (most recent call last):
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 57, in loop
item = self.q.get(block=True, timeout=self.MIN_DELAY)
File "./python3.3/queue.py", line 175, in get
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 65, in loop
self.lint(view_id, timestamp)
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/queue.py", line 111, in lint
self.callback(view_id, timestamp)
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/sublimelinter.py", line 120, in lint
Linter.lint_view(view, filename, code, hit_time, callback)
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 929, in lint_view
linter.lint(hit_time)
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/node_linter.py", line 77, in lint
super(NodeLinter, self).lint(hit_time)
File "/Users/EvanCampbell/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py", line 1410, in lint
for match, line, col, error, warning, message, near in self.find_errors(output):
File "linter in /Users/EvanCampbell/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-contrib-htmlhint.sublime-package", line 38, in find_errors
File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 215, in decode_value
raise ValueError(err)
ValueError: Error trying to decode value: Unexpected character, expected a comma or closing bracket in (data):1:65538
SublimeLinter: --------------------
Normally, a user wouldn't have this many errors in a project. Just the circumstance of what I'm working on allowed it to surface. Hope it's of some use!
Stumbled upon this today, and just wanted to throw it out there.
A project I'm working on has started with me creating some html 'modules' and copy pasting them a bunch of times into the same file, and then doing individual tweaks from there.
Most of these modules have the same id for now right after the mass pasting, so they would get flagged as being bad html. I noticed at some point that I was no longer getting flags for these, and after testing discovered that I was not getting any more flags at all.
In my testing, I discovered that htmlhint seems to max out at 147 flagged errors in my file. If there are any more than that, I get an error in my console:
Normally, a user wouldn't have this many errors in a project. Just the circumstance of what I'm working on allowed it to surface. Hope it's of some use!