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

Command suggestion report "incorrect argument" when cursor is at the start of a node without suggestions


    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20 Pre-release 2
    • 19w46a, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2, 20w06a, 20w07a, 20w12a, 20w13b, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w20b, 1.16 Pre-release 7, 1.16.3, 21w03a, 21w13a, 1.17.1, 1.18.1, 1.18.2, 22w16b, 1.19, 1.19.2, 22w42a, 1.19.4, 23w18a
    • Confirmed
    • Commands
    • Normal

      When typing arguments for a node that has no suggestions, now the command suggestion will just report and error instead of showing the string representation of the command node that the user is completing.


      Before: (tested in 19w36a) when typing /help and a space, [<command>] text floats in the suggestion area

      Now: (19w46a) when typing /help and a space, an error is displayed instead.


      Same thing can be replicated to other argument nodes without proper suggestions, like the path or scale for /data get or /function etc.

      This "incorrect argument" report IMO is partially intended as 19w46b aims to show this error in command blocks (trailing spaces do break commands in command blocks); imo a best solution is to have the error and the suggestion both presented on client, and only present the error for command function parsing.

        1. 2019-11-13_17.44.25.png
          113 kB
        2. 2019-11-13_17.45.26.png
          176 kB
        3. 2020-05-14_16.40.42.png
          1.23 MB
        4. MC-165562.mp4
          2.66 MB

            slicedlime [Mojang] slicedlime
            liach liach
            40 Vote for this issue
            21 Start watching this issue