Closed tokengamedev closed 6 months ago
This is a known issue with Godot's Language Server. Restarting Godot usually works for me, but certainly not always.
I've recently discovered a technique to inspect and potentially modify or suppress information coming from the language server, and this is one of several candidates for such a suppression.
This rarely if ever happens for me anymore using Godot 3.5+ or Godot 4.
Godot version
3.5 stable
VS Code version
1.71.2
Godot Tools VS Code extension version
1.3.1
System information
Windows 11
Issue description
Adding class_name to a gdscript file causes the error Unique global already exists, parsing error. This does not happen in the Godot script editor
Impact:
This error stops other parsing errors to be displayed in the file. It also sometimes stops display of outline for the file. This causes a lot of inconvenience, as I needed all the errors while refactoring code.
Workaround:
After searching for various ways to resolve, like restarting Godot and others, the error still comes up. No workaround for this. any help to mitigate this will be welcome
Steps to reproduce
extends Reference class_name MyTest
The error below for not terminating the method definition with ":", should be displayed, but it is not.
func some_function(param1: String) print(param1)