The bug
If your GUI scale is large enough, and the autocomplete for a certain command typed in chat (or a command block) contains a suggestion that's long enough, the suggestion box will go beyond the left edge of the screen, preventing you from reading the first characters of each suggestion. Too short suggestions may even disappear from the screen entirely.
How to reproduce
Type the following command in the chat:
/advancement grant @p only
Press space
→ ❌ The autocomplete suggestions for the<advancement>
parameter will go beyond the left side of the screen
In this case, the name that makes the autocomplete box too long to be displayed on screen (understandably, because even here it may be displayed in two lines) is the following:
minecraft:recipes/building_blocks/smooth_red_sandstone_stairs_from_smooth_red_sandstone_stonecutting
However, it may happen with any function name, sound event, block tag, advancement etc. that's long enough (along with a large enough GUI scale).
Suggested fix
The suggested fix is to make it behave it similar to chat messages: calculate how many characters can fit on the player's screen, considering their screen resolution and GUI scale, then break the names that exceed this length into two or more lines. To avoid splitting lines in the middle of a word, line breaks can happen after slashes or underscores, if possible.
Linked issues
duplicates 1
Attachments
Comments 2
I believe this is a duplicate of MC-129641.
Can confirm. I use lots of very long function file names, and this is a major issue which prevents me from reading the
endsbeginnings of the paths.