“Go to Declaration (Ctrl+F12) not working in many cases

  1. Open the file (sent in PM)
  2. Right-click on the T_SetPositionSetaX function (on line 6386) and select Go to Declaration

Expected behavior

The cursor should be pointing to line 6362 (original function):

But it’s not working on a lot of other functions.

A private message is associated with this bug report

3 Likes

After 5 days, will anyone look at this?


Hello, thank you for the bug report.

It appears that this script is sufficiently complicated that it’s tripping the Luau typechecker’s analysis timeout, which then deprives Go To Declaration of the analysis data it uses to find the declaration. We will discuss improvements to this workflow to make these timeouts more transparent and potentially offer an override.

1 Like

After more than 1 month, what is the status of this bug fix?

It’s being worked on, but I do not have a more specific update for you yet.

1 Like

Hi we’re working on a project to enable continuous updates to the type checker, this will be addressed when that feature ships. Just let us know if you have any questions, thanks again!

1 Like

In this case it looks simple but doesn’t work:

function fooA()
	fooB() -- cannot go to fooB declaration
end

function fooB()
	
end

It can’t go to functions that were declared after the call site. If I put fooB before fooA, then it works again. It’s been more than 1 year, so I’m wondering if this is still being worked on?