You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sublime Text 4: phpactor does not recognize standards PHP functions and classes #2813
First, thank you for this amazing Phpactor which has turned my Sublime Text into a real and impressive IDE !
But as described in the title, i have an issue on a Symfony 7 project, about standard functions like implode() or array_column()and standard classes like \RuntimeException or \DateTimeImmutable: they are marked as "not found".
I am using the latest version of Sublime Text 4 (Build 4189) and the latest version of Phpactor:
$ /path/to/phpactor.phar status
Version: 2024.11.28.1
Filesystems: git, simple, composer
Working directory: /home/zempa/www/c2b-api
Config files (missing is not bad):
✘ /home/dev/.config/phpactor/phpactor.json
✘ /home/dev/.config/phpactor/phpactor.yml
✔ /home/dev/www/sf7/.phpactor.json
✘ /home/dev/www/sf7/.phpactor.yml
Diagnostics:
✔ Composer detected - Phpactor could work faster without an index
✔ Git detected - enables faster refactorings in your repository scope!
✔ XDebug is disabled. XDebug has a negative effect on performance.
I have installed the LSP plugin for Sublime Text with the following settings:
It's been a very long time since I tested with Sublime Text, but you'd probably need to "open folder" to "tell the LSP" what the project root is. Otherwise you could figure out how to send the /phpactor/debug/config command to the the LSP server from Sublime to dump the resolved configuration and see what's going on or, easier, enable logging and see if you can see any hints there.
Activity
dantleech commentedon Jan 3, 2025
It's been a very long time since I tested with Sublime Text, but you'd probably need to "open folder" to "tell the LSP" what the project root is. Otherwise you could figure out how to send the
/phpactor/debug/configcommand to the the LSP server from Sublime to dump the resolved configuration and see what's going on or, easier, enable logging and see if you can see any hints there.srbetasign commentedon Jan 3, 2025
@dantleech thank you for your answer !
I have tried to run the command "LSP: Troubleshoot server" and it appears it has found the project directory:
I am keeping on looking for a solution. I will post it there when if I find out.
srbetasign commentedon May 9, 2025
After updating phpactor to the latest version 2025.04.17.0, my issues disappear : the standards functions are now recognized as expected !
Here is my settings ($HOME/.config/sublime-text-3/Packages/User/LSP.sublime-settings):
srbetasign commentedon Nov 4, 2025
Hello, the same issue still remained on one project.
I tried to set the file .phpactor.json from another project where there were no problem.
But finally, i find out : i have cleaned the cache via
phpactor index:clean.Once the index rebuild, this issue disappears !