microsoft / VS-PPT

Productivity Power Tools - a set of Visual Studio extensions improving developer productivity.
http://aka.ms/extendvs
Other
885 stars 146 forks source link

Copy As Html stops copy and cut operation in Visual Studio 2017 and 2019. #259

Open priyamtheone opened 2 years ago

priyamtheone commented 2 years ago

After installing Productivity Power Tools 2017/2019 extension, I can't use the copy operation. The first time I try to copy a line or block of code after installing the extension, Visual Studio generates an error saying:

"Type library exporter encountered an error while processing 'CopyAsHtml.CopyAsHtmlPackage, CopyAsHtml'. Error: Type library exporter encountered an error while processing 'Microsoft.VisualStudio.Shell.Interop.SVsSolutionObject, Microsoft.VisualStudio.Shell.Interop'. Error: Type 'SVsSolutionObject' and type 'SVsSolution' both have the sameUUID."

Next time onwards, whenever I try to copy, Visual Studio generates the error saying:

"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"

When I uninstall Productivity Power Tools 2017/2019, there's no error and I can copy and cut everything properly. Delving more into the issue, I came across the fact that the sub-component, named Copy As Html, installed as part of the Productivity Power tool is causing the problem. Disabling or uninstalling the sub-component stops the error from occurring as per my observation. Though, I don't know what other essential operation is deactivated with the disabling of Copy As Html.

This issue should be looked into.

justcla commented 2 years ago

Thanks for identifying the faulty extension and raising the issue. Hopefully someone will fix it for VS2022.

I note that PPT is no longer a single extension, but is a collection of smaller extensions that can each be installed separately.