mojira.dev
MC-148528

execute score <a> <b> matches <range> throws parse error in mcfunction file, but not on command line

I have the following command:
execute if score something objective matches 1.. run function do_stuff

The parser say:

Whilst parsing command on line 4: Incorrect argument for command at position 43: ...r matches <--[HERE]
    at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
    at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
    at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)
    at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
    at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
    at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
    at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
    at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 4: Incorrect argument for command at position 43: ...r matches <--[HERE]
    at ca.a(SourceFile:67)
    at re.a(SourceFile:146)
    ... 7 more

If I issue the exact command in chat/command line if works as expected.

Comments 2

Nevermind, it started working.

I assume it's some kind of invisible character that slipped in there.

Quinn Roundy

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.14 Pre-Release 3

Retrieved