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

Command hints that appear when defocusing TAB completion options appear inconsistently between commands and arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 1.19.3 Pre-release 1, 1.19.3 Pre-release 2, 1.19.3 Release Candidate 3, 1.19.3, 23w03a, 23w07a, 1.19.4 Pre-release 2, 1.19.4, 23w13a, 1.20 Pre-release 5, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.2, 1.20.4, 24w03b
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      When using commands that provide TAB completion options, pressing ESC should display expected arguments that provide hints at what the command accepts. However, this behavior is seemingly inconsistent.

      Steps to reproduce:

      1. Start typing "/tp" and press space. It will show tab suggestions for the command
      2. Press ESC to back out of the suggestions list
      3. Observe how command suggestions are shown
      4. Now, try the same with /teleport. Type "/teleport", press space and press ESC when you see the tab completions
      5. Observe how, despite /tp and /teleport providing the same completions and expecting the same arguments, the hints don't appear, and instead an error does

      This behavior seems inconsistent and confusing to me. I'd expect both commands would produce the same result, given they take the same arguments. Moreover, whether or not a syntax error or the hints are shown seems to vary between commands.

      For instance, typing "/give", pressing space, then pressing ESC to back out of username completions will show the expected arguments for that command, but then proceeding to the next argument (/give William278), pressing space, then pressing ESC at the list of items will present a syntax error.


      Edit as of Minecraft 1.20-Pre2

      This seems to have been partially resolved as part of the fix for MC-165562. However, this is only a partial fix.

      To demonstrate this, typing /tp and backing out of the TAB suggestions now correctly displays the argument suggestions. However, typing /tp William278 and pressing space will display the error, despite there being valid additional arguments a user could pass to the command. In that case, typing a single character will then display the argument suggestions list.

      At the very least, the "inconsistent between commands" part of this issue has been fixed as of Pre-2, as this behavior is consistent between /tp and /teleport; it was not before. It remains inconsistent between arguments.

        1. 2022-08-18_14.35.33.png
          2022-08-18_14.35.33.png
          326 kB
        2. 2022-08-18_14.35.40.png
          2022-08-18_14.35.40.png
          321 kB
        3. 2022-08-18_14.36.59.png
          2022-08-18_14.36.59.png
          339 kB
        4. 2022-08-18_14.37.13.png
          2022-08-18_14.37.13.png
          338 kB
        5. 2022-08-18_14.38.17.png
          2022-08-18_14.38.17.png
          334 kB
        6. 2022-08-18_14.38.23.png
          2022-08-18_14.38.23.png
          334 kB

            Unassigned Unassigned
            William278 William
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: