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
First, thank you for this amazing plugin which has turned my Sublime Text into a real and impressive IDE !
Bug description
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".
This error is triggered if I use \DateTimeImmutable or if I add the use statement use DateTimeImmutable;.
Configuration & settings
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/dev/www/sf7
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:
LSP: enabled configs: phpactor
LSP: disabled configs: erlang-ls, ocaml, polymer-ide, ruby, sorbet
LSP: starting ['/home/dev/bin/phpactor.phar', 'language-server'] in /home/dev/www/sf7
LSP: phpactor: Supported execute commands: ['name_import', 'transform', 'create_class', 'generate_member', 'extract_method', 'replace_qualifier_with_import', 'extract_constant', 'generate_accessors', 'generate_mutators', 'import_all_unresolved_names', 'extract_expression', 'generate_decorator', 'override_method']
LSP: phpactor: supported code action kinds: ['refactor.class.simplify', 'quickfix.import_class', 'quickfix.override_method', 'quickfix.promote_constructor', 'quickfix.promote_constructor_public', 'quickfix.complete_constructor', 'quickfix.complete_constructor_public', 'quickfix.add_missing_class_generic', 'quickfix.create_class', 'quickfix.create_unresolable_class', 'quickfix.correct_variable_name', 'quickfix.add_missing_properties', 'quickfix.implement_contracts', 'quickfix.fix_namespace_class_name', 'quickfix.add_missing_docblocks_return', 'quickfix.add_missing_params', 'quickfix.add_missing_return_types', 'quickfix.remove_unused_imports', 'quickfix.generate_member', 'refactor.extract.method', 'refactor.extract.constant', 'quickfix.generate_accessors', 'quickfix.generate_mutators', 'refactor.extract.expression', 'quickfix.fill.object', 'quickfix.fill.matchArms', 'refactor', 'quickfix.generate_decorator']
Package Control: Skipping automatic upgrade, last run at 2025-01-03 09:21:35, next run at 2025-01-03 17:21:35 or after
Test Phpactor in command line
When, i run Phpactor in command line on a PHP file with the "Not found" errors, no one is displayed:
$ /path/to/phpactor.phar worse:analyse src/Classes/MyPhpClass.php
Analysing files...
0 [->--------------------------]
0 problems in 0.0126 seconds with 21,682,448b memory
This is the expected behavior.
Partial conclusion
As Phpactor runs as expected in command line, it leads to think the issue should be in the configuration/settings files.
I am aware for any advice or solution.
Thank you.
Best regards.
Sam.
The text was updated successfully, but these errors were encountered:
srbetasign
changed the title
Sublime Text 4 : phpactor does not recognize standards PHP functions and classes
Sublime Text 4 - PHP : phpactor does not recognize standards PHP functions and classes
Jan 3, 2025
Hello,
Happy new year !!!
First, thank you for this amazing plugin which has turned my Sublime Text into a real and impressive IDE !
Bug description
I have an issue on a Symfony 7 project, about standard functions like
implode()
orarray_column()
and standard classes like\RuntimeException
or\DateTimeImmutable
: they are marked as "not found".This error is triggered if I use
\DateTimeImmutable
or if I add theuse
statementuse DateTimeImmutable;
.Configuration & settings
I am using the latest version of Sublime Text 4 (Build 4189) and the latest version of Phpactor:
I have installed the LSP plugin for Sublime Text with the following settings:
And here is the .phpactor.json configuration file:
Troubleshooting: phpactor
Version
Server Test Run
Server Configuration
Active view
Project / Workspace
[ "/home/dev/www/sf7" ]
LSP configuration
Log Panel
Log console
Test Phpactor in command line
When, i run Phpactor in command line on a PHP file with the "Not found" errors, no one is displayed:
This is the expected behavior.
Partial conclusion
As Phpactor runs as expected in command line, it leads to think the issue should be in the configuration/settings files.
I am aware for any advice or solution.
Thank you.
Best regards.
Sam.
The text was updated successfully, but these errors were encountered: