Original message (verbatim)
Expected statement, found "%s" instead.
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
The parser reaches a token that cannot start a statement: wrong indentation, incomplete expression, stray symbol, or an unclosed previous line, and reports a Parse Error at that position.
Typical cause
gdscript_parser expected a statement but received another token type; push_error reports the expected-statement error with the actual token.
Step-by-step fix
- Check the indentation of the reported line and the end of the previous line for a missing or extra level.
- Complete the broken expression, remove stray symbols, and verify brackets and quotes are closed.
- Locate and fix it at the line number shown in the script editor, save, then reload the script.
Source links
Per-entry sources and capture date are listed at /sources#G26.
Related errors
Related Godot errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00