Predelnik / RemoveTrailingWhitespaces

Visual Studio extension. Trailing whitespace removal tool. Removes either manually or on file save.
MIT License
9 stars 4 forks source link

2019, 2022 compatibility #4

Open jgwinner opened 2 years ago

jgwinner commented 2 years ago

I tried installing it in Visual Studio 2022, and got a lot of errors

They boil down to this line:

8/22/2022 12:43:01 PM - Unable to load extension at: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\WEBCLIENT\DIAGNOSTICS\CHROMEDEBUGADAPTER\. Exception text: Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: This VSIX does not apply to any product installed on this machine. The problem could be that the VSIX manifest's format is not recognized, or that the manifest has been corrupted. ---> System.InvalidOperationException: There is an error in XML document (12, 5). ---> System.Xml.Schema.XmlSchemaValidationException: The element 'Identifier' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010' has incomplete content. List of possible elements expected: 'SupportedProducts' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010'.

Because of the silly way that VS seems to interpret the .editorconfig's definition of trailing space, this plugin would be really useful!

Predelnik commented 2 years ago

Did you try to install this version or not? https://marketplace.visualstudio.com/items?itemName=Predelnik.RemoveTrailingWhitespaces-vs2022 Unfortunately it is compiled differently for each version with separate entry on marketplace. Version in releases is outdated.

11v1 commented 1 year ago

@Predelnik I tried, and it doesn't remove whitespaces anymore. It worked in vs 2022 until some magic VS upgrade