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

Error in first execution #56

Closed
jrbasso opened this issue Mar 12, 2012 · 5 comments
Closed

Error in first execution #56

jrbasso opened this issue Mar 12, 2012 · 5 comments

Comments

@jrbasso
Copy link

jrbasso commented Mar 12, 2012

00:30:29:~/htdocs/service (release/1.4)$ sudo pear install pear.netpirates.net/phpDox-0.4.0
downloading phpDox-0.4.0.tgz ...
Starting to download phpDox-0.4.0.tgz (55,733 bytes)
.............done: 55,733 bytes
downloading DirectoryScanner-1.1.0.tgz ...
Starting to download DirectoryScanner-1.1.0.tgz (3,644 bytes)
...done: 3,644 bytes
downloading fDOMDocument-1.2.4.tgz ...
Starting to download fDOMDocument-1.2.4.tgz (17,128 bytes)
...done: 17,128 bytes
downloading fXSL-1.0.4.tgz ...
Starting to download fXSL-1.0.4.tgz (5,798 bytes)
...done: 5,798 bytes
downloading staticReflection-1.0.0.tgz ...
Starting to download staticReflection-1.0.0.tgz (41,278 bytes)
...done: 41,278 bytes
install ok: channel://pear.netpirates.net/DirectoryScanner-1.1.0
install ok: channel://pear.netpirates.net/fDOMDocument-1.2.4
install ok: channel://pear.netpirates.net/fXSL-1.0.4
install ok: channel://pear.pdepend.org/staticReflection-1.0.0
install ok: channel://pear.netpirates.net/phpDox-0.4.0

00:35:57:~/htdocs/service (release/1.4)$ phpdox --skel > phpdox.xml.dist

00:36:17:~/htdocs/service (release/1.4)$ phpdox
phpdox 0.4.0 - Copyright (C) 2010 - 2012 by Arne Blankerts

[12.03.2012 - 00:36:18] Using config file '/home/jrbasso/htdocs/service/phpdox.xml.dist'
[12.03.2012 - 00:36:18] Registered output engine 'html'
[12.03.2012 - 00:36:18] Registered output engine 'graph'
[12.03.2012 - 00:36:18] Registered output engine 'todo'
[12.03.2012 - 00:36:18] Registered output engine 'xslrunner'
[12.03.2012 - 00:36:18] Starting to process project 'phpdox'
array(2) {
  [0]=>
  string(10) "${basedir}"
  [1]=>
  string(7) "basedir"
}
[12.03.2012 - 00:36:18] 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/local/lib/php/TheSeer/DirectoryScanner/directoryscanner.php (Line 171)

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

#0 /usr/local/lib/php/TheSeer/phpDox/Application.php(118): TheSeer\DirectoryScanner\DirectoryScanner->__invoke()
#1 /usr/local/lib/php/TheSeer/phpDox/CLI.php(124): TheSeer\phpDox\Application->runCollector()
#2 /usr/local/bin/phpdox(62): TheSeer\phpDox\CLI->run()
@theseer
Copy link
Owner

theseer commented Mar 13, 2012

It is interesting to see a var_dump output in there, but the error message suggests that within your current directory there is no "src" directory. You might want to adjust the configuration file created by the --skel option as its only a more or less basic default set.

I am aware of some problems with the variable replacement handling in 0.4. This is going to be fixed in 0.5 among various other things.

@jrbasso
Copy link
Author

jrbasso commented Mar 14, 2012

Hmmm, right. I didn't figure out that "src" was the expected directory. I thought was the current path. Sorry about that.

Thanks.
Leaving open for the var_dump.

@tariquesani
Copy link

Got the same problem...

phpdox
phpdox 0.4.0 - Copyright (C) 2010 - 2012 by Arne Blankerts

[01.08.2012 - 17:34:34] Using config file '/home/tariquesani/WWW/hourli2/phpdox.xml.dist'
[01.08.2012 - 17:34:34] Registered output engine 'html'
[01.08.2012 - 17:34:34] Registered output engine 'graph'
[01.08.2012 - 17:34:34] Registered output engine 'todo'
[01.08.2012 - 17:34:34] Registered output engine 'xslrunner'
[01.08.2012 - 17:34:34] Starting to process project 'phpdox'
array(2) {
[0]=>
string(10) "${basedir}"
[1]=>
string(7) "basedir"
}
[01.08.2012 - 17:34:34] 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}/app' does not exist.

#0 /usr/share/php/TheSeer/phpDox/Application.php(118): TheSeer\DirectoryScanner\DirectoryScanner->__invoke()
#1 /usr/share/php/TheSeer/phpDox/CLI.php(124): TheSeer\phpDox\Application->runCollector()
#2 /usr/bin/phpdox(62): TheSeer\phpDox\CLI->run()

'${basedir}/app' does exists - any way to to see what ${basedir} is getting translated to?

@hexathos
Copy link

I'm getting the same error here...

filepath exists.
used phpdox.xml is viewable at https://github.com/mrbendig/ipsmith-core/blob/95c33f442c9fdfffa7705ecb21788844ccefb56d/phpdox.xml , found that it work if i kick out any $variable from phpdox.xml

phpdox:
[exec] phpdox 0.4.0 - Copyright (C) 2010 - 2012 by Arne Blankerts
[exec]
[exec] [18.11.2012 - 11:13:05] Using config file '/var/lib/jenkins/workspace/ipsmith/phpdox.xml'
[exec] [18.11.2012 - 11:13:05] Registered output engine 'html'
[exec] [18.11.2012 - 11:13:05] Registered output engine 'graph'
[exec] [18.11.2012 - 11:13:05] Registered output engine 'todo'
[exec] [18.11.2012 - 11:13:05] Registered output engine 'xslrunner'
[exec] [18.11.2012 - 11:13:05] Starting to process project 'phpdox'
[exec] array(2) {
[exec] [0]=>
[exec] string(10) "${basedir}"
[exec] [1]=>
[exec] string(7) "basedir"
[exec] }
[exec] [18.11.2012 - 11:13:05] Starting collector
[exec]
[exec]
[exec]
[exec] Oups... phpDox encountered a problem and has terminated!
[exec] It most likely means you've found a bug, so please file a report for this and paste the stacktrace (if given) along!
[exec]
[exec] Exception: TheSeer\DirectoryScanner\Exception
[exec] Location: /usr/share/php/TheSeer/DirectoryScanner/directoryscanner.php (Line 171)
[exec]
[exec] Path '${basedir}/ipsmith-core' does not exist.
[exec]
[exec] #0 /usr/share/php/TheSeer/phpDox/Application.php(118): TheSeer\DirectoryScanner\DirectoryScanner->__invoke()
[exec] #1 /usr/share/php/TheSeer/phpDox/CLI.php(124): TheSeer\phpDox\Application->runCollector()
[exec] #2 /usr/bin/phpdox(62): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec]
[exec] Result: 1

@theseer
Copy link
Owner

theseer commented Nov 19, 2012

Replacing the variable parts should fix the issue for 0.4 as there were bugs in resolving values in nested nodes. Version 0.5 is going to fix this.

@theseer theseer closed this as completed Feb 8, 2013
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

4 participants