AdguardTeam / FiltersCompiler

A tool that compiles & validates filters
GNU Lesser General Public License v3.0
52 stars 12 forks source link

Print more details when build failed because of invalid directives #213

Open Alex-302 opened 8 months ago

Alex-302 commented 8 months ago

Issue details

At the moment we see only one problematic line, if something went wrong

image

If a filter compiled from dozens of files, it is hard to find where the problem exactly. For example, Dandelion Sprout's Annoyances List has more than 25 files, including nested include directives.

Proposed solution

Alternative

If validation applied to a merged file - print 5 next and previous lines by which it will be possible to find the desired file or file line.

105th commented 8 months ago

This can be achieved by updating filters-downloader to the second version - it contains more informative logs.