Resharper 2019.1 not running unit tests

Hey all,

I am getting an error when trying to run nunit test through resharper. As soon as this occurs i lose the context menu options also. Log below:

 

16:50:17.323 |E| | JetPool(S) #2:35 | Exception during background update: The given key was not present in the dictionary

--- EXCEPTION #1/2 [KeyNotFoundException]
Message = “The given key was not present in the dictionary”
ExceptionPath = Root.InnerException
ClassName = System.Collections.Generic.KeyNotFoundException
HResult = COR_E_KEYNOTFOUND=80131577
Source = JetBrains.Platform.Core
StackTraceString = “
at JetBrains.Util.DataStructures.CompactMapBase`4.get_Item(TKey key)
at JetBrains.ReSharper.UnitTestFramework.Caches.UnitTestElementIdToIdentityMap.GetBy(Int32 id)
at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.JetHashSet`1..ctor(IEnumerable`1 enumerable, IEqualityComparer`1 comparer)
at System.Linq.EnumerableExJet.ToJetHashSet[TSource](IEnumerable`1 source)
at JetBrains.ReSharper.UnitTestFramework.Caches.UnitTestElementCache.CachedElements.GetOrQueryElements(UnitTestElementIdToIdentityMap uteIdToIdentityMap, Lazy`1 repository)
at JetBrains.ReSharper.UnitTestFramework.Caches.OneToOneLevelDbCache`1.GetBy(TKey key)
at JetBrains.ReSharper.UnitTestFramework.Criteria.ProjectCriterion.EvaluationOptimization.EvaluateCriterion(ProjectCriterion criterion)
at lambda_method(Closure , Object )
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.OptimizationDefinition`1.SingleParam.TryFetch(Expression expression)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.WhereEvaluator.Visit(Expression node)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.WhereEvaluator.EvaluateAsSet(Expression expr)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.WhereEvaluator.VisitBinary(BinaryExpression node)
at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.WhereEvaluator.Visit(Expression node)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.WhereEvaluator.EvaluateAsReadOnlySet(Expression expr)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Evaluator.VisitMethodCall(MethodCallExpression node)
at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider`1.Execute(Expression expr)
at JetBrains.ReSharper.UnitTestFramework.UnitTestElementRepository.LockingQueryProvider.Execute(Expression expr)
at JetBrains.ReSharper.UnitTestFramework.UnitTestElementRepository.LockingQuery`1.GetEnumerator()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at JetBrains.dotMemory.VisualStudio.Common.Unit.InstallDotMemoryUnitSessionAction.GetInvariantProjectOrNull(IEnumerable`1 projects)
at JetBrains.dotMemory.VisualStudio.Common.Unit.InstallDotMemoryUnitSessionAction.GetProject(IDataContext context)
at JetBrains.dotMemory.VisualStudio.Common.Unit.InstallDotMemoryUnitActionBase.Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate)
at JetBrains.Application.UI.ActionsRevised.Handlers.ExecutableActionEvaluator.Evaluate(IAction handler, EvaluatedAction result, IDataContext context)
at JetBrains.ReSharper.Feature.Services.Actions.ServicesActionEvaluator.Evaluate(IAction handler, EvaluatedAction result, IDataContext context)
at JetBrains.Application.UI.ActionsRevised.Handlers.BoundAction.Evaluate(IDataContext context)
at JetBrains.Application.UI.ActionsRevised.Handlers.ActionHandlers.Evaluate(IActionDefWithId action, IDataContext context)
at JetBrains.Application.UI.ActionSystem.ActionBar.ActionsAsyncAvailability.<>c__DisplayClass8_0.<UpdateAsyncCore>b__4(Lifetime lt)

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Exception during background update: The given key was not present in the dictionary”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #2”
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Application.UI.ActionSystem.ActionBar.ActionsAsyncAvailability.<>c__DisplayClass8_0.<UpdateAsyncCore>b__4(Lifetime lt)
at JetBrains.Lifetimes.Lifetime.Using(Action`1 action)
at JetBrains.Application.UI.ActionSystem.ActionBar.ActionsAsyncAvailability.<>c__DisplayClass8_0.<UpdateAsyncCore>b__1()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass39_0.<Create>b__1(Object state)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.JetPool(S) #2(Action )
at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<Start>b__20_0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
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 System.Threading.ThreadHelper.ThreadStart()

1 comment
Comment actions Permalink
Official comment

Hello Stephen! Please install R# 2019.1.1 hotfix https://www.jetbrains.com/resharper/download/ which fixes exactly this issue. Thanks!

Please sign in to leave a comment.