Parse error outside of game runtime with no indication of source

Godot Version

v4.5.1.stable.official [f62fdbde1]

Question

Hello! I have randomly started getting this error in my output console even though my project is not running and the really weird part is that it’s making a new error message constantly. I have no idea what has caused this but the engine and game seem to run fine despite the error, it’s just filling up my entire console with thousands of error messages.

Any idea how I could fix this? it doesn’t seem to tell me where this ‘=’ is supposed to be. The error doesn’t seem to be in my code and nothing is being flagged with a red line in the editor so I’m wondering if there’s a problem in some project file or something? Thanks in advance.

Any chance you wanted to use the == (equal) operator anywhere in your code, but typed = by mistake? Just a shot in the dark..

Do you see that error with an empty project?

It might be an unused file in the project that doesn’t parse right; Godot proactively tries to import any files it finds in what it considers to be it’s folders.

As far as I can tell there’s no syntax errors in my own code atm.

It does not happen in an empty project or any other project I have so it must be something in this specific project. How would I go about locating a file like this?

I have found the issue. I did have a syntax error but it was in an AnimationTree StateMachine expression field which doesn’t get highlighted or anything. Would have been nice if the error said what node it was coming from but we got there in the end.

2 Likes