-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Creating and running a shell task results in errors in output #157756
Comments
Same problem:
My Code: const task = new vscode.Task({ type: 'shell', command: commandLine }, vscode.TaskScope.Workspace,
title, 'eide', new vscode.ShellExecution(commandLine, shellOption), []);
task.group = vscode.TaskGroup.Build;
task.isBackground = false;
task.presentationOptions = { echo: true, focus: false, clear: true };
vscode.tasks.executeTask(task); Task works but output tell me error:
|
The Docker extension uses tasks built on-the-fly like this extensively and we see these error messages too. microsoft/vscode-docker#3653 |
VS Code Version:
This affects me as well, the following snippet produces similar errors to the ones described above: await tasks.executeTask(
new Task(
{ type: 'shell' },
TaskScope.Workspace,
'Start GDB server',
'debugger',
new ShellExecution(
`\"${resolveGdbExecutable(profile, 'gdbserver').fsPath}\"`.concat(
` localhost:${port} --attach ${processId}`
), {
executable: 'cmd',
shellArgs: ['/d', '/c'],
}
)));
As you can see, in this case the errors double up, further cluttering the "Output " window. |
As someone who's not a developer by profession this issue cost me a lot of time trying to find out if it was my error or something else. It would be helpful if the error message could at least be changed to clarify the cause for those who aren't advanced enough to track it down to a bug with the Docker extension. |
/duplicate #176670 |
Type: Bug
I believe this is a resurface of #95876
Again, the task runs to completion it just pollutes the Tasks Output. Am I missing something?
For me it triggers with the relatively simple snippet
The only way to supress the Tasks output is by uncommenting the
(<vscode.Task>task)...
lineTasks output is again similar to issue 95876
VS Code version: Code - Insiders 1.71.0-insider (b0895f9, 2022-08-08T05:19:04.908Z)
OS version: Linux x64 5.4.0-122-generic
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: