Skip to content
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 not found #166

Closed
guckykv opened this issue Oct 6, 2014 · 1 comment
Closed

TokenFileException - file not found #166

guckykv opened this issue Oct 6, 2014 · 1 comment

Comments

@guckykv
Copy link

guckykv commented Oct 6, 2014

Problem running phpdox in jenkins environment.

PHP Version: 5.4.32-1~dotdeb.1 (Linux)
PHPDox Version: %development%
Exception: TheSeer\phpDox\Generator\TokenFileException (Code: 1)
Location: .../vendor/theseer/phpdox/src/generator/project/TokenFile.php (Line 19)
File '/var/lib/jenkins/jobs/4-Master%20Calvin%20QA-Tools%20Check/workspace/xxx/build/phpdox/xml/tokens/xxx/yyy/Exceptions/SpellCheckEngineMisconfiguredException.php.xml' not found
#0 /var/lib/jenkins/jobs/4-Master Calvin QA-Tools Check/workspace/calvin/vendor/theseer/phpdox/src/generator/Generator.php(153): TheSeer\phpDox\Generator\TokenFileIterator->current()
#1 /var/lib/jenkins/jobs/4-Master Calvin QA-Tools Check/workspace/calvin/vendor/theseer/phpdox/src/generator/Generator.php(146): TheSeer\phpDox\Generator\Generator->processTokenFiles()
#2 /var/lib/jenkins/jobs/4-Master Calvin QA-Tools Check/workspace/calvin/vendor/theseer/phpdox/src/Application.php(238): TheSeer\phpDox\Generator\Generator->run()
#3 /var/lib/jenkins/jobs/4-Master Calvin QA-Tools Check/workspace/calvin/vendor/theseer/phpdox/src/CLI.php(152): TheSeer\phpDox\Application->runGenerator()
#4 /var/lib/jenkins/jobs/4-Master Calvin QA-Tools Check/workspace/calvin/vendor/theseer/phpdox/composer/bin/phpdox(30): TheSeer\phpDox\CLI->run()

The file exists - but path with spaces, not with %20.

Is it possible, that the error has something to do with spaces in the path - or with the path length? (total path and file length 181 characters / spaces in the output shown as %20 /var/lib/jenkins/jobs/4-Master%20Calvin%20QA-Tools%20Check/workspace ...)

It works for me in an "normal" build environment (no spaces in path), but fails in jenkins environment (longer path and spaces in the name of the job). Regardless of starting it directly from jenkins of from bash logged in as jenkins and cd in the workspace directory of the job.

But strange, that it failes quite "late" - if the spaces should be the problem...

@guckykv guckykv mentioned this issue Oct 6, 2014
@theseer
Copy link
Owner

theseer commented Oct 6, 2014

Duplicate of #164

@theseer theseer closed this as completed Oct 6, 2014
theseer added a commit that referenced this issue Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants