﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
19648	[patch] Show warning on invalid MapCSS validator rule parsing	skyper	team	"==== What steps will reproduce the problem?
1. Have a typo in a validator mapcss rule file, like the missing **`y`** below:
 {{{
#!rule
way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/] {
  set MotorwayTrunk;
}
way.MotorwaTrunk[lanes][turn:lanes              ][tag(lanes)!=eval(count(split(""|"", tag(""turn:lanes""))))],
way.MotorwaTrunk[lanes][change:lanes            ][tag(lanes)!=eval(count(split(""|"", tag(""change:lanes""))))],
way.MotorwaTrunk[lanes][maxspeed:lanes          ][tag(lanes)!=eval(count(split(""|"", tag(""maxspeed:lanes""))))],
way.MotorwaTrunk[lanes][minspeed:lanes          ][tag(lanes)!=eval(count(split(""|"", tag(""minspeed:lanes""))))],
way.MotorwaTrunk[lanes][destination:lanes       ][tag(lanes)!=eval(count(split(""|"", tag(""destination:lanes""))))],
way.MotorwaTrunk[lanes][destination:ref:lanes   ][tag(lanes)!=eval(count(split(""|"", tag(""destination:ref:lanes""))))],
way.MotorwaTrunk[lanes][destination:symbol:lanes][tag(lanes)!=eval(count(split(""|"", tag(""destination:symbol:lanes""))))] {
    throwWarning: tr(""Different number of lanes in the keys {0} and {1}"", ""{1.key}"", ""{2.key}"");
    group: tr(""suspicious tag combination"");
}
 }}}
1. (Re-)Load file 

==== What is the expected result?
A warning about an unknown class in use.
 
==== What happens instead?
No warning

==== Please provide any additional information below. Attach a screenshot if possible.
Some Information about existing but not use classes would be nice, too.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-08-06 21:47:58 +0200 (Thu, 06 Aug 2020)
Revision:16851
Build-Date:2020-08-07 01:30:47
URL:https://josm.openstreetmap.de/svn/trunk
}}}"	enhancement	new	normal		Core			template_report rule validation mapcss class	
