-
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
phpdox breaks on windows #144
Comments
Can you verify if this actually a duplicate of #112 or maybe even #105? Windows seems to have a hard time working with phar streams when used with fully qualified paths. So far I failed to find a real fix or workaround for that. The |
My last point was not about the path to the phar itself but access to files within the phar. I'll have to spent more time on this. |
@theseer Did you manage to get anywhere with this one? |
Using a phar build from the latest source code, I don't have any issues on windows 7 anymore, as the following terminal output shows:
System information:
Since I don't really use windows, can anyone verify on other windows boxes? |
Build always fail here on Windows 7 x64
|
Current versions of master seem to work fine on windows 7 at least in my Test-VM. Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\TheSeer\Desktop\phpdox\tests\data\issue212>c:\php\php.exe ..\..\..\phpdox.phar -f ./test.xml
phpDox 0.7.0-126-g7feacfa - Copyright (C) 2010 - 2015 by Arne Blankerts
[21.04.2015 - 03:54:56] Using config file './test.xml'
[21.04.2015 - 03:54:56] Registered collector backend 'parser'
[21.04.2015 - 03:54:56] Registered enricher 'build'
[21.04.2015 - 03:54:56] Registered enricher 'git'
[21.04.2015 - 03:54:56] Registered enricher 'checkstyle'
[21.04.2015 - 03:54:56] Registered enricher 'phpcs'
[21.04.2015 - 03:54:56] Registered enricher 'pmd'
[21.04.2015 - 03:54:56] Registered enricher 'phpunit'
[21.04.2015 - 03:54:56] Registered enricher 'phploc'
[21.04.2015 - 03:54:56] Registered output engine 'xml'
[21.04.2015 - 03:54:56] Registered output engine 'html'
[21.04.2015 - 03:54:56] Starting to process project 'phpDox-issue212'
[21.04.2015 - 03:54:56] Starting collector
[21.04.2015 - 03:54:56] Scanning directory 'C:/Users/TheSeer/Desktop/phpdox/tests/data/issue212/src' for files to process
... [3]
[21.04.2015 - 03:54:56] Saving results to directory 'C:/Users/TheSeer/Desktop/phpdox/tests/data/issue212/xml'
[21.04.2015 - 03:54:56] Resolving inheritance
... [3]
[21.04.2015 - 03:54:56] Collector process completed
[21.04.2015 - 03:54:56] Starting generator
[21.04.2015 - 03:54:56] Loading enrichers
[21.04.2015 - 03:54:56] Enricher Build Information initialized successfully
[21.04.2015 - 03:54:56] Starting event loop.
........................... [27]
[21.04.2015 - 03:54:57] Generator process completed
[21.04.2015 - 03:54:57] Processing project 'phpDox-issue212' completed.
Time: 297 ms, Memory: 5.00Mb |
Hi,
phpdox breaks with the following log under Windows.
C:\Users\user.name\Zend\workspaces\DefaultWorkspace10\Rahmen>phpdox
phpDox 0.6.6 - Copyright (C) 2010 - 2014 by Arne Blankerts
[06.05.2014 - 18:46:19] Using config file './phpdox.xml'
[06.05.2014 - 18:46:19] Registered enricher 'build'
[06.05.2014 - 18:46:19] Registered enricher 'git'
[06.05.2014 - 18:46:19] Registered enricher 'checkstyle'
[06.05.2014 - 18:46:19] Registered enricher 'pmd'
[06.05.2014 - 18:46:19] Registered enricher 'phpunit'
[06.05.2014 - 18:46:19] Registered enricher 'phploc'
[06.05.2014 - 18:46:19] Registered output engine 'xml'
[06.05.2014 - 18:46:19] Registered output engine 'html'
[06.05.2014 - 18:46:19] Starting to process project 'name-of-project'
[06.05.2014 - 18:46:19] Starting collector
[06.05.2014 - 18:46:19] Scanning directory 'src' for files to process
cccccccccccccccc [16]
[06.05.2014 - 18:46:19] Saving results to directory 'build/phpdox'
[06.05.2014 - 18:46:19] Collector process completed
[06.05.2014 - 18:46:19] Starting generator
[06.05.2014 - 18:46:19] Loading enrichers
[06.05.2014 - 18:46:19] Starting event loop.
....
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.7 (WINNT)
PHPDox Version: 0.6.6
Exception: TheSeer\fXSL\fXSLTProcessorException (Code: 2)
Location: phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/
PHAR/phpDox/phpDox-0.6.6.phar/fXSL-1.0.4/TheSeer/fXSL/fxsltprocessor.php (Line 2
51)
Error while importing given stylesheet
[XML-STRING] [Line: 0 - Column: 0] Warning 1549: failed to load external entity
"phar%3A/C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/p
hpDox/phpDox-0.6.6.phar/templates/html/components.xsl"
[XML-STRING] [Line: 0 - Column: 0] Error 1: compilation error: file phar%3A//C%3
A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/phpDox
-0.6.6.phar/phpdox/generator/engine/html/../../../../templates/html/class.xsl li
ne 8 element import
[XML-STRING] [Line: 0 - Column: 0] Error 1: xsl:import : unable to load phar%3A/
C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/php
Dox-0.6.6.phar/templates/html/components.xsl
[XML-STRING] [Line: 0 - Column: 0] Warning 1549: failed to load external entity
"phar%3A/C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/p
hpDox/phpDox-0.6.6.phar/templates/html/functions.xsl"
[XML-STRING] [Line: 0 - Column: 0] Error 1: compilation error: file phar%3A//C%3
A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/phpDox
-0.6.6.phar/phpdox/generator/engine/html/../../../../templates/html/class.xsl li
ne 9 element import
[XML-STRING] [Line: 0 - Column: 0] Error 1: xsl:import : unable to load phar%3A/
C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/php
Dox-0.6.6.phar/templates/html/functions.xsl
[XML-STRING] [Line: 0 - Column: 0] Warning 1549: failed to load external entity
"phar%3A/C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/p
hpDox/phpDox-0.6.6.phar/templates/html/synopsis.xsl"
[XML-STRING] [Line: 0 - Column: 0] Error 1: compilation error: file phar%3A//C%3
A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/phpDox
-0.6.6.phar/phpdox/generator/engine/html/../../../../templates/html/class.xsl li
ne 10 element import
[XML-STRING] [Line: 0 - Column: 0] Error 1: xsl:import : unable to load phar%3A/
C%3A/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/phpDox/php
Dox-0.6.6.phar/templates/html/synopsis.xsl
#0 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/generator/engine/html/Html.php(171): TheSeer\fXSL
fXSLTProcessor->transformToDoc()
#1 unknown(0): TheSeer\phpDox\Generator\Engine\Html->buildClass()
#2 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/generator/Generator.php(179): call_user_func()
#3 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/generator/Generator.php(253): TheSeer\phpDox\Gener
ator\Generator->handleEvent()
#4 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/generator/Generator.php(225): TheSeer\phpDox\Gener
ator\Generator->processClass()
#5 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/generator/Generator.php(137): TheSeer\phpDox\Gener
ator\Generator->processWithNamespace()
#6 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/Application.php(238): TheSeer\phpDox\Generator\Gen
erator->run()
#7 phar://C:/Users/user.name/Zend/workspaces/DefaultWorkspace10/TOOLS/PHAR/ph
pDox/phpDox-0.6.6.phar/phpdox/CLI.php(152): TheSeer\phpDox\Application->runGener
ator()
#8 C:\Users\user.name\Zend\workspaces\DefaultWorkspace10\TOOLS\PHAR\phpDox\ph
pDox-0.6.6.phar(547): TheSeer\phpDox\CLI->run()
The text was updated successfully, but these errors were encountered: