The bug
The command syntax help does not recognize invalid tags.
How to reproduce
Type or copy the following
/clear @s #invalid
→ ❌ #invalid
is not displayed red
Linked issues
Attachments
Comments 13
Tags are decided by datapacks, and datapacks are changeable.
For example, if dapatack A contains functions using tag C, but tag C is defined by datapack B, and load datapack A before B, then "unknown" tag C shouldn't be seen invalid before loading datapack B.
Invalid function names, recipe names and advancements can't be recognized, too.
But I think I should recognize invalid tags when inputing commands in chat or cmdblocks.
This issue was present in 1.18.2, but no longer occurs in versions above or equal to 22w11a, meaning that this issue was fixed in 22w11a. To reinforce my claims, I've attached two screenshots, one of which demonstrates the behavior in 1.18.2, and the other in 22w11a.
[media][media]
Can confirm for 18w16a