Resharper does not work in VS 2019

Search Everywhere, Code Inspection, Build&Run and other enabled features do not work for me.

My configuration has not been changed: all these options are enabled.

Logs shows a lot of errors:

17:35:32.252 |I| RdActions | :1 | Started 'Build.SolutionConfigurations' action at 1 time.
17:35:32.252 |I| RdActions | :1 | 'Build.SolutionConfigurations' Action execution failed. Action 'Build.SolutionConfigurations' isn't available
17:35:32.299 |I| RdActions | :1 | Started 'Build.SolutionPlatforms' action at 1 time.
17:35:32.299 |I| RdActions | :1 | 'Build.SolutionPlatforms' Action execution failed. Action 'Build.SolutionPlatforms' isn't available
17:35:39.917 |I| VsShortcutManager | :1 | Applying Idea keyboard scheme
17:35:40.139 |I| VsShortcutManager | :1 | Exporting key binding settings to C:\Users\anzhelika.deryabina\AppData\Local\JetBrains\ReSharperPlatformVs16\v202_3161fd64\Exported-20-11-05-17-35-40.vssettings
17:35:40.237 |W| | :1 | Invalid shortcut '·' Error converting a string value '·' to enumeration type Keys. Requested value '·' was not found.

--- EXCEPTION #1/4 [ArgumentException]
Message = “Requested value '·' was not found.”
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.ArgumentException
Data.ThreadLocalDebugInfo = GroupingEventHost.ExecuteExpiredEvents
HResult = E_INVALIDARG=COR_E_ARGUMENT=WIN32_ERROR_INVALID_PARAMETER=80070057
Source = mscorlib
StackTraceString = “
at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at JetBrains.StringEx.ToEnum[T](String s, Boolean ignoreCase)

--- Outer ---

--- EXCEPTION #2/4 [InvalidOperationException]
Message = “Error converting a string value '·' to enumeration type Keys.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
Data.ThreadLocalDebugInfo = GroupingEventHost.ExecuteExpiredEvents
InnerException = “Exception #1 at Root.InnerException.InnerException.InnerException”
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.Core
StackTraceString = “
at JetBrains.StringEx.ToEnum[T](String s, Boolean ignoreCase)
at JetBrains.Application.Shortcuts.KeyboardShortcut.ParseKeys(String s)

--- Outer ---

--- EXCEPTION #3/4 [KeyboardParseException]
Message = “Invalid shortcut '·'”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Application.Shortcuts.KeyboardParseException
Data.ThreadLocalDebugInfo = GroupingEventHost.ExecuteExpiredEvents
InnerException = “Exception #2 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Shell
StackTraceString = “
at JetBrains.Application.Shortcuts.KeyboardShortcut.ParseKeys(String s)
at JetBrains.Application.Shortcuts.KeyboardShortcut.Parse(String s)
at JetBrains.Application.Shortcuts.KeyboardShortcut.Parse(String shortcut, KeyboardShortcut& secondShortcut)
at JetBrains.Application.Shortcuts.ShortcutUtil.<>c__DisplayClass11_0.<ParseKeyboardShortcut>b__0()
at JetBrains.Util.OnError.Catch[TValue](Func`1 func)

--- Outer ---

--- EXCEPTION #4/4 [LoggerException]
Message = “Invalid shortcut '·'”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #3 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.OnError.Catch[TValue](Func`1 func)
at JetBrains.Application.Shortcuts.ShortcutUtil.ParseKeyboardShortcut(String text, OnError onerror)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBindingsConverter.ToActionShortcut(VsLocalizer localizer, String bindingString, OnError onerror)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBulkShortcutProcessor.<>c__DisplayClass10_0.<DoApply>b__2(String commandName, VsCommandScope scope, String shortcut, Boolean isRemove)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.<>c__DisplayClass0_1.<UpdateShortcuts>b__1(XmlElement element)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.ProcessXmlElementsRecursively(XmlElement element, Action`1 actionBeforeChildren, Action`1 actionAfterChildren)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.<>c__DisplayClass0_0.<UpdateShortcuts>b__0(StreamReader reader)
at JetBrains.Util.FileSystemPathOpenEx.ReadTextStream(FileSystemPath path, Action`1 λRead, Encoding encoding)
at JetBrains.VsIntegration.Shell.ActionManagement.ChangeExportedVsSettingsUtil.UpdateShortcuts(ILogger logger, TextWriter writer, FileSystemPath exportedSettingsPath, Func`5 isToBeRemoved, Action`2 writeShortcutsAction)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBulkShortcutProcessor.<>c__DisplayClass10_0.<DoApply>b__1(StreamWriter writer)
at JetBrains.Util.FileSystemPathOpenEx.WriteTextStreamDenyWrite(FileSystemPath path, Encoding encoding, Action`1 λWrite)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBulkShortcutProcessor.DoApply(Action`1 onSuccess)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBulkShortcutProcessor.<>c__DisplayClass9_0.<Apply>b__1()
at JetBrains.Util.ILoggerEx.Catch(ILogger thіs, Action F, ExceptionOrigin origin, LoggingLevel loggingLevel)
at JetBrains.VsIntegration.Shell.ActionManagement.VsBulkShortcutProcessor.Apply(IProgressIndicator mainIndicator, Action`2 collectShortcuts, Action`1 onSuccess)
at JetBrains.VsIntegration.Shell.ActionManagement.VsShortcutManager.BulkShortcutsApply(String taskName, IProgressIndicator progress, Action`2 collectShortcuts)
at JetBrains.VsIntegration.Shell.ActionManagement.VsShortcutManager.ApplyShortcutScheme(ShortcutScheme scheme, IProgressIndicator progress)
at JetBrains.VsIntegration.Shell.ActionManagement.VsShortcutManager.<>c__DisplayClass36_0.<Init_ShortcutScheme>b__5(IProgressIndicator pro)
at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary)
at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.<>c__DisplayClass11_0.<RunStartTask>b__0()
at JetBrains.Threading.JetDispatcher.Closure.Execute()
at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action`1 FTask, Func`3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState)
at JetBrains.UI.SrcView.Progress.UITaskExecutorRuns.ExecuteTask(String name, TaskCancelable cancelable, Action`1 task)
at JetBrains.VsIntegration.Shell.ActionManagement.VsShortcutManager.<Init_ShortcutScheme>b__36_2()
at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass39_0`1.<WhenEqualsOnce>b__0(PropertyChangedEventArgs`1 args)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.set_Value(TValue value)
at JetBrains.VsIntegration.UI.VsShowDialogGently.<>c__DisplayClass3_0.<.ctor>b__1()
at JetBrains.DataFlow.ISignalEx.<>c__DisplayClass1_0`1.<Advise>b__0(TValue value)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.Threading.GroupingEvent.Execute()
at JetBrains.Threading.GroupingEventHost.ExecuteExpiredEvents()
at JetBrains.Threading.GroupingEventHost.<OnClockTimerTick>b__22_0()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
at JetBrains.Threading.GroupingEventHost.OnClockTimerTick()
at JetBrains.Threading.GroupingEventHost.ClockTimer.OnTimerTick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What I have done:

  • clean cache via Resharper options
  • clean cache manually
  • update Resharper
  • update VS
  • remove Resharper
  • reinstall Resharper
  • Suspend/Resume Resharper
  • repair VS
  • of course restart windows, check for updates

Nothing helps. I am glad to share the full logs, but the message is too long for this form.

Versions of installed stuff:

Microsoft Visual Studio Professional 2019
Version 16.7.7
VisualStudio.16.Release/16.7.7+30621.155
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Professional

Visual C++ 2019 00435-60000-00000-AA819
Microsoft Visual C++ 2019

ASP.NET and Web Tools 2019 16.7.532.28833
ASP.NET and Web Tools 2019

ASP.NET Core Razor Language Services 16.1.0.2035807+72d099b977d3a85e65fa3b0614ca8cfc803fef02
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2019 16.7.532.28833
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 16.7.532.28833
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 16.7.532.28833
Azure Functions and Web Jobs Tools

C# Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

JetBrains ReSharper 2020.2.4 Build 202.0.20200925.65451
JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2020 JetBrains, Inc.

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30701.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.79+ge3567815aa.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

NuGet Package Manager 5.7.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio 16.0.30215.00
Microsoft Office Developer Tools for Visual Studio

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

SQL Server Data Tools 16.0.62008.03130
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools 16.0.20702.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development 1.0.9.30523
Visual C++ for Linux Development

Visual F# Tools 10.10.0.0 for F# 4.7 16.7.0-beta.20361.3+3ef6f0b514198c0bfa6c2c09fefe41a740b024d5
Microsoft Visual F# Tools 10.10.0.0 for F# 4.7

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions (Preview) 1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake

Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers

WiX Toolset Visual Studio Extension 1.0.0.4
WiX Toolset Visual Studio Extension version 1.0.0.4
Copyright (c) .NET Foundation and contributors. All rights reserved.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

2 comments
Comment actions Permalink

I work at the same team on the same solution and also have the issue. All I can add that it happened for me when I've added the new file. From then I could only do global search for files in cache.

Here's how itlooks in logs:

11:43:49.780 |I| AddVsVersionToLogs | :1 | JetBrains ReSharper 2020.2.4 Build 202.0.20200925.65451
11:43:49.784 |I| AddVsVersionToLogs | :1 | Running under Visual Studio Professional 2019 version 16.7.30621.155, Hive: 16.0_7b4a81a6
11:43:52.315 |I| RemoteInstancesManagerWindowsImpl| :1 | Registering process in ROT: dotTrace.Viewers.14460, Process name: devenv
11:44:02.270 |I| VsSolutionManager15 | :1 | VSSolutionManager::VsSolutionWrapperLifetimes: Solution instance created 63880915
11:44:04.525 |I| SilentCleanupComponent | :1 | Starting silent cleanup component
11:44:04.527 |I| SilentCleanupComponent | :1 | Checking location C:\Users\arsenii.baskaev\AppData\Local\JetBrains\Shared\vAny\Cache, lifespan 30.00:00:00. Will delete directories older than 07-Oct-20 8:44:04 AM
11:44:09.918 |W| VsReSharperMainMenuFixesSinceVs16| :1 | ReSharper menu is not found in the main VS menu.
11:44:16.525 |I| UnitTestServer | :1 | UnitTestServer started on port 51782
11:44:16.769 |I| FqnNavigatorWcfService | :21 | Initializing the host, lifetime: 37493736, address: net.pipe://localhost/dotMemory/ideNavigation/14460
11:44:17.365 |W| VsWorkspaceListener | :1 | Could not get IVsSolutionWorkspaceService. System.InvalidOperationException. Could not query the service provider for the service ID {66685CD1-6BE5-4285-A1A4-1CEBC413F04F}.
11:44:17.882 |I| TriggerSolutionBuildAfterOpen | :1 | not requested
11:44:17.882 |I| TriggerSolutionBuildAfterOpen | :1 | not requested at all
11:44:17.882 |I| TriggerSolutionBuildAfterOpen | :1 | !buildRequested
11:44:18.330 |I| IncrementalBuildTrigger | :1 | New current runner JetBrains.VsIntegration.IDE.SolutionBuilder.VsSolutionBuilderRunner
11:44:18.330 |I| IncrementalBuildTrigger | :1 | Runner isReady = true
11:44:18.331 |I| IncrementalBuildTrigger | :1 | !myShouldBuild
11:44:20.228 |I| VsSolutionManager15 | :1 | VSSolutionManager::VsSolutionWrapperLifetimes: Solution load done 63880915. Lifetime.IsTerminated=False
11:44:21.185 |I| InitialExplorationTask | JetPool(S) #3:35 | Initial unit-test exploration started
11:44:21.187 |I| ContinuousTestingIndicatorVisibilityDetector| :1 | Initializing continuous testing indicator
11:44:21.198 |I| InitialExplorationTask | JetPool(S) #3:35 | Initial unit-test exploration completed
11:44:27.567 |I| UnitTestSessionRepository2 | :1 | << (Opening) Loading sessions from persistent storage
11:44:27.568 |I| UnitTestSessionRepository2 | :1 | >> (Closing) Loading sessions from persistent storage
11:44:42.680 |I| RdActions | :1 | Started 'ShowLog' action at 1 time.
11:44:42.831 |I| RdActions | :1 | 'ShowLog' Action execution was done. True
11:44:42.835 |I| RdActions | :1 | 'ShowLog' Action execution session is terminated (by frontend possibly).
11:44:56.704 |I| RdActions | :1 | Started 'GotoImplementations' action at 1 time.
11:44:56.705 |I| RdActions | :1 | 'GotoImplementations' Action execution failed. Action 'GotoImplementations' isn't available
11:45:12.283 |I| RdActions | :1 | Started 'ExploreStackTrace' action at 1 time.
11:45:12.750 |I| RdActions | :1 | 'ExploreStackTrace' Action execution was done. True
11:45:12.750 |I| RdActions | :1 | 'ExploreStackTrace' Action execution session is terminated (by frontend possibly).
11:46:02.673 |I| RdActions | :1 | Started 'ShowSolutionBuilderToolWindow' action at 1 time.
11:46:02.733 |I| RdActions | :1 | 'ShowSolutionBuilderToolWindow' Action execution was done. True
11:46:02.733 |I| RdActions | :1 | 'ShowSolutionBuilderToolWindow' Action execution session is terminated (by frontend possibly).

Here the Shortcut Explorer and Stack Explorer are opened, but it looks like ReSharper does not see the solution files.

0
Comment actions Permalink

Aand the solution was found!

We had merge conflicts in .sln file, which did not show any errors. Close the solution, edit it with notepad, and reload VS. Then everything is fine

 

1

Please sign in to leave a comment.