R# 2020.3 EAP6 Странная ошибка во всех файлах одного проекта в солюшене
От: rameel https://github.com/rsdn/CodeJam
Дата: 05.11.20 20:51
Оценка:
В одном из многих проектов в солюшене решарпер ругается, что переменная, аргумент или даже метод не используются, хотя буквально на следующей же строчке есть использование. При открытии такого файла из проекта в Exception Browser решарпера увеличивается счетчик ошибки One or more errors occurred. Tuple type represents a struct and thus cannot have a nullable annotation
http://files.rsdn.org/61389/resharper-2020-eap6-03.png

http://files.rsdn.org/61389/resharper-2020-eap6-04.png

  Текст исключения
ManagedThreadName = JetPool(L) #3
ManagedThreadName = JetPool(L) #7
SubProducts.0 = JetBrains Dynamic Program Analysis 2020.3 EAP 6 Build 2020.3.20201104.94123-eap06
SubProducts.1 = JetBrains ReSharper 2020.3 EAP 6 Build 2020.3.20201104.93620-eap06

One or more errors occurred. Tuple type represents a struct and thus cannot have a nullable annotation

--- EXCEPTION #1/3 [AssertionException]
Message = “Tuple type represents a struct and thus cannot have a nullable annotation”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.Diagnostics.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Lifetimes
StackTraceString = “
  at JetBrains.Diagnostics.Assertion.Fail(String message) in /opt/buildAgent/work/b0c387553c046bbb/rd-net/Lifetimes/Diagnostics/Assertion.cs:line 96
     at JetBrains.Diagnostics.Assertion.Assert(Boolean condition, String message) in /opt/buildAgent/work/b0c387553c046bbb/rd-net/Lifetimes/Diagnostics/Assertion.cs:line 23
     at JetBrains.ReSharper.Psi.Impl.Types.TupleType.WithNullableAnnotation(NullableAnnotation annotation)
     at JetBrains.ReSharper.Psi.AnnotatedTypeBase`1.WithNullableAnnotation(NullableAnnotation annotation)
     at JetBrains.ReSharper.Psi.Impl.Resolve.SubstitutionImpl.ApplyToDeclaredType(IDeclaredType declaredType)
     at JetBrains.ReSharper.Psi.Impl.Resolve.SubstitutionBase.Apply(IType type)
     at JetBrains.ReSharper.Psi.InvocableSignature.GetEqualityParameterType(Int32 index)
     at JetBrains.ReSharper.Psi.SignatureComparers.SignatureComparerBase.CompareParameters(InvocableSignature signature1, InvocableSignature signature2)
     at JetBrains.ReSharper.Psi.SignatureComparers.SignatureComparerBase.CompareWithoutNameAndWithoutTypeParameters(InvocableSignature signature1, InvocableSignature signature2)
     at JetBrains.ReSharper.Psi.SignatureComparers.SignatureComparerBase.CompareWithoutName(InvocableSignature signature1, InvocableSignature signature2)
     at JetBrains.ReSharper.Psi.SignatureComparers.SignatureComparerBase.Compare(InvocableSignature signature1, InvocableSignature signature2)
     at JetBrains.ReSharper.Psi.SignatureComparers.SignatureComparerBase.Equals(InvocableSignature x, InvocableSignature y)
     at JetBrains.ReSharper.Psi.InvocableSignature.Equals(Object obj)
     at System.Object.Equals(Object objA, Object objB)
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.OverridableMemberComparator.Compare(IOverridableMember member, ISubstitution substitution, Boolean checkReturnType)
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.<FindOverridableInTypeByExample>d__2.MoveNext()
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.<FindMembersInSuperInterfaces>d__6.MoveNext()
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.<GetImmediateImplement>d__11.MoveNext()
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.<GetImmediateSuperMembers>d__10.MoveNext()
     at JetBrains.ReSharper.Psi.Impl.OverridableMemberImpl.GetSuperMembers(OverridableMemberInstance member, Boolean searchQuasi, IProgressIndicator progressIndicator, Boolean consumeRootOnly)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpTypeConstraintsUtil.TypeUsageConstraintsFromReference(IReference reference, IType elementType, ICSharpExpression expression)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpTypeConstraintsUtil.TypeConstraintsFromUsage(IDeclaredElement element, IType elementType, ICSharpExpression expression, List`1 variablesToCorrectType)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpUsageAnalyzer.TypeConstraintsFromUsage(IDeclaredElement declaredElement, IType elementType, IExpression expression)
     at JetBrains.ReSharper.Daemon.UsageChecking.UsageAnalyzer.AnalyseParameterUsage(IParameter parameter, IExpression expression, IParameters parameters)
     at JetBrains.ReSharper.Daemon.UsageChecking.UsageAnalyzer.ProcessUsage(IDeclaredElement element, ITreeNode node, IReference reference, IParameters parameters)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpUsageAnalyzer.ProcessUsage(IDeclaredElement element, ITreeNode node, IReference reference, IParameters parameters)
     at JetBrains.ReSharper.Daemon.UsageChecking.UsageAnalyzer.ProcessElement(ITreeNode treeNode, IParameters parameters)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpUsageAnalyzer.ProcessElement(ITreeNode node, IParameters parameters)
     at JetBrains.ReSharper.Daemon.UsageChecking.ScopeProcessor.ProcessElement(ITreeNode element)
     at JetBrains.ReSharper.Daemon.UsageChecking.ScopeProcessor.ProcessAfterInterior(ITreeNode element)
     at JetBrains.ReSharper.Daemon.CSharp.Stages.UsageChecking.CSharpScopeProcessor.ProcessAfterInterior(ITreeNode element)
     at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants(ITreeNode root, IRecursiveElementProcessor processor)
     at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessThisAndDescendants(ITreeNode root, IRecursiveElementProcessor processor)
     at JetBrains.ReSharper.Daemon.UsageChecking.CommonCollectUsagesPsiFileProcessor.<>c__DisplayClass32_0.<ProcessMemberDeclaration>b__0()
     at JetBrains.ReSharper.Psi.Extensions.<>c__DisplayClass0_0.<EnqueueJob>b__0()
     at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
     at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass36_0.<Create>b__1(Object state)
     at System.Threading.Tasks.Task.InnerInvoke()
     at System.Threading.Tasks.Task.Execute()
”

--- Outer ---

--- EXCEPTION #2/3 [AggregateException]
Message = “One or more errors occurred.”
ExceptionPath = Root.InnerException
ClassName = System.AggregateException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Core
InnerExceptions.#0 = “Exception #1 at Root.InnerException.InnerException”
StackTraceString = “
  at JetBrains.Application.Threading.Tasks.TaskBarrier.<WaitAll>b__25_0(Lifetime waitAllLifetime)
     at JetBrains.Lifetimes.Lifetime.Using(Action`1 action) in /opt/buildAgent/work/b0c387553c046bbb/rd-net/Lifetimes/Lifetimes/Lifetime.cs:line 404
     at JetBrains.Application.Threading.Tasks.TaskBarrier.WaitAll()
     at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources()
     at JetBrains.Util.SafeDisposable.DisposeInternal()
     at JetBrains.Util.SafeDisposable.Dispose()
     at JetBrains.ReSharper.Daemon.UsageChecking.CollectUsagesStageProcess.Execute(Action`1 committer)
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
”

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “One or more errors occurred.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = DaemonThread
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper 2020.3 EAP 6 Build 203.0.20201103.143715-eap06”
Data.SubProducts.#0 = “JetBrains Dynamic Program Analysis 2020.3 EAP 6 Build 2020.3.20201104.94123-eap06”
Data.SubProducts.#1 = “JetBrains ReSharper 2020.3 EAP 6 Build 2020.3.20201104.93620-eap06”
Data.RuntimePlatform = Windows
Data.OsVersion = “Microsoft Windows NT 10.0.20251.0”
Data.DotNetFramework = “4.8.04161 Release 528449”
Data.SccRevisionEnv = “
  Platform\Core\Shell:
      git::refs/heads/net203-eap6::8791ea134f55d81df8b5eb59aa92543fb5623cd5
  
  Platform\VisualStudio:
      git::refs/heads/net203-eap6::6d571bf26699d523cfa20e69bece064a18490a44
”
Data.VsVersion = 16.8.30626.31
Data.VsPreview = True
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Diagnostics.LogEx.Error(ILog this, Exception ex, String message) in /opt/buildAgent/work/b0c387553c046bbb/rd-net/Lifetimes/Diagnostics/LogEx.cs:line 244
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass48_1.<DoHighlighting>g__Stage|2(IDaemonStage stage)
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass51_1.<PrepareRunActionForStages>b__0()
     at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass22_1.<EnqueueDependentJobs>b__2()
     at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
     at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass36_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.TaskBarrier.<>c__DisplayClass25_0.<WaitAll>b__2()
     at JetBrains.Util.Logging.Logger.Catch(Action action)
     at JetBrains.Application.Threading.Tasks.TaskBarrier.<WaitAll>b__25_0(Lifetime waitAllLifetime)
     at JetBrains.Lifetimes.Lifetime.Using(Action`1 action) in /opt/buildAgent/work/b0c387553c046bbb/rd-net/Lifetimes/Lifetimes/Lifetime.cs:line 404
     at JetBrains.Application.Threading.Tasks.TaskBarrier.WaitAll()
     at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources()
     at JetBrains.Util.SafeDisposable.DisposeInternal()
     at JetBrains.Util.SafeDisposable.Dispose()
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass48_0.<DoHighlighting>b__0()
     at JetBrains.Application.Notifications.PerformanceUserNotifications.WithPerformanceNotification(TimeSpan performanceThreshold, String title, String body, Action action)
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.DoHighlighting(DaemonProcessKind processKind, Action`1 commiter, IContextBoundSettingsStore contextBoundSettingsStore, Action onFastStagesCompleted)
     at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.DoHighlighting(Boolean globalAnalysisStages)
     at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.<>c__DisplayClass34_0.<EnqueueHighlightingJob>b__0()
     at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
     at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass36_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.SingleThreadExecutor.InternalExecute(Task task)
     at JetBrains.Application.Threading.Tasks.SingleThreadExecutor.ThreadProc()
     at ANNOTATED: JetBrains.Application.Threading.Tasks.SingleThreadExecutor #8.DaemonThread(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.SingleThreadExecutor.<>c__DisplayClass10_0.<.ctor>b__4()
     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()
”
... << RSDN@Home 1.0.0 alpha 5 rev. 0>>
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.