Error ReSharper Installation

Answered

I'm about to install ReSharper Ultimate 2016.2.2 for Visual Studio Community 2015 and Visual Studio 15 Preview 5

and get this error

Execute Build Step Runnable JetBrains.Platform.VisualStudio.SinceVs10!JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions#3 has failed. The build step method JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions has thrown an exception. Exception has been thrown by the target of an invocation. Could not load file or assembly 'JetBrains.Platform.TextControl, Version=106.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.
Fatal error touching the extensions.configurationchanged file. Error reading the VS Lightweight Install list file at “C:\Users\Pramana\AppData\Roaming\Visual Studio Setup\user.json”. Object reference not set to an instance of an object.
Execute Build Step Runnable JetBrains.Platform.VisualStudio.SinceVs10!JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions#3 has failed. The build step method JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions has thrown an exception. Exception has been thrown by the target of an invocation. Could not load file or assembly 'JetBrains.Platform.TextControl, Version=106.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.

Any help ?

Thanks.

3 comments
Official comment

Hello 

Please try installing the latest R# 2016.3 EAP build https://confluence.jetbrains.com/display/ReSharper/ReSharper+2016.3+EAP. R# 2016.2.2 does not support Preview 5.

Thanks! 

Hi,

I had a very similar error today when installing Resharper Ultimate 2016.2.2. My machine had both VS 2015 and 15 Preview installed. Although I unselected VS 15 from the list on the Resharper installer screen, it would still report assembly loading exceptions at the very end (and tools wouldn't be installed). Uninstalling and cleaning everything related to VS 15 did not seem to help, and surprisingly the installer now detected two (!) versions of VS 15. This would happen for Resharper and other tools (dotMemory, dotTrace) as well.

In the end looking in the installer log revealed this exception:

EXCEPTION #2/3 [InvalidOperationException]
Message = “Error reading the VS Lightweight Install list file at “C:\Users\<username>\AppData\Roaming\Visual Studio Setup\user.json”.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_INVALIDOPERATION=80131509

Not sure what was supposed to be in this file, but after everything I did it only contained a single property:

{
"locale": "en-US"
}

Apparently the installer expected to find something else, but would not fail gracefully. So renaming "Visual Studio Setup" folder to "Visual Studio Setup.bak" FINALLY made the difference, and the installer finished successfully. All the tools and ReSharper itself seem to work, however now, when I start the installer once again, it shows "Repair" for ReSharper/dotPeek and "Update" for other tools. So after all the installation process wasn't completely successful, but the workaround seems to have worked.

Perhaps this might help someone with a similar issue.

Do you guys think this is a valid workaround or it wasn't a good idea? Is this kind of scenario expected to be fixed in 2016.3?

 

0

Hello,

There is the same issue in YouTrack: https://youtrack.jetbrains.com/issue/RSRP-461202. You are welcome to monitor the status of the issue here.

Meanwhile in most of cases this error does not affect R# functionality.

As for "Visual Studio Setup" folder renaming - we don't have definite answer, since it can affect the Visual Studio in some cases.

Thank you!

0

Please sign in to leave a comment.