Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 256081 - Command line arguments not properly generated
Command line arguments not properly generated
Product: php
Classification: Unclassified
Component: ApiGen
All All
: P3 (vote)
: 8.2
Assigned To: Tomas Mysik
Depends on:
  Show dependency treegraph
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


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.

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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo