Godot Version
Godot_v4.4.1-stable_win64
Question
Hi everyone,
I’m working on a Tetris project and have run into a very strange problem that I can’t solve. My Godot editor is reporting parse errors on basic GDScript 2.0 keywords, and I’m hoping someone has seen this before.
The Problem:
My script editor flags valid Godot 4 syntax as errors. For example:
Using the integer division operator // gives the error: Parse Error: Expected expression after “/” operator.
Using the async keyword gives the error: Unexpected identifier “async” in class body.
This is the behavior of a Godot 3 editor, but I am certain I am running the latest version.
My Environment:
Godot Version: I have downloaded the latest stable version of Godot 4. The editor’s title bar confirms it is a v4.x.x version.
Version Type: I am using the standard version, not the .NET/C# version.
Operating System: Windows 10
What I Have Already Tried:
I’ve spent a long time trying to debug this. I have already:
Confirmed the version number in the editor’s title bar.
Downloaded a completely fresh copy of the latest Godot 4 engine.
Deleted and manually recreated the script files to check for hidden/invisible characters.
Deleted the .godot cache folder inside my project and let the editor re-import everything.
Created a brand new, empty project. The error still happens even in a clean project. A script with only var x = 10 // 2 immediately shows a parse error.
My Question:
Has anyone ever encountered this? Why would a confirmed Godot 4 editor completely fail to parse its own basic syntax? I am starting to think it might be an issue with my PC’s configuration, but I don’t know where to look.
Any ideas or suggestions would be greatly appreciated. Thank you!