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 have a large codebase, over 4000 files. I am unable to init or scan the entire codebase and have had to break the Psalm scans into two batches. When I try to init or scan everything at once it always crashes. Usually something like this.
This is with Psalm 5.26.1.
Here is an init attempt of my PHP directory.
$ vendor-composer/bin/psalm --init myphpdir
Calculating best config level based on project files
Target PHP version: X.X (inferred from composer.json).
Scanning files...
Analyzing files...
Uncaught Exception: RuntimeException PHP Error: Undefined index: METRIC_STATUS in /Users/me/myapp/vendor-composer/vimeo/psalm/src/Psalm/Internal/Analyzer/Statements/Expression/ClassConstAnalyzer.php:720 for command with CLI args "vendor-composer/bin/psalm --init myphpdir"
And If I create a psalm.xml with ./myphpdir in it and run psalm I get something like this....
Hey @MattMencel, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
Not without uploading the entire codebase. 😁
I tried just the MetricRelationsCache.php file in psalm.dev, but it worked fine. I only get these crashes if I init or scan all 4000 files at once.
Hi,
I have a large codebase, over 4000 files. I am unable to init or scan the entire codebase and have had to break the Psalm scans into two batches. When I try to init or scan everything at once it always crashes. Usually something like this.
This is with Psalm 5.26.1.
Here is an init attempt of my PHP directory.
And If I create a psalm.xml with
./myphpdir
in it and run psalm I get something like this....The text was updated successfully, but these errors were encountered: