Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-265589

Brigadier exception can be repeatedly logged if command has invalid syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w40a
    • 1.20.2
    • None
    • Confirmed
    • Commands

      If a command has invalid syntax, exception

      com.mojang.brigadier.exceptions.CommandSyntaxException

      can be logged. This can be a problem if the command is in a repeating command block. This causes the same error to repeatedly get logged, making the log file gradually get larger.

      Example command:

      /tellraw @p {"text":"a","hoverEvent":{"action":"show_item","value":"{id:stone"}} 

      A similar report is MC-121913
      With this report it was more of an issue because it was made around 1.13 when many commands changed, likely leading to many syntax errors.

      But nonetheless my report seems to be similar at least in regards to the potential for a huge log file if the problem is not noticed.

            Unassigned Unassigned
            mattp_12 mattp_12
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: