-
-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Describe the bug
After latest update php intelephense basically stopped working:
When hovering over a variable, class name or method name, instead of showing "intelligense info" - It just shows a tool tip "Loading ..." - This is on project that contains a mere 3 files (which uses 6-7 composer packages).
I have tried re-indexing the workspace but nothing seems to happen.
It just says "Activating extensions" for about 1 second in the status bar at the bottom and that text then disappears...
After the update, php intelephense also shows "php intelephense class is not imported" warning at random class or enum declaration points:
<?php
require_once('vendor/autoload.php');
use League\Plates\Engine as TemplateEngine;
use Stripe\StripeClient;
use HSK\HotReload\HotReloadOptions;
use HSK\HotReload\HotReload;
use DatabaseBackup\AbstractBackup;
use DatabaseBackup\Backup;
use DatabaseBackup\DatabaseConnection;
use DatabaseBackup\DatabaseDriver;
use DatabaseBackup\MailReceiver;
use DatabaseBackup\SmtpCredential;
use DatabaseBackup\NoSmtp;
use DatabaseBackup\Helpers\Console;
use Swoole\Coroutine;
use Swoole\Process;
use Swoole\Runtime;
use AsyncAws\SimpleS3\SimpleS3Client;
use Stripe\Webhook;
use AsyncAws\S3\S3Client;
use AsyncAws\S3\Input\PutObjectRequest;
use AsyncAws\Core\Exception\Http\ServerException; // For 4xx/5xx (e.g., 403)
use AsyncAws\Core\Exception\Http\ClientException; // For client errors
use function Swoole\Coroutine\go; // Gives warning Class 'go' is not imported ???
final class LogFileBackup extends AbstractBackup { // It shows class LogFileBackup not imported here ???
...
}
/**
* Main
* bla bla DIR Having this in a comment also produces warning: Class DIR not imported
*/
$foo = NULL; // Gives WARNING Class NULL is not imported
echo "HELLO";Expected behavior
As nothing has changed (and it worked before the automatic update of VSCode/PHP Intelephense), I expected PHP intelephense to still work...
Platform and version
Windows 11, VSCode and Intelephense version: 1.16.5
What can I try to:
- make it not complain about "class XXX is not imported"
- make the intellisense work again
?
(I tried restarting WSL also but that didn't help)