bmewburn / vscode-intelephense

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

No symbols found in document - premium license v1.10.x - VScode 1.86.0 #2789

Closed gstesan closed 7 months ago

gstesan commented 8 months ago

Hi Ben Newburn,

thank you for the VSCode premium extension; I have been using it since January 17, 2024. Unfortunately, since yesterday, I have been encountering the error message "No symbols found in document."

The workaround I found was to revert to your version v1.10.1, install it, but after some time, the same error occurred again. I then updated to v1.10.2, reloaded it, and the symbols appeared, but once again, after a while, the same error recurred.

How can I troubleshoot this error? And what steps can I take to fix it?

My VSCode version is now 1.86.0. Thank you for any assistance.

Greetings from Munich, gstesan

![20240203-145835-Window] 20240203-114427-Window (https://github.com/bmewburn/vscode-intelephense/assets/48827509/6a3a494c-762c-4a85-905b-149273b588ce) 20240203-144841-Window 20240203-145039-Window 20240202-202617-Window

bmewburn commented 7 months ago

Are there any errors from the extension in the output tab?

gstesan commented 7 months ago

I don't know because I didn't know to look in the output tab of VSCode.

But I found the solution in /root/.vscode-server/data/logs/...intelephense.log The maximum file size was reached (so these files were not indexed). And intelephense indexed also a lot of unnecessary files like /.phpenv/versions/7.4 or /.phpenv/versions/8.0 - although the current php version used is 8.2.15. A cleanup of /.phpenv/versions/... and the following settings for intelephense helped me to get rid of the error "No symbols found in document".

"intelephense.files.maxSize": 1048576 intelephense.environment.documentRoot": "httpdocs" "intelephense.environment.phpVersion": "8.2.0"

bmewburn commented 7 months ago

Glad you got it working!