godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.6k stars 170 forks source link

Identifier xxx not declared in the current scope error shows when using the registered class in GDExtensions. #718

Closed 949886 closed 2 months ago

949886 commented 2 months ago

Godot version

4.3.stable

VS Code version

1.92.1

Godot Tools VS Code extension version

2.1.0

System information

win11

Issue description

No error shows in Godot internal editor and the project works fine. These errors only show in vscode.

image image image

Steps to reproduce

  1. Clone sand-slide project
  2. Build with scons as README shows.
  3. Open the game project and use vscode, errors will appear.
DaelonSuzuka commented 2 months ago

This extension has no control over that. The errors are provided by the Language Server, which is a component of the Godot Engine itself.