Skip to content

[BUG] lark.exceptions.UnexpectedCharacters #229

@elvizlai

Description

@elvizlai

Description

Followed by https://github.com/bufbuild/protovalidate-python?tab=readme-ov-file#usage instruction, but failed

    raise UnexpectedCharacters(lex_state.text, line_ctr.char_pos, line_ctr.line, line_ctr.column,
lark.exceptions.UnexpectedCharacters: No terminal matches 'o' in the current parser context, at line 1 col 23

(this.startswith('$') or this.startswith('£')) and float(this[
                      ^
Expected one of:
	* "!="
	* "=="
	* COLON
	* PLUS
	* ">="
	* COMMA
	* "||"
	* RSQB
	* QMARK
	* "<="
	* MORETHAN
	* MINUS
	* IN
	* LESSTHAN
	* RPAR
	* STAR
	* LBRACE
	* RBRACE
	* SLASH
	* DOT
	* PERCENT
	* "&&"
	* LSQB

Previous tokens: Token('RPAR', ')')

Steps to Reproduce

Expected Behavior

Actual Behavior

Screenshots/Logs

Environment

  • Operating System:
  • Version:
  • Compiler/Toolchain:
  • Protobuf Compiler & Version:
  • Protoc-gen-validate Version:
  • Protovalidate Version:

Possible Solution

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions