bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.61k stars 94 forks source link

1.10.3 seems to be always indexing #2827

Closed ghnp5 closed 6 months ago

ghnp5 commented 6 months ago

Since the update today, to 1.10.3, I keep seeing "intelephense 1.10.3 indexing ..." in the status bar, non-stop.

Using Windows 11.

The logs appear to say the indexing ended, though.

[Info - 11:47:24 PM] Initialising intelephense 1.10.3 [Info - 11:47:24 PM] Reading state from c:\Users\xxxxx\AppData\Roaming\Code\User\workspaceStorage\e325b08053b70b851469f25294102f7f\bmewburn.vscode-intelephense-client\31d289cf. [Info - 11:47:28 PM] Intelephense premium features enabled. [Info - 11:47:28 PM] Initialised in 3637 ms [Info - 11:47:28 PM] Searching file:///c%3A/Users/xxxxx/.vscode/extensions/bmewburn.vscode-intelephense-client-1.10.3/node_modules/intelephense/lib/stub for files to index. [Info - 11:47:28 PM] Searching file:///f%3A/Files/Git/repo1 for files to index. [Info - 11:47:31 PM] Searching file:///f%3A/Files/Git/repo2 for files to index. [Info - 11:47:33 PM] Searching file:///f%3A/Files/Git/repo3 for files to index. [Info - 11:47:34 PM] Indexing started. [Info - 11:50:03 PM] Indexing ended. 149905 files indexed in 148s. [Info - 11:50:03 PM] Writing state to c:\Users\xxxxx\AppData\Roaming\Code\User\workspaceStorage\e325b08053b70b851469f25294102f7f\bmewburn.vscode-intelephense-client\31d289cf. [Info - 11:50:10 PM] Wrote state in 7.2s.

But still seeing this:

image

Looking at the logs,
earlier today, it seems the indexing took 15 minutes!

[Info - 11:25:29 PM] Indexing started. [Info - 11:40:13 PM] Indexing ended. 200016 files indexed in 884s.


Notes:

bmewburn commented 6 months ago

Is your workspace that big? 200k files is close to the upper limit that the extension supports. Do you get the same issue with smaller workspaces?

ghnp5 commented 6 months ago

Thank you.

Most of those files are Composer packages files, under "vendor". I let Intelephense index them, so their APIs can auto-complete and show documentation. (I don't have many packages installed)

My project only has 1188 php files.

--

I've just tested on a workspace with 672 files, and it completed in 0.3s, using version 1.10.3.

ghnp5 commented 6 months ago

2828 was also happening to me, I noticed. But didn't seem to happen when I had raised this Issue.

I updated to 1.10.4, and it worked fine:

[Info - 1:54:56 AM] Indexing started. [Info - 1:58:31 AM] Indexing ended. 200016 files indexed in 215s. [Info - 1:58:31 AM] Writing state to c:\Users\xxxxx\AppData\Roaming\Code\User\workspaceStorage\e325b08053b70b851469f25294102f7f\bmewburn.vscode-intelephense-client\6c399aaa. [Info - 1:58:39 AM] Wrote state in 7.8s.

I'm not sure why the logs that I pasted here, in my original message above, had a smaller number of files:

[Info - 11:50:03 PM] Indexing ended. 149905 files indexed in 148s.

I'll continue to monitor.

bmewburn commented 6 months ago

Great! I'll close this ticket for now as it is now working for you.