Skip to content
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

Functions from Autoloaded scripts coming up as not declared in current scope #681

Open
DrTurtlebot opened this issue Jul 11, 2024 · 0 comments
Labels

Comments

@DrTurtlebot
Copy link

DrTurtlebot commented Jul 11, 2024

Godot version

4.2.2 Stable

VS Code version

1.91.0

Godot Tools VS Code extension version

2.0.0

System information

Windows 11

Issue description

The linter is detecting that autoloaded functions etc, are not being declared in the current scope, whilst in godot these issues are not present. The builds still work and operate correctly. In the image provided you can see its detecting that the Global.gd file exists, and what the function does, however it says it is not declared in the scope.

Screenshot 2024-07-11 213946

I am hoping this is actually a bug and not just me making a mistake, but I looked through other peoples godot projects in VS code to verify and it also saying the same issues.

Steps to reproduce

  1. Create a godot project
  2. Create a autoloaded script, eg Global.gd
  3. Try to call a function within that script from another script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant