Skip to content

Cache doesn't work when the composer.lock is in a sub directory. #4941

@VincentLanglet

Description

@VincentLanglet

When I run

symfony/vendor/bin/psalm --error-level=8

I get the output:

Checks took 138.87 seconds and used 1,431.678MB of memory

If I run again the command, the output is

Checks took 140.04 seconds and used 1,431.678MB of memory

I tried --no-cache, I got the output

Checks took 89.93 seconds and used 758.369MB of memory

I also tried, --no-diff, I got the output

Checks took 121.00 seconds and used 1,431.675MB of memory

This is my psalm config

<psalm
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="https://getpsalm.org/schema/config"
    xsi:schemaLocation="https://getpsalm.org/schema/config symfony/vendor/vimeo/psalm/config.xsd"
    allowPhpStormGenerics="true"
    autoloader="symfony/bin/.phpunit/phpunit/vendor/autoload.php"
    cacheDirectory="cache/psalm"
    errorLevel="8"
    findUnusedPsalmSuppress="true"
    reportInfo="false"
>
    <projectFiles>
        <directory name="symfony/src"/>
        <directory name="symfony/tests"/>
        <ignoreFiles>
            <file name="symfony/src/Repository/.phpstorm.meta.php"/>
            <file name="symfony/tests/.phpstorm.meta.php"/>
            <directory name="symfony/src/Migrations"/>
            <directory name="symfony/vendor"/>
        </ignoreFiles>
    </projectFiles>
    <plugins>
        <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
        <pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin">
            <containerXml>symfony/var/cache/dev/srcAssuranceVie_KernelDevDebugContainer.xml</containerXml>
        </pluginClass>
    </plugins>
</psalm>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions