Sublime Forum

Go to Definition is not working

#1

“Go to definition” functionality is not working with PHP.
I have tried different versions. This is stopped working on Sublime 3176.
When a file opens in nearby tab this is working but it’s not working is as it has to be.

0 Likes

#2

this would indicate that the folder is not open in ST, so it doesn’t index it - try to open the folder in which the functions reside, i.e. using the Project menu -> Add folder to project

note that somebody else said the same thing recently

nothing has changed with the PHP indexing rules for 2 years. Can you post a snippet of code (i.e. two files, one defining a function and one referencing it) that doesn’t work, to help us investigate please? Maybe the syntax definition is scoping some things differently so it’s no longer included in the index

1 Like

#3

I have done as you said but still that is not working.

0 Likes

#4

Have you tried a freshly installed state to see if any third-party packages are affecting the indexing? What is the content of the Help > Indexing Status window?

0 Likes

#5

I had the same issue. Deleting the index from ~/Application Support/Sublime Text 3/Index fixed the issue after the index rebuilt.

1 Like