question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Che commands should be of type task or launch

See original GitHub issue

Description

VS Code (and thus Theia) does a clear distinction between a task (linting, building, packaging, testing or deploying) and a launch configuration (run, debug an application).

Currently all Che commands are translated into Theia tasks. As a consequence the UX is bad for run/debug commands. For example, when a user defines a debug command (in a devfile or from the Che dashboard), he won’t be able to run it from Theia Debug menu.

This issue is about adding an attribute (or a label or an annotation) to the current Che command model (in a workspace config and in a devfile) so that a user will be able to specify if the command should be translated into a task or a launch config.

N.B. This issue is part of epic #12709 and is not about changing the mechanism that translates Che commands into Theia tasks or launch (there is #12711 for that).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
gorkemcommented, Feb 23, 2019

vscode has 'group’s for tasks. I do not think this is supported on theia but it should be. groups allows vscode to identify a task as build or test. I think we should consider such a classification for commands on devfile as well.

    /**
     * Defines the group to which this task belongs. Also supports to mark
     * a task as the default task in a group.
     */
    group?: "build" | "test" | { kind: "build" | "test"; isDefault: boolean };
0reactions
che-botcommented, Mar 17, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[POC] tasks and launch configuration as part of Devfile #13057
User defined Che launch commands should be exported in a launch.json file ... ide-config/vs-code/tasks.json - type: launch reference: .
Read more >
Chapter 2. Che-Theia IDE basics - Red Hat Customer Portal
Tasks of type codeready , also known as exec commands, can be executed from the Terminal→Run Task menu or by clicking them in...
Read more >
windows_task Resource - Chef Software
The command to be executed by the windows scheduled task. cwd: Ruby Type: String. The directory the task will be run from.
Read more >
Windows Setup Command-Line Options | Microsoft Learn
The following command-line options are available for Windows Setup (setup.exe). Beginning with Windows 10, version 1607, you can use a ...
Read more >
Command-Line Interface - Gradle User Manual
Some tasks selectors, like help or dependencies , will only run the task on the project they are invoked on and not on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found