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

Properties disappear in editor's inspector #1681

Open
ivasonn opened this issue Jan 5, 2025 · 7 comments
Open

Properties disappear in editor's inspector #1681

ivasonn opened this issue Jan 5, 2025 · 7 comments

Comments

@ivasonn
Copy link

ivasonn commented Jan 5, 2025

Godot version

4.3.stable

godot-cpp version

4.3.stable

System information

MacOS, m1 pro

Issue description

Properties registered with gdextension disappear in editor's inspector on rebuild gdextension with hot reload enabled (reloadable = true). After "reload current project" they are visible again.

Steps to reproduce

  1. Register properties with gdextension
  2. Change anything in gdextension code
  3. Scons
  4. Look at inspector, registered properties disappear

Minimal reproduction project

godot-cpp-template.zip

@Ivorforce
Copy link
Contributor

I think you are experiencing the same issue as me:

godotengine/godot#96403

In short, for now this can be worked around by using dylibs instead of frameworks on macos.

@ivasonn
Copy link
Author

ivasonn commented Jan 5, 2025

@Ivorforce thanks, but it's not working for me, just tried

@Ivorforce
Copy link
Contributor

Can you pack an example project that uses dylibs that's not working for you?

@ivasonn
Copy link
Author

ivasonn commented Jan 5, 2025

if i understand correct, there is modified project with dylibs
godot-cpp-template.zip

@ivasonn
Copy link
Author

ivasonn commented Jan 6, 2025

hm, using

macos.debug = "res://./bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
macos.release = "res://./bin/macos/macos.framework/libEXTENSION-NAME.macos.template_release"

instead of

macos.debug = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
macos.release = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_release"

fixing issue, like godotengine/godot#90108 (comment) . Also, to see changes i need to unfocus and focus godot window. Is it expected behavior?

@Ivorforce
Copy link
Contributor

Ohh, good observation!
My comment was pertaining an instantaneous disappearance of properties — i.e. just clicking away from the godot editor would make the properties disappear already. I had not found a way to avoid the disappearance after a rebuild yet. Your finding has finally got me the final piece of information I was missing.

Is it expected behavior?

No, this is a bug. I hope that all these observations together are enough to finally get it fixed. I will likely have a look myself later, but if not, I'll submit a formal bug report. I hope we can get it fixed ASAP.

@ivasonn
Copy link
Author

ivasonn commented Jan 7, 2025

thanks a lot

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

No branches or pull requests

2 participants