Open some0ne2 opened 2 years ago
I'm not sure if this is part of it, but I'd guess so. Since a few days, every class of my composer packages are marked red. "undefined type PackageName\Class intelephense 1009"
Packages of course are installed and they work but intelephense doesn't recognize them.
I have the same issue, my vendor folder isn't getting indexed. :(
Edit: Found a temporary workaround:
I found out that my main vendor folder wasn't being displayed in my workspace sidebar. Another project where indexing still works does show the vendor folder but grayed out. When I manually added 'vendor' to the include paths. The vendor folder is located the same level where my workspace lives. the indexing process ran again and the references where working again.
I'm not sure if this is part of it, but I'd guess so. Since a few days, every class of my composer packages are marked red. "undefined type PackageName\Class intelephense 1009"
Packages of course are installed and they work but intelephense doesn't recognize them.
Hi, I refer to this VsCode composer psr-4 autoload of external libraries does not perform code completion and it works!
This is my solution.
Set intelephense.environment.includePaths
Execute intelephense: Index Workspace
For those who would like indexing from a folder that is not in your working folder, just add that folder to the includedPaths:
@KeremArdicli Thank you so much, I was struggling with this problem for months
Intelephense is not indexing any files inside my project.
Output from
intelephense
window:Files are normal
.php
ending files (laravel project). What I tried already:Intelephense Cancel indexing
Intelephense Index workspace
Thanks for any help on how to debug further!