commodore icon indicating copy to clipboard operation
commodore copied to clipboard

Parameter hints when defocusing the tab suggestion box no longer appear without typing a character

Open WiIIiam278 opened this issue 2 years ago • 1 comments

The "hints" that appear indicating expected command arguments when you press escape to exit the box with tab suggestions no longer seem to appear as of 1.19 / new commodore versions. This affects LuckPerms, too.

Reproduce (using LP as an example, though you can use this library in another project and experience the same results).

  1. Fire up a server with the latest Luckperms running Paper (supporting commodore 2.1+)
  2. Type /luckperms user player permission set
  3. You will be presented with a list of tab suggestions. Press ESC to exit the window
  4. You should see the remaining parameters to enter on the command. Instead, you see an (incorrect) syntax error.

Example of this occurring with my plugin. Here, I've pressed ESC and expect the field name I am on "name" to appear as a hint; [<name>] image

Expected result, with LuckPerms: image

Actual result (Commodore 2.2 / Paper 69950d5 / Minecraft 1.19.1): image

However, parameter hints will appear if you type a character into the field work. image

This does not mirror Vanilla behavior, where hints are able to display even before typing a character. image

Thank you for your work!

WiIIiam278 avatar Aug 04 '22 21:08 WiIIiam278

I'm pretty sure this has been an issue for a while now, as I remember this being a problem in 1.18, unless I am misremembering something.

CyberedCake avatar Aug 04 '22 23:08 CyberedCake