Skip to content

After you add a document comment and save it when using the Input Method Editor (IME), the method tooltip cannot be displayed in the dependency script #104870

Open
@DeerLuuu

Description

@DeerLuuu

Tested versions

  • Reproducible in: Godot v4.4.1.stable (49a5bc7)

System information

Godot v4.4.1.stable (49a5bc7) - Windows 11 (build 26100) - Multi-window, 1 monitor - Vulkan (Forward+) - integrated AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 31.0.12044.47003) - AMD Ryzen 7 5800H with Radeon Graphics (16 threads)

Issue description

When adding documentation comments to a method (e.g., ui_enter()) using an input method editor (IME) and saving the script, the tooltip for that method becomes completely unavailable in other scripts that call it. The issue persists until specific actions are taken to restore functionality, including: restarting the project, switching application windows, or running/stopping the scene.

Steps to reproduce

  1. Make sure to use the Input Method Editor (IME)
  2. Create a script with a method:
# File: player.gd 
func interact() -> void:
    pass 
  1. Create a dependent script that calls the method:
# File: ui_manager.gd  
func _ready() -> void:
    $Player.interact()   # Hover here initially (tooltip works)
  1. Add a documentation comment to the method and save:
# File: player.gd  (updated)
## Handles player interaction logic.
func interact() -> void:
    pass 
  1. Return to the dependent script and hover over interact().
  2. Observed: No tooltip appears, even after waiting or tab-switching.
  3. Restore functionality by:
  • Restarting the Godot project.
  • Switching OS window focus away/back.
  • Running and stopping a scene.

Minimal reproduction project (MRP)

none

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions