LSP does not recognize the return type of Scene Graph components' events

Summary

When referencing any of the events in the scene graph components, the return type is $unknown. This leads to visual errors regarding the type mismatch under specific circumstances. This does not affect the build of the project.

Here is the case under which I have found this issue:
I have created a custom (Event:event(t) where t : type).Subscribe(Callback(:t):void) for UMG events. After trying to subscribe to a basic_interactable_component’s SucceededEvent, which is a listenable(agent) type, the LSP has given me an error “This variable expects to be initialized with a value of type cancelable, but this initializer is an incompatible value of type event_subscription.”

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

(The example code is in the screenshot attached)

  1. Create a custom Subscribe function
  2. Create a basic_interactable_component subclass
  3. Try subscribing to its SucceededEvent

Expected Result

The LSP must define the SucceededEvent as listenable(agent)

Observed Result

The LSP marks the subscription as an error, while hovering over the SucceededEvent shows that it returns $unknown. Building the project does not raise any errors.

Platform(s)

Windows

Upload an image

Additional Notes

While the bug report only dives into the basic_interactable_component, this issue affects other components as well.

FORT-1123963 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.