You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to exclude some directories from indexing.
For example I have _docker-infrastructure directory that I don't want to index at all. And all its sub-directories too. Because I don't have permissions in some files inside, but that is another story.
Inside my project I have the .phpactor.json file
Unfortunately, it doesn't work. I still got the error when lsp starts.
LSP[phpactor] Error in service "indexer" "Phpactor\Extension\LanguageServerIndexer\Handler\IndexerHandler:Phpactor\LanguageServer\
Core\Service\{closure}": RecursiveDirectoryIterator::__construct(/home/myname/backend/_docker-infrastructure/do
cker/.data/postgres): Failed to open directory: Permission denied
I am not experienced with glob and it might be the wrong glob pattern.
Activity
KasparRosin commentedon May 11, 2022
I think you need to have it like this, to exclude the files recursively inside _docker-infrastructure
"\/_docker-infrastructure\/**\/*"infectos commentedon May 11, 2022
It doesn't work too
GH-1569: Ignore exceptions when traversing the file tree
GH-1569: Ignore exceptions when traversing the file tree
dantleech commentedon May 12, 2022
the filtering happens after accessing the file, i've updated to ignore these errors in #1576 should be fine ...
GH-1569: Ignore exceptions when traversing the file tree
GH-1569: Ignore exceptions when traversing the file tree (#1576)