This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256081 - Command line arguments not properly generated
Summary: Command line arguments not properly generated
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: ApiGen (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 15:24 UTC by p0lar_bear
Modified: 2015-10-22 06:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p0lar_bear 2015-10-21 15:24:07 UTC
I have v1.23.1 of the ApiGen plugin installed (which seems to come standard with 8.0.2), and when I attempt to use it, I get an InvalidArgumentException saying "There are no commands defined in the "C" namespace." It's missing the "generate" argument that's required since ApiGen 4.0. If I create a batch file to work around this issue, then I end up with a RuntimeException saying "Too many arguments."

Without the batch file, the CLI output is this:

"C:\xampp\php\php.exe" "C:\xampp\php\apigen.phar" "--source" "C:\xampp\htdocs\proj" "--destination" "C:\Users\cburdick\Desktop\projdoc" "--title" "A Project" "--charset" "UTF-8" "--access-levels" "public,protected" "--internal" "no" "--php" "no" "--tree" "no" "--deprecated" "no" "--todo" "no" "--download" "no" "--source-code" "no" "--colors" "yes" "--update-check" "no"

This is entirely incorrect.

https://github.com/apigen/ApiGen/blob/master/UPGRADE-4.0.md

First and foremost, as stated, the "generate" argument is missing. Boolean arguments should be treated as flags. --source-code was removed and instead it should put --no-source-code if the user wishes not to have source code generated in the documentation.
Comment 1 Tomas Mysik 2015-10-22 06:37:19 UTC
ApiGen 4.0 is supported in NB 8.1 (currently RC available). Please, try it and let us know if it does not work for you.

Thanks.