
Hello. I have some problem with the intelephense extension. Last time before upgrade to a new one, the autocomplete work perfectly normal and fast, but for sometimes now it's slow and never complete, the memory just jump, but never complete the autocomplete. The indexing I complete though, and no error occurred. I also tried to clean the extension directory but no luck anyway, and still no auto complete found.
The log
[Trace - 10:35:32] Sending request 'initialize - (0)'.
[Trace - 10:35:54] Received notification 'window/logMessage'.
[Info - 10:35:54] Initialising
[Trace - 10:35:54] Received notification 'window/logMessage'.
[Info - 10:35:54] Reading state from c:\Users\Ben\AppData\Roaming\Code\User\workspaceStorage\c416d7e0906db9d08576f696d5cabac0\bmewburn.vscode-intelephense-client\4c9fca7c.
[Trace - 10:35:55] Received notification 'window/logMessage'.
[Info - 10:35:55] Initialised in 1497 ms
[Trace - 10:35:55] Received response 'initialize - (0)' in 23517ms.
[Trace - 10:35:55] Sending notification 'initialized'.
[Trace - 10:35:55] Sending notification 'textDocument/didOpen'.
[Info - 10:35:55] Intelephense 1.0.3
[Trace - 10:35:55] Received request 'client/registerCapability - (0)'.
[Trace - 10:35:55] Sending response 'client/registerCapability - (0)'. Processing request took 0ms
[Trace - 10:35:55] Received request 'workspace/configuration - (1)'.
[Trace - 10:35:55] Sending response 'workspace/configuration - (1)'. Processing request took 0ms
[Trace - 10:35:55] Sending request 'textDocument/documentSymbol - (1)'.
[Trace - 10:35:55] Sending request 'textDocument/completion - (2)'.
[Trace - 10:35:56] Sending notification 'textDocument/didChange'.
[Trace - 10:35:56] Sending notification '$/cancelRequest'.
[Trace - 10:35:56] Sending request 'textDocument/completion - (3)'.
[Trace - 10:35:56] Sending notification '$/cancelRequest'.
[Trace - 10:35:56] Sending request 'textDocument/documentSymbol - (4)'.
[Trace - 10:35:57] Sending notification 'textDocument/didChange'.
[Trace - 10:35:57] Sending notification '$/cancelRequest'.
[Trace - 10:35:58] Sending notification '$/cancelRequest'.
[Trace - 10:35:58] Sending request 'textDocument/documentSymbol - (5)'.
[Trace - 10:35:58] Sending notification 'textDocument/didChange'.
[Trace - 10:35:58] Sending request 'textDocument/completion - (6)'.
[Trace - 10:35:58] Sending notification '$/cancelRequest'.
[Trace - 10:35:58] Sending request 'textDocument/completion - (7)'.
[Trace - 10:35:59] Sending notification '$/cancelRequest'.
[Trace - 10:35:59] Sending request 'textDocument/documentSymbol - (8)'.
[Trace - 10:36:05] Sending notification '$/cancelRequest'.
[Trace - 10:36:05] Sending request 'textDocument/completion - (9)'.
[Trace - 10:36:09] Sending notification '$/cancelRequest'.
[Trace - 10:36:15] Sending request 'textDocument/hover - (10)'.
[Trace - 10:36:15] Sending notification '$/cancelRequest'.
[Trace - 10:36:17] Sending request 'textDocument/completion - (11)'.
[Trace - 10:36:31] Sending notification '$/cancelRequest'.
[Trace - 10:36:31] Sending notification 'textDocument/didChange'.
[Trace - 10:36:31] Sending request 'textDocument/completion - (12)'.
[Trace - 10:36:31] Sending notification 'textDocument/didChange'.
[Trace - 10:36:31] Sending notification 'textDocument/didChange'.
[Trace - 10:36:32] Sending notification 'textDocument/didChange'.
[Trace - 10:36:32] Sending notification '$/cancelRequest'.
[Trace - 10:36:32] Sending request 'textDocument/documentSymbol - (13)'.
[Trace - 10:36:32] Sending notification '$/cancelRequest'.
[Trace - 10:36:32] Sending request 'textDocument/completion - (14)'.
[Trace - 10:37:40] Sending notification '$/cancelRequest'.
[Trace - 10:37:57] Sending request 'textDocument/hover - (15)'.
[Trace - 10:37:57] Sending notification '$/cancelRequest'.
[Trace - 10:37:58] Sending request 'textDocument/documentHighlight - (16)'.
[Trace - 10:37:58] Sending request 'textDocument/definition - (17)'.
[Trace - 10:37:58] Sending request 'textDocument/hover - (18)'.
[Trace - 10:37:58] Sending notification '$/cancelRequest'.
[Trace - 10:37:58] Sending request 'textDocument/completion - (19)'.
[Trace - 10:38:10] Sending notification '$/cancelRequest'.
[Trace - 10:38:13] Sending notification '$/cancelRequest'.
[Trace - 10:38:13] Sending request 'textDocument/documentHighlight - (20)'.
[Trace - 10:38:15] Sending request 'textDocument/completion - (21)'.
[Trace - 10:38:22] Sending notification '$/cancelRequest'.
[Trace - 10:38:22] Sending notification '$/cancelRequest'.
[Trace - 10:38:22] Sending notification 'textDocument/didChange'.
[Trace - 10:38:22] Sending request 'textDocument/completion - (22)'.
[Trace - 10:38:23] Sending notification 'textDocument/didChange'.
[Trace - 10:38:23] Sending notification 'textDocument/didChange'.
[Trace - 10:38:23] Sending notification 'textDocument/didChange'.
[Trace - 10:38:23] Sending notification '$/cancelRequest'.
[Trace - 10:38:23] Sending request 'textDocument/documentSymbol - (23)'.
[Trace - 10:38:23] Sending notification '$/cancelRequest'.
[Trace - 10:38:23] Sending request 'textDocument/completion - (24)'.
[Trace - 10:39:34] Sending notification '$/cancelRequest'.
[Trace - 10:39:39] Sending request 'textDocument/hover - (25)'.
The intelephense electron

Anyway it's a https://github.com/Dolibarr/dolibarr/ project and before I upgrade to this version, it's working perfectly without problem, just after update this happen. There's no option to downgrade anyway on VS Code.
Confirming about old version, the old version also isn't not working, It stuck when I start using "this " shorthand on an class, seems it's broken on the class, I don't know, other than that it's working well(for functional programming working as intended).
Can you humbly check to the problem ? Thanks

Drop your version back to 0.8.8, this problem occures in all v1 versions.
Drop your version back to 0.8.8, this problem occures in all v1 versions.
Okay. Seems It's the only way. I will revert. So sad leaving new feature :'(
Wow really working on 0.88. Strange one. Is there any known bugs happen?

Same problem on Ubuntu, it seems that some requests "loop" forever.
This become problematic very quickly as more and more request are stuck and thus increase the CPU usage :

Switched to 0.88 and it seems to work fine, thanks.
I have a fix for this coming. Some code with lots of script scoped variables, include scripts and globals can cause the compiler to get stuck in a lengthy recursive type inference routine. For example in the framework above $conf is declared in 3 files, $db declared in 8 or so files etc. Using require or include calls to narrow this down to the desired declaration is unreliable because it's done at runtime in php.
if($someInput) {
require 'foo.php';
}
So instead I've limited it in that if more than 1 of the same script/global variable is found then the type will not be inferred and you have to rely on phpdoc to type hint eg
/** @global Foo $foo */ //or
/** @var Foo $foo */
I have a fix for this coming. Some code with lots of script scoped variables, include scripts and globals can cause the compiler to get stuck in a lengthy recursive type inference routine. For example in the framework above $conf is declared in 3 files, $db declared in 8 or so files etc. Using require or include calls to narrow this down to the desired declaration is unreliable because it's done at runtime in php.
if($someInput) {
require 'foo.php';
}So instead I've limited it in that if more than 1 of the same script/global variable is found then the type will not be inferred and you have to rely on phpdoc to type hint eg
/* @global Foo $foo */ //or
/* @var Foo $foo */
Thanks for clarifying. Waiting for 1.0.4. Thanks for creating such great tools for developer like us!
So instead I've limited it in that if more than 1 of the same script/global variable is found then the type will not be inferred and you have to rely on phpdoc to type hint eg
/* @global Foo $foo */ //or
/* @var Foo $foo */
Ben I want to ask, Is this PHP Doc standard?