Whenever a command is executed that has a syntax error and also has a multi-target selector, it will evaluate the command for each entity it finds even though the syntax error is there. Shouldn't it only evaluate once, for one error, instead of over and over again for no reason?
Linked issues
duplicates 1
Comments 3
@Skylinerw This is not a clone. This is an entirely different thing. The other report is about usage being repeated, while this is about a legitimate (while minor) performance issue.
@unknown:
Shouldn't it only evaluate once, for one error, instead of over and over again for no reason?
that means:
shouldn't a command with incomplete syntax, but with a selector of more entities, only return a error once?
a.k.a.: MC-99218
You have to provide the command you're using.
Regardless, most commands are processed multiple times, equal to the number of targets obtained by a selector. The selector is processed before the command is in order to determine how many times the command must run. If you have a selector in the correct position but have invalid syntax elsewhere, the number of times the command will be processed is already determined and will do so for each target obtained.
EDIT: Do not create clones of your reports: duplicate of MC-99218.