Skip to content

Documentation generated by GDScript documentation comments disappears #72406

@eh-jogos

Description

@eh-jogos

Godot version

4.0 beta16

System information

Manjaro Linux using i3, Foward+

Issue description

Lets's say you have a script using documentation comments, it will have it's own Documentation page generated in the editor.
image

If you close the editor, then open the editor again, work on another, unrelated script and save it, close the editor and open it again, the documentation page for your first script will be gone.
image

Searching for it will also give no results:
image

Then to get the documentation generated again, you have to open the first script, make some change to it and save it. The old trick of commenting/uncommenting any line and saving also works.

Steps to reproduce

  • Create any documentation comments for any script
  • Open its documentation
  • Close the project and open again
  • Do some change to any other script and save
  • Close the project and open again
  • The generated documentation for your first script will be gone, and if your search help for it it will have disappeared.

Minimal reproduction project

gdscript_documentation_comments.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions