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

Current Code Base Crashes when generating docs #85

Closed
digitalmediums opened this issue Jan 17, 2013 · 4 comments
Closed

Current Code Base Crashes when generating docs #85

digitalmediums opened this issue Jan 17, 2013 · 4 comments
Labels

Comments

@digitalmediums
Copy link

phpdox:
[exec] phpDox 7643cec-dirty - Copyright (C) 2010 - 2013 by Arne Blankerts
[exec]
[exec] [17.01.2013 - 03:23:14] Using config file '/var/lib/jenkins/jobs/ActivityRez_Branch_Develop/workspace/build/phpdox.xml'
[exec] [17.01.2013 - 03:23:15] Registered collector backend 'parser'
[exec] [17.01.2013 - 03:23:15] Registered output engine 'html'
[exec] [17.01.2013 - 03:23:15] Registered output engine 'graph'
[exec] [17.01.2013 - 03:23:15] Registered output engine 'todo'
[exec] [17.01.2013 - 03:23:15] Starting to process project 'arez'
[exec] [17.01.2013 - 03:23:15] Starting collector
[exec] [17.01.2013 - 03:23:15] Scanning directory 'wp-content' for files to process
[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\phpDox\Collector\CollectorException
[exec] Location: wp-content/plugins/flash-api/includes/arezApiClass.php (Line 141)
[exec]
[exec] Error while processing source file
[exec]
[exec]
[exec] Exception occured while processing file: wp-content/plugins/flash-api/includes/arezApiClass.php
[exec]
[exec] #0 /usr/local/phpdox/src/Application.php(127): TheSeer\phpDox\Collector\Collector->run()
[exec] #1 /usr/local/phpdox/src/CLI.php(130): TheSeer\phpDox\Application->runCollector()
[exec] #2 /usr/local/phpdox/phpdox.php(60): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec] Exception: TheSeer\phpDox\Collector\Backend\ParseErrorException
[exec] Location: /usr/local/phpdox/src/collector/backend/parser/PHPParser.php (Line 84)
[exec]
[exec] Something went wrwong
[exec]
[exec] #0 /usr/local/phpdox/src/collector/Collector.php(95): TheSeer\phpDox\Collector\Collector->processFile()
[exec] #1 /usr/local/phpdox/src/Application.php(127): TheSeer\phpDox\Collector\Collector->run()
[exec] #2 /usr/local/phpdox/src/CLI.php(130): TheSeer\phpDox\Application->runCollector()
[exec] #3 /usr/local/phpdox/phpdox.php(60): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec] Exception: PHPParser_Error
[exec] Location: /usr/share/pear/PHPParser/PHPParser/Parser.php (Line 1037)
[exec]
[exec] Unexpected token T_PUBLIC on line 365
[exec]
[exec] #0 /usr/local/phpdox/src/collector/Collector.php(120): TheSeer\phpDox\Collector\Backend\PHPParser->parse()
[exec] #1 /usr/local/phpdox/src/collector/Collector.php(95): TheSeer\phpDox\Collector\Collector->processFile()
[exec] #2 /usr/local/phpdox/src/Application.php(127): TheSeer\phpDox\Collector\Collector->run()
[exec] #3 /usr/local/phpdox/src/CLI.php(130): TheSeer\phpDox\Application->runCollector()
[exec] #4 /usr/local/phpdox/phpdox.php(60): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec]
[exec] ............................................
[exec] Result: 1

@theseer
Copy link
Owner

theseer commented Jan 18, 2013

Can you verify if the source file "wp-content/plugins/flash-api/includes/arezApiClass.php" passes a lint check of PHP? PHPParser seems to have serious issues parsing it, which is something phpDox should handle better of course, but also might point to a bug in PHPParser.

Is the source code of that file available online?

@digitalmediums
Copy link
Author

ya, that was the first thing I did
php -l wp-content/plugins/flash-api/includes/arezApiClass.php
No syntax errors detected in wp-content/plugins/flash-api/includes/arezApiClass.php

@theseer
Copy link
Owner

theseer commented Jan 18, 2013

Okay, so that is a bug in PHPParser alongside phpDox not handling it correctly. Is there a chance you could provide me with the source code of this very file? I'd like to pass it on to the author of PHPParser.

I already fixed the phpDox part to handle parse errors properly with commit 6ce9cc3

@theseer
Copy link
Owner

theseer commented Feb 8, 2013

I consider the crasher fixed on my end. If you can provide me the "arezApiClass.php" file, I could contact the author of PHP_Parser to have the upstream codebase fixed. Otherwise, for phpDox this bug is fixed.

@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
Projects
None yet
Development

No branches or pull requests

2 participants