-
Notifications
You must be signed in to change notification settings - Fork 38.9k
When debugging an extension, closing the extension dev host exception-breaks with EPIPE #77909
Description
Issue Type: Bug
I maintain a VS Code extension. Recently I have started to experience the following behaviour:
- I run the extension under the debugger and the Extension Development Host runs. I activate my extension.
- I close the Extension Development Host.
- VS Code triggers a debug break in an internal VS Code function called
afterWriteDispatched. It displays an exception popup and the code location where the exception occurred. The error iswrite EPIPE. None of my code appears to be on the stack at this time. - After a few seconds, the debug toolbar and exception popup disappear. The internal file remains open.
Although this seems harmless, it's a bit annoying, and it does make me anxious that there's something I'm doing wrong. This never used to happen but I'm not sure whether it started due to changes in my extension or changes in VS Code; it now happens more often than not. Other extensions I maintain do not seem to be hitting this problem so I can well believe it's an extension problem but the error message doesn't give me any clue where to look!
The operating system is Windows and the extension source code is at https://github.com/Azure/vscode-kubernetes-tools/
Here's a screenshot of the error (sorry, it doesn't stay around long enough for me to copy as text):
And a screenshot with the full file path:
VS Code version: Code 1.36.1 (2213894, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.18912
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz (12 x 3492) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_deferred_display_list: disabled_off skia_renderer: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 63.93GB (33.24GB free) |
| Process Argv | --folder-uri file:///d%3A/GitHub/vscode-kubernetes-tools |
| Screen Reader | no |
| VM | 0% |
Extensions (14)
| Extension | Author (truncated) | Version |
|---|---|---|
| better-toml | bun | 0.3.2 |
| gitlens | eam | 9.9.1 |
| EditorConfig | Edi | 0.13.0 |
| vscode-pull-request-github | Git | 0.9.1 |
| terraform | mau | 1.3.12 |
| vscode-docker | ms- | 0.7.0 |
| python | ms- | 2019.6.24221 |
| azure-account | ms- | 0.8.4 |
| csharp | ms- | 1.21.0 |
| Go | ms- | 0.11.4 |
| powershell | ms- | 2019.5.0 |
| vscode-typescript-tslint-plugin | ms- | 1.2.2 |
| java | red | 0.47.0 |
| vscode-yaml | red | 0.4.1 |

