Closed (fixed)
Project:
Translation template extractor
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Nov 2015 at 15:31 UTC
Updated:
26 Nov 2015 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
herom commentedHere's a patch that catches all parsing errors in Twig and YAML files.
Also filed #2613854: Don't parse third-party code: node_modules/, since that's where the first error is coming from.
Comment #3
gábor hojtsypotx already has a mechanism to collect errors in files. I would use that, so we see those on the UI on localize.drupal.org for example and can help people debug problems. Otherwise the potx watchdog messages will just fly by...
Comment #4
herom commentedReplacing
watchdog()calls withpotx_error().Comment #5
gábor hojtsyCan we test this? We have assertions for errors reported in some of our tests, so I think we can test it on an invalid YAML / Twig?
Comment #6
herom commentedLet's try and see.
Comment #8
herom commentedLet's move the broken yaml into "
config/install".Comment #9
gábor hojtsy#8 looks good. Even if the YAML test only did not fail, I think its worth keeping a case for it :)
Comment #11
herom commentedGreat. Committed.