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 195817 - Add a "Run As: Remote Shell" option to the projects "Run Configuration"
Summary: Add a "Run As: Remote Shell" option to the projects "Run Configuration"
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 15:53 UTC by daniela.waranie
Modified: 2011-06-03 11:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daniela.waranie 2011-02-22 15:53:05 UTC
Only a few changes at the GUI are required every thing else can be done by a local batch file (i can provide a batch for that).

Just add the "Remote Shell" option to the "Run as" dropdown. 
Copy all fields from "Remote Web Site" to this new run as option.
Replace "Project URL", "Index File" and "Arguments" by the following fields of the "Script (run in command line)" run as configuration:
- "PHP Interpreter" (rename it to "Remote Execution Proxy"
- Arguments

On "run" pass "Arguments", "Server Path"*, "Project Path"*, "Host name"**, "User name"**, "Password"**, " and file to run as parameters to the "Remote Execution Proxy".

* = from Path Mapping in Advanced Web Configuration Dialog
** = from the selected "Remote Connection"

Output of the "Remote Execution Proxy" should be forwarded to the "Output Window" as normal.

Everything else can be done by a local batch file using putty plink and putty pscp (putty is availabel for unix (mac) and windows).

Optional: the following fields would be nice to have:
- PHP Interpreter Path (local) with browse button
- PHP Interpreter Path (remote)
- SSH Client Path (local) with browse button
- SSH Client Arguments
- SCP/FTP/SFTP Client Path (local) with browse button
- SCP/FTP/SFTP Client Arguments 
All of these should be passed to the Remote Execution Proxy, too.

This feature would be nice for all developer working running netbeans on a windows system while want to test the php scripts on a (remote) unix system, too (on development). May be there are Mac/Unix users that want to test their scripts on a windows server, too. 

I am willing to provide a working batch that i use at the moment by using the run as script configuration, but "upload to remote on save" is missing and aviod me from beeing productive (i don´t want to swich the run as configuration on and on).

My batch can be extended to be able to start and stop "debug sessions" as well.

If your roadmap does not allow to add it into the 7.0beta3 it would be nice to see it as an extension (nightly build).

At a later step (if you want to spend more time on it) you can add a tighter integration with the internal scp / ssh clients or by adding putty to the bundle.
Comment 1 Marian Mirilovic 2011-02-25 07:20:33 UTC
passing to PHP first ...

BTW: reporter it's too late for NB 7.0
Comment 2 Tomas Mysik 2011-06-03 10:22:49 UTC
Batch reassigning.
Comment 3 Tomas Mysik 2011-06-03 11:23:00 UTC
Hmm.... (Remote) Terminal [1] wouldn't work for you for this? It should be the proper solution, I think. If not, please reopen and tell me what is missing in Terminal and maybe we can file an issue for them.

Thanks a lot.
[1] Window > Output > Terminal