Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.10.3/4 seems to be always indexing and high CPU load (follow up on #2827) #2831

Open
timmit-nl opened this issue Mar 27, 2024 · 6 comments

Comments

@timmit-nl
Copy link

timmit-nl commented Mar 27, 2024

Describe the bug
Since the update today, to 1.10.3 (and 1.10.4), I keep seeing "intelephense 1.10.3(or 4) indexing ..." in the status bar, non-stop.
Also the process is high in CPU and is slowing down everything.

Notes:

  • I restarted VS Code before raising this issue.
  • Downgrading to the previous version seems to fix this issue. (1.10.2)
  • I'm using the paid version (in case that makes any difference!)

We have in total 12789 .php files that are indexed (I think because of the output of: find . -type f|grep "\.php"|wc -l)

Our config is:

	"intelephense.completion.maxItems": 5,
	"intelephense.files.exclude": [
		"**/.git/**",
		"**/.svn/**",
		"**/.hg/**",
		"**/CVS/**",
		"**/.DS_Store/**",
		"**/node_modules/**",
		"**/bower_components/**",
		"**/.gitlab/**",
		"**/.vscode/**",
		"**/public/download/**",
		"**/error/**",
		"**/public/default/**"
	],
	"intelephense.maxMemory": 256,
	"intelephense.rename.exclude": [
		"**/download/**",
		"**/error/**"
	],
	"intelephense.environment.includePaths": [
		"**/vendor/gull/**",
		"**/vendor/timmit/**",
		"**/app/**",
		"**/src/**"
	],

Expected behavior
None of above

Screenshots
See issue #2827

Platform and version
1.10.3/1.10.4 on windows 10/linux mint/MacOS and Cloudlinux 7/8 (trough remote ssh)

@harrybawsac
Copy link

harrybawsac commented Mar 27, 2024

I have the same thing going on and eventually gives this error:

image

Already uninstalled and re-installed the plugin.

Also happens when downgrading to 1.10.2 for example.

@timmit-nl
Copy link
Author

timmit-nl commented Mar 27, 2024

Ok I maybe found an issue:

It looks like 1.10.4(and .3) has 2x the memory usage as 1.10.2.

I have increased:

"intelephense.maxMemory": 256,

to

"intelephense.maxMemory": 512,

and now it is finishing and the load has dropped. I am still investigating with other projects if this is the magic config var for this problem.

@harrybawsac
Copy link

Sadly even upgrading this number to 2048 did nothing for me.

@bmewburn
Copy link
Owner

@harrybawsac are you using typo3? If so there's a known issue. Other things to check are if there are symbolic links causing excessive files to be indexed.

@harrybawsac
Copy link

@harrybawsac are you using typo3? If so there's a known issue. Other things to check are if there are symbolic links causing excessive files to be indexed.

I'm not using typo3.

I'll check for these symbolic links, but how?

@joostdebruijn
Copy link

I'm experiencing the same problem. After a rollback to 1.10.2 everything is working fine again. Is there something I can provide for troubleshooting? Running VS Code on Windows 11 connected with a remote running Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants