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

Extending a script does not update, sometimes. #77720

Closed
ghost opened this issue Jun 1, 2023 · 5 comments
Closed

Extending a script does not update, sometimes. #77720

ghost opened this issue Jun 1, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 1, 2023

Godot version

v4.0.2.stable.official [7a0977c]

System information

Windows 10 - Forward + - 2D

Issue description

When making a class (class_name) and extending from that class, it can happen that when you add new things to said class, it does not update the functions and properties. Whenever you try to use them they will cause an error and godot will also stop the game when trying to call them, saying they don't exist. This is fixed by restarting the editor.

Steps to reproduce

I am not 100% What causes this but what i have done is:

  1. Create Script with class name "XYZ"
  2. Create new Script extending from XYZ
  3. Adding something new to class XYZ
  4. Error

Does not happen every time but too often to be ignored.

Minimal reproduction project

N/A

@ghost
Copy link
Author

ghost commented Jun 1, 2023

I wanted to add that i have tried several things to fix this issue by myself so i would not have to reload the entire engine but nothing has really worked. I tried closing and reopening, saving, changing the class name then back. Nothing has really helped. Only restarting.

@Chaosus
Copy link
Member

Chaosus commented Jun 1, 2023

I can confirm this happens often. Pretty sure it was already reported, though.

@Chaosus Chaosus added this to the 4.1 milestone Jun 1, 2023
@ghost
Copy link
Author

ghost commented Jun 1, 2023

I can confirm this happens often. Pretty sure it was already reported, though.

Alright thank you. I tried searching for a similar issue but didn't find anything that seemed similar so i just thought i'd open a new report. To be fair, i didn't search very hard lol

@erick22js
Copy link

The same happened to me, I did just extended the path to script instead, and worked nicely

@YuriSizov YuriSizov modified the milestones: 4.1, 4.2 Jun 23, 2023
@YuriSizov YuriSizov modified the milestones: 4.2, 4.3 Nov 14, 2023
@dalexeev
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants