-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
It's not possible to run a Task in Che-Code if it's not che
type
#21466
Comments
It seems I have the same issue |
It's because the task is sent to machine-exec component for execution in a target container. |
in my case, i would expect to be executed int he same container than the VS Code extension. (I do not know if it would be a common default expectation but as it is the SV Code extension which is executing the task, it seems quite natural) |
@azatsarynnyy it looks like there is workaround: the task label should match the container name. |
@apupier when using a VS Code based workspace the extensions (and VS Code itself) run in the Devfile first container. Running the extensions in sidecar containers (aka running extensions remotely) is not supported with VS Code. |
@azatsarynnyy can we close this? Asking to decide if we can include it in the 7.55 release notes |
@l0rd yes, it's done and we can close it. |
sync'd to Red Hat JIRA https://issues.redhat.com/browse/CRW-3855 |
Describe the bug
If
tasks.json
file contains a task of non-che type (e.g.shell
), it can't be launched.Che version
next (development version)
Steps to reproduce
tasks.json
file.Test
tasks.json
can be created withTerminal > Configure Tasks... > Create tasks.json file from template > maven
.Terminal panel is open, but the task is not run.
Expected behavior
A task should be run in a default (usually
tools
) container.Runtime
OpenShift
Screenshots
Installation method
chectl/next
Environment
Linux
Release Notes Text
Tasks included in a
tasks.json
file of a type other thanche
were not loaded in a VS Code running in a Che workspace. This has been fixed in this release andtasks.json
with tasks of any type are supported and loaded in a Che workspace.The text was updated successfully, but these errors were encountered: