-
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
TokenFileException: File '/var/lib/jenkins/workspace/xxx/build/phpdox/tokens/Namspace/Class.php.xml' not found #164
Comments
I'm a bit lost as to why this can happen but since with #165 there's a second report with exactly the same problem I'm beyond assuming it's an isolated problem on your machine. The exception is thrown after a failing file_exists() check. Since the file is (probably) created within the same run of phpDox, the only thing I can come up with right now is a statcache problem. I thus implemented a clear call with commit 409a0e6. Would it be possible for you to verify if that fixes the problem? |
I tried again with the latest and the problem still happens: [exec] Oups... phpDox encountered a problem and has terminated! [exec] [exec] It most likely means you've found a bug, so please file a report for this [exec] and paste the following details and the stacktrace (if given) along: [exec] [exec] PHP Version: 5.6.0 (Darwin) [exec] PHPDox Version: 0.7.0-16-g39fdd5c-dirty [exec] Exception: TheSeer\phpDox\Generator\TokenFileException (Code: 1) [exec] Location: /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/src/generator/project/TokenFile.php (Line 19) [exec] [exec] File '/Users/Shared/Jenkins/Home/workspace/XXXX%20branches/build/phpdox/tokens/AccountServices/autoload_classmap.php.xml' not found [exec] [exec] #0 /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/src/generator/Generator.php(153): TheSeer\phpDox\Generator\TokenFileIterator->current() [exec] #1 /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/src/generator/Generator.php(146): TheSeer\phpDox\Generator\Generator->processTokenFiles() [exec] #2 /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/src/Application.php(238): TheSeer\phpDox\Generator\Generator->run() [exec] #3 /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/src/CLI.php(152): TheSeer\phpDox\Application->runGenerator() [exec] #4 /Users/Shared/Jenkins/Home/workspace/XXXX branches/vendor/theseer/phpdox/composer/bin/phpdox(30): TheSeer\phpDox\CLI->run() The file that it is complaining about does exist. |
Note from #160: Same as here the path contains spaces. While i couldn't reproduce the issue on my system yet, this looks suspicious (%20 ./. actual space)... I'll investigate some more. |
@puffinofdoom Can you confirm your (unmodified) path contains spaces as well? |
I can confirm that the path does contain spaces. On 6 October 2014 14:50, Arne Blankerts [email protected] wrote:
|
@theseer The latest (phpDox 0.7.0-18-g20d0bf4-dirty - Copyright (C) 2010 - 2014 by Arne Blankerts) was successful in producing docs with no error with the rest of the setup being the same. As an odd side note, each time I've done a composer update to get the new version of phpdox, I receive an error indicating that vendor/bin/phpdox has changes that are not committed. I've worked around it be blowing away the vendor directory and doing composer install, or blowing away the workspace in jenkins. I have not modified the phpdox code (or anything in vendor) in any way though. |
@theseer: Yup - current version fixes my jenkins problem too. Everything fine now!
One minor thing:
The version number is lost - I install phpdox via composer.json of a symfony2 project. |
@dstockto Can you open a new issue for the composer issue? |
@guckykv Thanks for reminding me - I already noticed that the version info gets garbled in composer installs and planned to fix that. I personally don't use composer for tools but their respective phar. |
I consider this issue fixed and thus close the ticket. |
Running phpdox 0.7.0 as part of a Jenkins build and got the following error:
I can verify that the Namspace/Class.php.xml file is in the location indicated in the above stacktrace, and the permissions appear to be correct.
Can you help?
The text was updated successfully, but these errors were encountered: