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 250115 - Phing installed via Pear does not work
Summary: Phing installed via Pear does not work
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Phing (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-30 10:20 UTC by Vladimir Riha
Modified: 2015-03-19 08:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
global Phing exec file (794 bytes, text/plain)
2015-01-30 10:20 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-01-30 10:20:47 UTC
Created attachment 151742 [details]
global Phing exec file

I've installed Phing via Pear as described on the homepage: 

   $ pear channel-discover pear.phing.info
   $ pear install [--alldeps] phing/phing

it is installed to /usr/bin/phing. The problem is that it is a bash script (will attach here) and IDE invokes it with PHP:

   "/usr/bin/php" "/usr/bin/phing" "-logger" "phing.listener.AnsiColorLogger"

which basically just prints out the content of the file. If I invoke e.g.

   /usr/bin/phing -l

from command line, it works fine.

Thank you



Product Version: NetBeans IDE Dev (Build 201501300002)
Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Tomas Mysik 2015-03-04 13:29:46 UTC
Láďo, could you please check whether this issue is only on Linux or also on Windows? I guess that it could work on Windows, right?

Thanks a lot.
Comment 2 Vladimir Riha 2015-03-04 14:01:34 UTC
Will do during today
Comment 3 Vladimir Riha 2015-03-04 15:56:30 UTC
It works on Windows just fine, IDE invokes

"C:\xampp\php\phing.bat" "-logger" "phing.listener.AnsiColorLogger" "clean"

and with phar file it runs

"C:\xampp\php\php.exe" "C:\Users\vlriha\Downloads\phing-latest.phar" "-logger" "phing.listener.AnsiColorLogger" "clean"


and it works as well.
Comment 4 Tomas Mysik 2015-03-06 10:54:27 UTC
I have improved autodetection when PHP interpreter should be used so this issue should be solved.

Láďo, could you please verify - on all 3 platforms - several scenarios:

- PHAR file;
- file with extensions like .bat, .sh;
- PHP file without extension;
- SHELL file without extension;
- anything else?

Thanks a lot!

http://hg.netbeans.org/web-main/rev/95b60d20b218
Comment 5 Quality Engineering 2015-03-07 08:41:24 UTC
Integrated into 'main-silver', will be available in build *201503070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/95b60d20b218
User: Tomas Mysik <tmysik@netbeans.org>
Log: #250115 - Phing installed via Pear does not work
Comment 6 Vladimir Riha 2015-03-19 08:04:12 UTC
Thank you, works fine on Windows and Linux, will try Mac a bit later.


Product Version: NetBeans IDE Dev (Build 201503160001)
Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)