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

Intermediate command arguments do not display parse error messages unless the cursor is at the end of the command

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      When an invalid value is entered for an argument in the middle of a command string, the command is shown in red to indicate it is invalid, but the specific parse error message is not displayed unless the text cursor is placed at the end of the command.

      Steps to recreate

      I used the /effect command since it has a lot of arguments.

      1. Enter a basic command with an invalid parameter at the end.
        Example: /effect give @e[type=pig] levitation -1
      2. Notice the parse error message:
        Integer must not be less than 1, found -1 at position ...
      3. Enter the same command with correct arguments.
        Example: /effect give @e[type=pig] levitation 100 255 true
      4. Go back and change an argument to be invalid.
        Example: /effect give @e[type=pig] levitation -1 255 true
      5. Notice the command turns red to indicate error, but no message is displayed like before.
      6. Now press <End> to move the cursor to the end of the command.
      7. Notice the error message again displays as expected.

        Attachments

        1. brig_end.png
          brig_end.png
          23 kB
        2. brig_mid_end.png
          brig_mid_end.png
          23 kB
        3. brig_mid.png
          brig_mid.png
          23 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Tedstar Tedstar (Curtis Anderson)
              • Votes:
                4 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: