Skip to content

Server connection closed when using Clang-format extension #5528

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

Closed
michelleangela opened this issue May 19, 2020 · 3 comments
Closed

Server connection closed when using Clang-format extension #5528

michelleangela opened this issue May 19, 2020 · 3 comments

Comments

@michelleangela
Copy link
Contributor

michelleangela commented May 19, 2020

I have the same problem

  • version:April 2020 (version 1.45)
  • macos ,clang-format version 10.0.0
  • I don't confirm the exactly steps to reproduce it, but the happened time is that I use the clang-format extension to format my cpp files on save.what's more ,I can not use the format on save when the error has happened.
  • the error information as follows:
    image
  • yeah: sometimes ,I uninstall and re-install the Clang-Format and cpptools extension, the issue can be solved for a while after un-re install the extension, but the issue happens after a while.
  • the Clang-Format extension version is 1.9.0
  • the cpptools extension version is 0.28.0

image
image

Originally posted by @LIUHUANUCAS in #4770 (comment)

@michelleangela
Copy link
Contributor Author

michelleangela commented May 19, 2020

@LIUHUANUCAS

It seems that Clang-Format extension is affecting the C/C++ extension. That is when VS Code sends a format document request, either the Clang-Format extension or C/C++ extension will handle the formatting.

The C/C++ extension ships with Clang-format capabilities. You can set the C/C++ extension to use a specific Clang-format executable by setting "C_Cpp.clang_format_path" in settings.json and disable the Clang-Format extension. Could you try this and see if it still affects the C/C++ extension?

@michelleangela michelleangela added the more info needed The issue report is not actionable in its current state label May 19, 2020
@LIUHUANUCAS
Copy link

@michelleangela Thanks a lot! it works after uninstall Clang-format extension!

@michelleangela michelleangela removed the more info needed The issue report is not actionable in its current state label May 23, 2020
@michelleangela
Copy link
Contributor Author

Closing as resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants