首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使DocBlox与Netbeans一起使用

无法使DocBlox与Netbeans一起使用
EN

Stack Overflow用户
提问于 2012-01-02 19:29:38
回答 1查看 431关注 0票数 0

我正在尝试让Netbeans for Mac与DocBlox集成,以便生成文档。我遵循instructions on the docblox site与netbeans集成,但当我实际尝试生成文档时,没有得到任何输出,并且输出窗口中出现以下内容:

代码语言:javascript
复制
DocBlox version 0.17.2

PHP Warning:  mkdir(): Permission denied in /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php on line 120

PHP Stack trace:
PHP   1. {main}() /usr/local/php5-20111115-115202/bin/docblox:0
PHP   2. DocBlox_Task_Project_Run->execute() /usr/local/php5-20111115-115202/bin/docblox:55
PHP   3. DocBlox_Task_Project_Parse->execute() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Run.php:141
PHP   4. DocBlox_Task_Project_Parse->getTarget() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php:270
PHP   5. mkdir() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php:120
Warning: mkdir(): Permission denied in /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php on line 120

Call Stack:
    0.0004     655768   1. {main}() /usr/local/php5-20111115-115202/bin/docblox:0
    0.0227    3376320   2. DocBlox_Task_Project_Run->execute() /usr/local/php5-20111115-115202/bin/docblox:55
    0.0246    3538264   3. DocBlox_Task_Project_Parse->execute() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Run.php:141
    0.0546    3867832   4. DocBlox_Task_Project_Parse->getTarget() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php:270
    0.0546    3868056   5. mkdir() /usr/local/php5-20111115-115202/lib/php/DocBlox/src/DocBlox/Task/Project/Parse.php:120

ERROR: The given location "Reefknot" is not a folder

DocBlox creates documentation from PHP source files. The simplest way to use it is:

    $ docblox run -d <directory to parse> -t <output directory>

This will parse every file ending with .php, .php3 and .phtml in <directory to parse> and then
output a HTML site containing easily readable documentation in <output directory>.

DocBlox will try to look for a docblox.dist.xml or docblox.xml file in your current working directory
and use that to override the default settings if present. In the configuration file can you specify the
same settings (and more) as the command line provides.

Usage:
 docblox project:run [options]

-h [--help]                   Show this help message
-q [--quiet]                  Silences the output and logging
-c [--config] [STRING]        Configuration filename OR "none", when this option is omitted DocBlox tries to load the docblox.xml or docblox.dist.xml from the current working directory
-f [--filename] STRING        Comma-separated list of files to parse. The wildcards ? and * are supported
-d [--directory] STRING       Comma-separated list of directories to (recursively) parse.
-t [--target] [STRING]        Path where to store the generated output (optional, defaults to "output")
-e [--extensions] [STRING]    Optional comma-separated list of extensions to parse, defaults to php, php3 and phtml
-i [--ignore] [STRING]        Comma-separated list of file(s) and directories that will be ignored. Wildcards * and ? are supported
-m [--markers] [STRING]       Comma-separated list of markers/tags to filter, (optional, defaults to: "TODO,FIXME")
-v [--verbose]                Provides additional information during parsing, usually only needed for debugging purposes
--title [STRING]              Sets the title for this project; default is the DocBlox logo
--template [STRING]           Sets the template to use when generating the output
--force                       Forces a full build of the documentation, does not increment existing documentation
--validate                    Validates every processed file using PHP Lint, costs a lot of performance
--parseprivate                Whether to parse DocBlocks tagged with @internal
--visibility [STRING]         Specifies the parse visibility that should be displayed in the documentation (comma seperated e.g. "public,protected")
--defaultpackagename [STRING] name to use for the default package.  If not specified, uses "default"
--sourcecode                  Whether to include syntax highlighted source code
-p [--progressbar]            Whether to show a progress bar; will automatically quiet logging to stdout

我已经把目标目录改成了0777,但是仍然没有找到joy。

有谁知道这里出了什么问题吗?我正在运行通过PEAR安装的OSX Lion、Netbeans 7.1RC2和DocBlox 0.17.2

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-01-20 05:36:19

短版

看起来您需要按照下面的说明修改NetBeans的phpdoc批处理文件:https://github.com/docblox/docblox/issues/195

说明

该问题可能是由Netbeans使用phpDocumentor的快捷方式表示法(-ti)传递标题引起的。我假设您的项目名为Reefknot,而Netbeans试图添加-ti Reefknot作为最后一个参数。

由于DocBlox无法处理双字符快捷方式表示法,它会将-ti解释为-t,并因此导致Docblox尝试写入文件夹“Reefknot”。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8700265

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档