-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Project Not Indexing #38
Comments
I'm not able to reproduce the issue. I created a fresh laravel project and it indexed around 4400 files. When editing the user model go to def, symbol search, completions all worked. Note that the extension will only index files in the open folder/workspace (and descendant folders). When a workspace has been previously indexed then only those files that have been modified outside of a vscode session will be reindexed. This is why it will quite often show 0 files indexed when reopening. |
I had a similar issue, turned out I had "files.associations": {
"*.inc": "php"
} And it was indexing only the @bmewburn - is it correct that Anyway, can confirm either removing the I wonder @calebporzio, does this solve your issue too? |
@zorfling that's correct. It will use the php file association values when finding files and default to |
Boom! fixed! thanks @zorfling. I had my file associations set for
Everything is indexing fine now, thanks! |
Next release I'll include |
Thanks @bmewburn On further reading it seems like that might be how VS Code docs don't seem to suggest you need to add Anyway, thanks very much! Loving Intelephense now it's indexing 👍 |
The solution provided in the above comments was not working for me. I have to add the following settings in settings.json "intelephense.files.associations": ["*.php", "*.phtml", "*.inc", "*.module", "*.install", "*.theme", ".engine", ".profile", ".info", ".test"] |
All the day trying to figure out why this morning Intelephense was not indexing all my files. Last week it was working fine. |
As of now only the solution provided by @msankhala works! |
@bmewburn |
@ctf0 it's now |
@bmewburn using the command doesnt force the reindex "the ext output remains the same", i think this is related to the smart indexing that u mentioned earlier. |
@ctf0 what is the issue you are trying to solve? The command above will start the workspace indexing and overwrite the cache. |
sometimes i can ctrl+click or get autocomplete for traits & the output i get always remains
so i thought using the command will clear all and give a different output |
The file count is just the number of files that needed to be indexed outside of what has already been indexed previously, not necessarily all files in the workspace. If it's not picking up all your files then make sure you have all the php file extensions that you use listed in the |
which is definitely incorrect. if there is something i can offer to help debug, plz do tell |
I think it's best to open a new issue. Please add a code example and describe the actual problem. |
It seems intelephense is only indexing ~20 files, or in many cases 0 files for my php projects. Auto complete, symbol search, and goto definition seem to now work until I open a file, then it gets indexed and works well.
You can find my verbose output log HERE
The text was updated successfully, but these errors were encountered: