“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.
Go to Definition is not working
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
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?
I had the same issue. Deleting the index from ~/Application Support/Sublime Text 3/Index fixed the issue after the index rebuilt.
I ran into this after installing LSP/Copilot and Pieces. All I had to do was go to the Help Menu and pick “Indexing Status” and then check the “Indexing Enabled” box and that fixed it: