-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Phpactor watcher tries to index ignored files. #2600
Comments
you could try running |
I ran that but it kept running out of memory on the PHPStan cache files. After removing those the command succeeded, and I was able to use Phpactor as the LSP! Since Phpactor is PHPStan-aware it seems like it should know to ignore those temp files. Is there a way to configure that manually? |
I guess the question is why is it scanning PHPStan cache files? normally they are in |
Not sure why it's configured that way, the config pre-exists Phpactor |
It's very unusual in my experience to have the phpstan cache files in your project, I think in that case it's resonable to configure Phpactor to ignore them. |
I added the path to the |
I might have spoken to soon.
I discovered this because I am getting weird completion errors in the app (which I assume are related?):
Here's my exclusion config: "indexer.exclude_patterns": [
"\/**\/phpstan\/cache\/**\/*",
"\/**\/temp\/**\/*",
"\/vendor\/**\/Tests\/**\/*",
"\/vendor\/**\/tests\/**\/*",
"\/vendor\/composer\/**\/*"
], One possible false positive is if the |
yes I think what you suggest is indeed the issue. The include/exclude logic is currently tied to the "wrong" part of the system:
and I guess could be moved tot he "Indexer" namespace (it can likely be completely removed from the FileList as only used by the Indexer) and made into a utility function which we could then use to filter changed files from the watcher? |
edit: Original issue reported as below:
Hi! Trying to get Phpactor set up as LSP for BBEdit. It works great normally, but I'm trying to use it in a large (and somewhat messy) codebase. The
phpactor
process crashes partway through indexing with no indication of why or even what file.Phpactor: Phpactor 2024.03.09.0@92eb89603c1af3e7b55cedc34ea70945dbfaec0a
macOS: 14.3
BBEdit: 15.0.1
PHP:
BBEdit application LSP logs:
I having debug logging enabled for Phpactor but there are no log entries at the actual time of the crash. Here's a sample (note timestamps +4 hours) (some class names/files redacted for privacy):
Phpactor status:
The text was updated successfully, but these errors were encountered: