PHPDOC가 제공 한 오류 메시지 해결
-
20-09-2019 - |
문제
PHPDOC가 제공 한 다음 오류 메시지를 어떻게 해결할 수 있습니까?
난 달린다 madedoc.sh 다음 명령으로
명령
sudo ./makedoc.sh
나는 얻다
오류 메시지
PHP Version 5.2.6-3ubuntu4.2
phpDocumentor version 1.4.2
Parsing configuration file phpDocumentor.ini...
(found in /usr/share/php/data/PhpDocumentor/)...
done
Maximum memory usage set at 256M after considering php.ini...
using tokenizer Parser
ERROR: Converter PDFSmartyConverter specified by --output command-line option is not a class
ERROR: No Converters have been specified by --output command-line option
ERROR: No Converters have been specified by --output command-line option
의견의 예, 내가 생성하려는 내용
/** Create HTML for tags
* @param string @tags
*/
function create_tags_at_question ( $tags ) {
echo ("<label for='tags'>Tags</label>"
. "<input name='question[tags]' type='text' cols='92' class='tags' id='required'"
. " value='" . $tags . "' />"
);
}
phpdoc을위한 나의 makedoc.sh
#!/bin/bash
#/**
# * title of generated documentation, default is 'Generated Documentation'
# *
# * @var string TITLE
# */
TITLE="komponentit"
#/**
# * name to use for the default package. If not specified, uses 'default'
# *
# * @var string PACKAGES
# */
PACKAGES="default"
#/**
# * name of a directory(s) to parse directory1,directory2
# * $PWD is the directory where makedoc.sh
# *
# * @var string PATH_PROJECT
# */
PATH_PROJECT=$PWD:$PWD/handlers/:$PWD/handlers/searches/
#/**
# * path of PHPDoc executable
# *
# * @var string PATH_PHPDOC
# */
PATH_PHPDOC=/usr/bin/phpdoc
#/**
# * where documentation will be put
# *
# * @var string PATH_DOCS
# */
PATH_DOCS=$PWD/docs/
#/**
# * what outputformat to use (html/pdf)
# *
# * @var string OUTPUTFORMAT
# */
OUTPUTFORMAT=pdf
#/**
# * converter to be used
# *
# * @var string CONVERTER
# */
CONVERTER=Smarty
#/**
# * template to use
# *
# * @var string TEMPLATE
# */
TEMPLATE=default
#/**
# * parse elements marked as private
# *
# * @var bool (on/off) PRIVATE
# */
PRIVATE=off
# make documentation
"$PATH_PHPDOC" -d "$PATH_PROJECT" -t "$PATH_DOCS" -ti "$TITLE" -dn $PACKAGES \
-o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE
해결책
나와 함께 견뎌냅니다 ... 나는 PHPDOC를 모른다. 그래서 기병대가 도착할 때까지 나는 여기에 조금 추측하고있다.
어떤것에 대하여
"$PATH_PHPDOC" -d "$PATH_PROJECT" -t "$PATH_DOCS" -ti "$TITLE" -dn $PACKAGES \ -o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE
토큰 화기 파서를 불행하게 만듭니다. 구문의 무언가가 옳지 않습니다.
세 가지 오류는 모두이 makedoc.sh 라인과 관련이 있습니다
- -출력은 아마도 Makedoc.sh에서 사용한 -o의 긴 형태 일 것입니다.
- 첫 번째 오류에서 pdfsmartConverter는 makedoc.sh의 여러 변수로 만들어진 것 같습니다. 공간이나 다른 구분 기가 필요합니까?
- 더 필요합니까 ""
- 'PDF'는 충분한 출력 포획 지정자입니다
내가 말했듯이, 나는 단지 추측하고 있지만 아마도 당신에게 몇 가지 아이디어를 줄 것입니다.
이제 ... 그 기병대는 어디에 있습니까?
제휴하지 않습니다 StackOverflow