The bug
When an invalid value is entered for an argument in the middle of a command string, the command is shown in red to indicate it is invalid, but the specific parse error message is not displayed unless the text cursor is placed at the end of the command.
Steps to recreate
I used the /effect
command since it has a lot of arguments.
Enter a basic command with an invalid parameter at the end.
[media]
Example:/effect give @e[type=pig] levitation -1
Notice the parse error message:
Integer must not be less than 1, found -1 at position ...
Enter the same command with correct arguments.
Example:/effect give @e[type=pig] levitation 100 255 true
Go back and change an argument to be invalid.
[media]
Example:/effect give @e[type=pig] levitation -1 255 true
Notice the command turns red to indicate error, but no message is displayed like before.
Now press <End> to move the cursor to the end of the command.
Notice the error message again displays as expected.
[media]
Can confirm in 20w51a.