-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Report an error when formatting fails instead of failing silently #8944
Comments
The first time I try to format, it says: "Formatting failed. See the output window for details." The error is easy to miss. The output window is empty, until you select "C/C++" in the dropdown. Then it says:
Apparently I cleared the fallback style in settings, but this doesn't work and it's not using the default. Maybe |
Hi @OlafvdSpek . Would you like us to use this issue to track adding a more clear error message when formatting fails? |
Yes please. |
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.19.0 (pre-release) |
Issue Type: Bug
After generating a .clang-format file with
clang-format -style=llvm -dump-config > .clang-format
, Format Document stopped working, without reporting any errors.I assume there was some issue with the format file, but without any info it's hard to tell. Could Format Document report errors?
VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.16.0-1-amd64
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (16)
(2 theme extensions excluded)
A/B Experiments
microsoft/vscode#142964
The text was updated successfully, but these errors were encountered: