
According to the official docs, I should be able to add the script categories for the export variables with this example code:

And the script groups with this example code:

However, it doesn't seem to work for me. No matter what I tried, no category or group showed up in the inspector tab at all.
I'm not sure whether this is a bug. Sometimes, I got this error and I can't add any node to the Visual Script's editor at all unless I restart the engine:

I attached the reproduction project file in this post.
I can report a bug but I want to make sure first that it's not my fault. I am rather new to Godot.
Please help. Thanks. B)