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

Varieties of /teleport create ambiguities for tab-completion and syntax highlighting

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • Minecraft 18w02a, Minecraft 18w06a, Minecraft 18w20c, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 1.14.2, 1.14.4, 19w37a, 1.15 Pre-release 6, 1.15.1, 1.15.2, 20w07a, 1.16 Pre-release 2, 1.16.1, 20w29a, 1.16.4 Pre-release 2, 21w03a, 1.17.1, 1.18, 1.18.1, 1.18.2
    • None
    • Confirmed
    • Commands
    • Low

    Description

      The different syntaxes of /teleport introduce ambiguities for tab completion and syntax highlighting.

      1. Is the first argument destination or targets? "/tp @p <tab>" doesn't give tab completions for the <destination> argument. "/tp @a" doesn't complain that the <destination> argument may only return one entity.
      2. Is the first argument a player name or part of a set of coordinates? Attempting to teleport the player 1234321 to 0 0 0: type "/teleport 1234321" and start typing in the coordinates, after the y-coordinate, "1234321 0 0" will be highlighted as one argument even though it isn't.
      3. Is the second argument a player name or part of a set of coordinates? When I want to teleport myself to 0 0 0, I type "/teleport @p". After the x coordinate, it highlights the 0 in "/teleport @p 0" as a valid argument.

      This could be fixed by introducing keywords or even subcommands like it was done to avoid ambiguities in /execute, or like it was done in /data.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redstonehelper [Mod] redstonehelper
              Votes:
              76 Vote for this issue
              Watchers:
              30 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: