Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: process output is not displayed in a terminal #5908

Closed
paul-marechal opened this issue Aug 9, 2019 · 0 comments · Fixed by #5895
Closed

task: process output is not displayed in a terminal #5908

paul-marechal opened this issue Aug 9, 2019 · 0 comments · Fixed by #5895
Assignees
Labels
process issues related to the process extension tasks issues related to the task system

Comments

@paul-marechal
Copy link
Member

paul-marechal commented Aug 9, 2019

Description

This is different from #3791. In this case, we simply don't open a terminal when executing process tasks.

The only difference between shell and process tasks, as per VS Code, is the way arguments are processed and the program executed.

But both task types should display their output in the terminal.

There are very good chances that about any task type may want its output displayed in a terminal as well, but that's to be confirmed.

Reproduction Steps

Try executing the following task:

{
    "tasks": [
        {
            "label": "[Task] Echo a string",
            "type": "process",
            "cwd": "${workspaceFolder}",
            "command": "bash",
            "args": [
                "-c",
                "sleep 3 && echo 1 2 3"
            ]
        }
    ]
}

No terminal is opened to display the output, despite the sleep 3 command (to avoid the issue where short-lived tasks are unregistered too quickly from the process/task manager).

OS and Theia version: Ubuntu 16.04 Theia@11badc80598254e8c78a204b7b93c2368a300fe4

@paul-marechal paul-marechal added process issues related to the process extension tasks issues related to the task system labels Aug 9, 2019
@paul-marechal paul-marechal self-assigned this Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process issues related to the process extension tasks issues related to the task system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant