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 252398 - Apigen 4.1.0 does not run
Summary: Apigen 4.1.0 does not run
Status: CLOSED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: ApiGen (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-14 10:02 UTC by Murlika
Modified: 2015-05-19 10:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages log (36.00 KB, text/x-log)
2015-05-15 11:14 UTC, Murlika
Details
My apigen.phar (1.29 MB, application/octet-stream)
2015-05-15 11:15 UTC, Murlika
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Murlika 2015-05-14 10:02:51 UTC
ApiGen does not run: Unexpected '<new line>' on line 5, column 34.

Full command into output:
"/usr/bin/php" "/usr/local/bin/apigen" "generate" "--source" "/home/abby/NetBeansProjects/PhpProject1" "--destination" "/home/abby/NetBeansProjects/PhpProject1/doc1" "--title" "PhpProject1" "--charset" "UTF-8" "--access-levels" "public" "--no-source-code"

Unexpected '<new line>' on line 5, column 34.

But, also into console it work fine:

abby@abby-GRID:~/Загрузки$ "/usr/bin/php" "/usr/local/bin/apigen" "generate" "--source" "/home/lika/NetBeansProjects/PhpProject1" "--destination" "/home/lika/NetBeansProjects/PhpProject1/doc1" "--title" "PhpProject1" "--charset" "UTF-8" "--access-levels" "public" "--no-source-code"
Scanning sources and parsing
Found 0 classes, 0 constants and 1 functions
Destination is not empty. Do you want to erase it? [yes] 
Generating API documentation
100 % - Finished!
Comment 1 Tomas Mysik 2015-05-14 10:30:07 UTC
I tried the PHAR file v4.1.0 and it works for me without any problems. How did you install ApiGen? Could you please attach your /usr/local/bin/apigen? Also, attach please your IDE log [1]. Weird is that it works for you from the console.

Simply reopen this issue, thanks.
[1] http://wiki.netbeans.org/FaqLogMessagesFile

Product Version: NetBeans IDE Dev (Build 20150514-bf32eeb2e3a7)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.16.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 2 Murlika 2015-05-15 11:14:08 UTC
Created attachment 153684 [details]
Messages log
Comment 3 Murlika 2015-05-15 11:15:26 UTC
Created attachment 153685 [details]
My apigen.phar
Comment 4 Murlika 2015-05-15 11:21:41 UTC
I had used official apigen instruction for installing:
wget http://apigen.org/apigen.phar
chmod +x apigen.phar
mv apigen.phar /usr/local/bin/apigen
apigen --version

# get help for generate command
apigen generate --help

and it works in my console everywhere. For example, this project:
abby@abby-GRID:~/NetBeansProjects$ apigen generate -s "PhpProject1" -d ./PhpProject1/doc1
Scanning sources and parsing
Found 0 classes, 0 constants and 1 functions
Generating API documentation
100 % - Finished!
Comment 5 Tomas Mysik 2015-05-15 11:34:26 UTC
There is no error in the attached log file.

It works for me with your apigen file, see [1]. Not sure what to do now since the original error apparently comes from apigen, not from NetBeans (there is no "line 5" in the command, of course).

Keeping as WORKSFORME, thanks.
[1]
"/usr/bin/php" "/home/gapon/Download/apigen" "generate" "--source" "/home/gapon/NetBeansProjects/Calculator-PHPUnit4" "--destination" "/home/gapon/NetBeansProjects/Calculator-PHPUnit4/doc" "--title" "Calculator-PHPUnit4" "--charset" "UTF-8" "--exclude" "vendor" "--access-levels" "public" "--access-levels" "protected" "--no-source-code"
Scanning sources and parsing
Found 4 classes, 0 constants and 0 functions
Generating API documentation
  0 %
 25 %
 50 %
 75 %
100 % - Finished!
Done.

Product Version: NetBeans IDE Dev (Build 20150515-451c68834978)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.16.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 6 Murlika 2015-05-19 09:55:35 UTC
Oh, thank for all! It's error for an interesting apigen option. In any case, with and without option --config, it use apigen.neon configuration file if it's present in the project directory. And I had a bug on line 5 :)

After delete apigen.neon from project directory, I took it at all:

"/usr/bin/php" "/usr/local/bin/apigen" "generate" "--source" "/home/abby/NetBeansProjects/PhpProject1" "--destination" "/home/abby/NetBeansProjects/PhpProject1/doc1" "--title" "PhpProject1" "--charset" "UTF-8" "--access-levels" "public" "--no-source-code"
Scanning sources and parsing
Found 0 classes, 0 constants and 1 functions
Generating API documentation
  0 %
100 % - Finished!
Готово.
Comment 7 Tomas Mysik 2015-05-19 10:42:40 UTC
(In reply to Murlika from comment #6)
> Oh, thank for all! It's error for an interesting apigen option. In any case,
> with and without option --config, it use apigen.neon configuration file if
> it's present in the project directory. And I had a bug on line 5 :)

I see :) Could it be an issue of ApiGen? Or is it expected/known behaviour? Maybe try to report an issue to ApiGen authors.

Thanks for reporting.