Bug 545778 - Allow launch configurations to use Terminal for "Standard Input Output"
Summary: Allow launch configurations to use Terminal for "Standard Input Output"
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-26 05:52 EDT by nimo mayr CLA
Modified: 2020-12-14 10:16 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nimo mayr CLA 2019-03-26 05:52:11 EDT
Actually, there is no "Run Configuration" for Terminal-View. 

For example, I want to have the following use case:

Go to "Run Configurations.." (Create, manage, and run configuration)
-> Select "Terminal View" (actually, this does not exist!)
-> then in the "Main"-Tab I name it "Run Terminal Command", I can include any terminal command to be run (for example: "ls", "npm start", "gulp run-server", etc.)
-> I also have a setting for "run as foreground taks"

When I run this terminal-Task a new Eclipse-Terminal-View is shown and I can see the result.

With this all other run configurations which actually exist in eclipse, like gulp, grunt, node can be replaced by this new "Terminal-Task".

Please provide a new Run Configuration for "Terminal"-Tasks.
Comment 1 nimo mayr CLA 2019-03-26 06:00:46 EDT
"Run Terminal Task" should have a option within the main-configuration "run as foreground" to open such running terminal taks within a new terminal tab. So User gets feedback and can control this terminal command.
Comment 2 Dani Megert CLA 2019-03-26 12:43:35 EDT
The Terminal view is not from Eclipse.org.
Comment 3 nimo mayr CLA 2019-03-26 13:35:03 EDT
Then please open this issue also. 

Terminal View is from from Eclipse.org.
Comment 4 Dani Megert CLA 2019-03-26 13:46:33 EDT
(In reply to nimo mayr from comment #3)
> Then please open this issue also. 
> 
> Terminal View is from from Eclipse.org.
Please move it to the right component (see other bug).
Comment 5 Nick Boldt CLA 2019-03-28 12:23:04 EDT
If you provide a gerrit/PR for this change, I'll review and merge it. 

Otherwise... you can open a separate terminal and run your external commands in that terminal, outside Eclipse. 

Sure, it requires some ALT-TABbing between windows, but it also requires zero coding changes to the TM codebase, which is essentially in maintenance mode.
Comment 6 nimo mayr CLA 2019-03-28 12:29:25 EDT
I did not know that "TM codebase is essentially in maintenance mode.". In my opinion to have a terminal within IDE is very useful. Other IDE, such as VS Code also has terminal within editor..really useful. Is there any successor for TM?
Comment 7 Jonah Graham CLA 2020-05-01 10:08:55 EDT
The Terminal component of the Eclipse Ecosystem has a new home. The Terminal is now part of the Eclipse CDT project[1].

This change means a new Git repo[2], P2 site[3] and Bugzilla component. The terminal will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well.

The marketplace entry[4] had not been updated in a few years. It will once again install the latest release of the terminal on the latest release of the whole IDE (currently 2020-03).

If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment.

[1] https://wiki.eclipse.org/CDT/User/NewIn911
[2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the terminal directory)
[3] current release is 9.11 - P2 site https://download.eclipse.org/tools/cdt/releases/9.11/
[4] https://marketplace.eclipse.org/content/tm-terminal

(This comment was added to all open terminal bugs along with changing the Product/component pair to CDT/terminal.)
Comment 8 Jonah Graham CLA 2020-05-01 11:44:26 EDT
Sorry to bounce this around. What this bug needs is for the "Standard Input and Output" option in the Common tab of all launch configurations to allow using the Terminal as the target. I think that will require changes to Platform Debug to define a new extension point that the terminal can then contribute to. 

I fully support this idea and it would solve many problems that often come up in CDT and other tools if programs can be run/debugged with a real terminal, rather than a captured IO redirected to a console we currently have.

The CDT project is a good place for this to start, but will need some cooperation with the platform team to get such a new feature in place.
Comment 9 Viktor Szathmary CLA 2020-12-14 05:47:52 EST
Is this related to #242373 ?
Comment 10 Jonah Graham CLA 2020-12-14 10:16:52 EST
(In reply to Viktor Szathmary from comment #9)
> Is this related to #242373 ?

It is related. Bug 242373 is about being able to put the terminal in a the platform console view and essentially adding the features of a normal eclipse console. However each one of those bugs can be implemented independently of each other I think.