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

Variables in XML files are not working #60

Closed
henvic opened this issue Mar 26, 2012 · 12 comments
Closed

Variables in XML files are not working #60

henvic opened this issue Mar 26, 2012 · 12 comments

Comments

@henvic
Copy link

henvic commented Mar 26, 2012

I've tried both calling phpdox alone or using ant.

In both cases the ${basedir} and other variables aren't getting substituted.

I've tried both with phpdox 0.4 distributed trough PEAR and by cloning this repo.

I'm running PHP 5.4 (from Zend Server).

@theseer
Copy link
Owner

theseer commented Mar 26, 2012

This should be fixed on git actually since it was merely a too restrictive xpath getting only the top level nodes (see issue #51). I'll investigate this.

@leo-unglaub
Copy link

Hi, i currently have the same issue on the pear version. Do you plan to update the pear version any time soon or should i use the git version directly?

Thanks and greetings
Leo

@leo-unglaub
Copy link

Hi,
i just tryed the current git master and i have the same problem there:

leo@striker:~/repos/git/others/phpdox$ ./phpdox.php -f /home/leo/repos/git/foo/framework/phpdoc.xml 
phpdox %development% - Copyright (C) 2010 - 2012 by Arne Blankerts

[26.07.2012 - 21:44:24] Using config file '/home/leo/repos/git/foo/framework/phpdoc.xml'
[26.07.2012 - 21:44:24] Registered output engine 'html'
[26.07.2012 - 21:44:24] Registered output engine 'graph'
[26.07.2012 - 21:44:24] Registered output engine 'todo'
[26.07.2012 - 21:44:24] Starting to process project 'phpdox'
[26.07.2012 - 21:44:24] Starting collector



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 stacktrace (if given) along!

Exception: TheSeer\DirectoryScanner\Exception
Location: /usr/share/php/TheSeer/DirectoryScanner/directoryscanner.php (Line 171)

Path '${basedir}/lib' does not exist.

#0 /home/leo/repos/git/others/phpdox/src/Application.php(110): TheSeer\DirectoryScanner\DirectoryScanner->__invoke()
#1 /home/leo/repos/git/others/phpdox/src/CLI.php(124): TheSeer\phpDox\Application->runCollector()
#2 /home/leo/repos/git/others/phpdox/phpdox.php(62): TheSeer\phpDox\CLI->run()

I am running the following PHP version:

PHP 5.4.4-2 (cli) (built: Jun 19 2012 07:38:55) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans

Thanks and greetings
Leo

@theseer
Copy link
Owner

theseer commented Jul 26, 2012

There will be a 0.5 release probably by the end of next week, including various fixes and rewrites of a couple of components.

@leo-unglaub
Copy link

Hi, are there any news about this issue? Because this bug makes it impossible to use phpdox on my computer anymore :(

@gerrywastaken
Copy link

@theseer also encountering this issue and eager for the fix you mentioned.

@theseer
Copy link
Owner

theseer commented Sep 9, 2012

I'm working hard on the next release of phpDox, featuring a new PHPParser based backend and some additional new treats. If everything goes as planned, I'll be able to release Version 0.5 tomorrow. Among other things, that release should fix the issues with variable replacements.

@leo-unglaub
Copy link

@theseer that would be great, because sience i switched to PHP 5.4 i have this error too and i am unable of updating my documentations :(

@spank79
Copy link

spank79 commented Dec 19, 2012

why am I still getting this error on a pear install. Is the package not updated there?

@theseer
Copy link
Owner

theseer commented Dec 20, 2012

There was only a test-release, the upcoming 0.5 release is going to have it included. Due to some originally pear based components aren't reliably available via pear anymore, i'll also move to providing a all-in-one phar release. Stay tuned for an xmas release :)

@fotografi
Copy link

No description provided.

@theseer
Copy link
Owner

theseer commented Aug 12, 2016

@fotografi ?

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

6 participants