Skip to content

Script classes are not added to documentation initially upon opening the project #103040

@Nintorch

Description

@Nintorch

Tested versions

  • Reproducible in v4.4.beta4.official [93d2706], v4.3.stable.official [77dcf97], v4.1.3.stable.official [f06b6836a]

System information

Godot v4.4.beta4 - Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Forward+) - integrated AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 31.0.12018.5) - AMD Ryzen 5 5500U with Radeon Graphics (12 threads)

Issue description

In newer versions of Godot when you open your project the script classes are not automatically registered in the documentation.

Image

This results in issues like this when in 4.4 beta 4 you want to hover on a method from a custom class to find what it does but instead it shows nothing useful:

Image
A screenshot to show that the method exists:
Image

Image
A screenshot to show that the method and a documentation comment for it exist:
Image

But the moment the script is edited and saved, the issue for this specific script is gone:
Image

Image

Steps to reproduce

  1. Create a project (or open the MRP)
  2. Create a script, add class_name to it (or use "new_script.gd" in MRP, change it a bit and save it)
  3. Notice that it exists in the documentation when you click on "Search Help"
  4. Exit Godot
  5. Delete .godot folder in the project
  6. Open the project
  7. Reload the project
  8. Notice that now the class doesn't exist in the documentation

Minimal reproduction project (MRP)

BugCheck.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions