Skip to content

Vanished files aren't removed from cache #149

@joshuadwire

Description

@joshuadwire

It seems that phpDox is having trouble trying to remove a deleted file from it's index. A FileInfoException is being thrown with the message "Path xxxxxxxxx does not exist - call to realpath failed"

My composer require string is "theseer/phpdox": "0.6.*", so I believe I'm using the latest version of phpDox.

Here's the full output of phpDox:

phpDox %development% - Copyright (C) 2010 - 2014 by Arne Blankerts

[10.06.2014 - 14:20:10] Using config file './phpdox.xml'
[10.06.2014 - 14:20:10] Registered collector backend 'parser'
[10.06.2014 - 14:20:10] Registered enricher 'build'
[10.06.2014 - 14:20:10] Registered enricher 'git'
[10.06.2014 - 14:20:10] Registered enricher 'checkstyle'
[10.06.2014 - 14:20:10] Registered enricher 'pmd'
[10.06.2014 - 14:20:10] Registered enricher 'phpunit'
[10.06.2014 - 14:20:10] Registered enricher 'phploc'
[10.06.2014 - 14:20:10] Registered output engine 'xml'
[10.06.2014 - 14:20:10] Registered output engine 'html'
[10.06.2014 - 14:20:10] Starting to process project 'xxxxxxxxxxxxxxxx'
[10.06.2014 - 14:20:10] Starting collector
[10.06.2014 - 14:20:10] Scanning directory 'public' for files to process

c.cccccc....ccc                                     [15]

[10.06.2014 - 14:20:12] Saving results to directory 'build/phpdox'


Oups... phpDox encountered a problem and has terminated!

It most likely means you've found a bug, so please file a report for this
and paste the following details and the stacktrace (if given) along:

PHP Version: 5.5.12 (Linux)
PHPDox Version: %development%
Exception: TheSeer\phpDox\FileInfoException (Code: 1)
Location: /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/shared/FileInfo.php (Line 9)

Path '/var/lib/jenkins/jobs/xxxxxxxxx/workspace/public/xxxxx/Web/UI/Accounts/OAuth2AuthView.php' does not exist - call to realpath failed

#0 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/collector/project/IndexCollection.php(124): TheSeer\phpDox\FileInfo->getRelative()
#1 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/collector/project/Project.php(330): TheSeer\phpDox\Collector\IndexCollection->findUnitNodesBySrcFile()
#2 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/collector/project/Project.php(216): TheSeer\phpDox\Collector\Project->removeFileReferences()
#3 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/Application.php(131): TheSeer\phpDox\Collector\Project->cleanVanishedFiles()
#4 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/src/CLI.php(148): TheSeer\phpDox\Application->runCollector()
#5 /var/lib/jenkins/jobs/xxxxxxxxx/workspace/vendor/theseer/phpdox/composer/bin/phpdox(30): TheSeer\phpDox\CLI->run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions