clang-power-tools icon indicating copy to clipboard operation
clang-power-tools copied to clipboard

Cannot load extension on VS 2019

Open fotico opened this issue 3 years ago • 2 comments

Installed VS 2019 v16.11.3 with C++ Clang tools for windows v12 I then installed clang-powertools v7.6.0 and clangformat v12 from the extension dialog.

After installing the extensions and restarting visual studio, a dialog box informs me that "The RunClangPowerToolsPackage package did not load correctly". All the icons of the toolbar are greyed out. The ActivityLog.xml shows the following entry:

<type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [RunClangPowerToolsPackage]Source: &apos;mscorlib&apos; Description: An error occurred while sending the request.&#x000D;&#x000A;</description>

I tried uninstalling the extension, deleting everything in %AppData%/ClangPowerTools (which was already empty), then reinstalling it - same thing happens.

fotico avatar Oct 04 '21 10:10 fotico

Hi @fotico,

The problem is from Visual Studio, not from the extension.

But this may resolve your problem:

  • Delete this folder: C:\Users[username]\appdata\local\microsoft\VisualStudio\16.0\ComponentModelCache

  • An alternative from StackOverflow: https://stackoverflow.com/questions/31741405/error-setsite-failed-for-package-apachecordovatoolspackage

mariru27 avatar Oct 04 '21 13:10 mariru27

Hello, I am facing the same Problem with VS 2017 Express. I also deleted the extension and reinstalled, and deleted the ComponentModelCache directory, but the error still is there.

SevHub avatar Apr 14 '22 07:04 SevHub

Hi @SevHub,

Do you still have the same problem?

Kind regards, Marina

mariru27 avatar Jul 10 '23 09:07 mariru27

I'll be closing this issue due to insufficient information.

mariru27 avatar Sep 26 '23 12:09 mariru27