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



    • Confirmed
    • (Unassigned)


      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.


        1. brig_end.png
          23 kB
          Tedstar (Curtis Anderson)
        2. brig_mid_end.png
          23 kB
          Tedstar (Curtis Anderson)
        3. brig_mid.png
          23 kB
          Tedstar (Curtis Anderson)

        Issue Links



              Unassigned Unassigned
              Tedstar Tedstar (Curtis Anderson)
              6 Vote for this issue
              2 Start watching this issue