mojira.dev
MC-165773

/execute run does not cause syntax error when arguments are missing

The bug

/execute run does not cause a syntax error when the command to run is missing arguments. There is no feedback at all in this case.
However, it is considered a syntax error if the command to run does not exit.

How to reproduce

Compare the result when typing / executing the following commands.

  1. Invalid command:

    /execute run scoreboard invalid

    ✔ An error is shown

  2. Missing argument:

    /execute run scoreboard objectives

    ❌ No error message, no feedback at all

Linked issues

Comments

clove

This also happens when commands aren't inside /execute. (Happens to all commands)

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w06a.

MMK21

Affects 1.17.1

MMK21

Affects 1.18

MMK21

Affects 1.18.1

MMK21

Affects 1.18.2

MMK21

Affects 1.19

Avoma

Can confirm in 1.19.2.

marcono1234

(Unassigned)

Confirmed

Low

Commands

/execute, /execute-run

1.14.4, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, ..., 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2

23w14a

Retrieved