Skip to content

GDFormat failed at those lines of code #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CabalCrow opened this issue Jan 21, 2025 · 0 comments
Open

GDFormat failed at those lines of code #354

CabalCrow opened this issue Jan 21, 2025 · 0 comments

Comments

@CabalCrow
Copy link

GDFormat failed at those lines of code:

func _calculate_advantage() -> int:
	return (
		+ _calculate_lockout_frames()
		- opponent._calculate_lockout_frames()
	)

It happens because of the + at the very start.

Here the log file for the fail:

          Expected one of: 
          	* SLASH
          	* RPAR
          	* LESSTHAN
          	* VBAR
          	* "<="
          	* IS
          	* CIRCUMFLEX
          	* "=="
          	* "!="
          	* DOT
          	* "<<"
          	* ">>"
          	* AMPERSAND
          	* IF
          	* OR
          	* "&&"
          	* PLUS
          	* MINUS
          	* NOT
          	* "||"
          	* IN
          	* "is not"
          	* STAR
          	* MORETHAN
          	* ">="
          	* LSQB
          	* "**"
          	* PERCENT
          	* AND
          	* AS
          Previous tokens: [Token('NAME', '_calculate_lockout_frames')]
          
          
          2025-01-21 21:57:21[WARN] Formatter 'gdformat' timeout
          2025-01-21 21:57:24[WARN] Formatter 'gdformat' timeout
          2025-01-21 21:58:21[ERROR] Formatter 'gdformat' error: STDIN:
          
          		+ _calculate_lockout_frames()
                                                     ^
          
          Unexpected token Token('LPAR', '(') at line 2209, column 30.
          Expected one of: 
          	* AMPERSAND
          	* "&&"
          	* OR
          	* ">="
          	* VBAR
          	* SLASH
          	* "<<"
          	* RPAR
          	* AND
          	* "!="
          	* LSQB
          	* CIRCUMFLEX
          	* LESSTHAN
          	* "**"
          	* NOT
          	* MINUS
          	* PERCENT
          	* "=="
          	* IS
          	* ">>"
          	* "is not"
          	* DOT
          	* IN
          	* AS
          	* "<="
          	* PLUS
          	* "||"
          	* MORETHAN
          	* IF
          	* STAR
          Previous tokens: [Token('NAME', '_calculate_lockout_frames')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant