Null Reference Exception During Code Inspection

I am trying to move our build process over to use TeamCity but while try to use the built in code inspection I am getting a null reference error. Here is the log output:

[14:47:39][Step 2/4] JetBrains Inspect Code 2017.1.1
[14:47:39][Step 2/4] Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0
[14:47:48][Step 2/4] Using toolset version 15.0 from "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
[14:47:56][Step 2/4] Enabled solution-wide analysis according to Inspect Code command line Setting.
[14:48:29][Step 2/4] Object reference not set to an instance of an object.
[14:48:29][Step 2/4]
[14:48:29][Step 2/4] --- EXCEPTION #1/2 [NullReferenceException]
[14:48:29][Step 2/4] Message = "Object reference not set to an instance of an object."
[14:48:29][Step 2/4] ExceptionPath = Root.InnerException
[14:48:29][Step 2/4] ClassName = System.NullReferenceException
[14:48:29][Step 2/4] HResult = COR_E_NULLREFERENCE=E_POINTER=80004003
[14:48:29][Step 2/4] Source = JetBrains.Platform.ProjectModel.Host
[14:48:29][Step 2/4] StackTraceString = "
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.MsBuild.Extensions.ProjectReferencesBuilder.MatchToReference(FileSystemPath referencePath, List`1 referenceItems)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.MsBuild.Extensions.ProjectReferencesBuilder.BuildProjectReferences(MsBuildProject msBuildProject, IProjectProperties projectProperties)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.MsBuild.Internal.MsBuildDescriptorBuilderService.BuildProjectReferencesDescriptor(MsBuildProject msBuildProject, IProjectDescriptor projectDescriptor)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.MsBuild.MsBuildProjectHost.MsBuildProjectHostLoadSession.BuildDescriptors(ProjectHostChange change)
[14:48:29][Step 2/4] "
[14:48:29][Step 2/4]
[14:48:29][Step 2/4] --- Outer ---
[14:48:29][Step 2/4]
[14:48:29][Step 2/4] --- EXCEPTION #2/2 [LoggerException]
[14:48:29][Step 2/4] Message = "Object reference not set to an instance of an object."
[14:48:29][Step 2/4] ExceptionPath = Root
[14:48:29][Step 2/4] ClassName = JetBrains.Util.LoggerException
[14:48:29][Step 2/4] InnerException = "Exception #1 at Root.InnerException"
[14:48:29][Step 2/4] HResult = COR_E_APPLICATION=80131600
[14:48:29][Step 2/4] StackTraceString = "
[14:48:29][Step 2/4] at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.MsBuild.MsBuildProjectHost.MsBuildProjectHostLoadSession.BuildDescriptors(ProjectHostChange change)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHost.Load(ICollection`1 changesToAdd, ICollection`1 changesToUpdate, ICollection`1 changesToRemove, FileSystemPath logPath)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHost.<>c__DisplayClass6.<LoadAndSync>b__3()
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.DefaultProjectHostExecutor.Execute(Func`1 executeAction, Action`1 notifyAction, Boolean async)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHost.BuildSolutionStructure(SolutionStructureChange solutionStructureChange)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance)
[14:48:29][Step 2/4] at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostManager.OpenSolution(FileSystemPath location, Object cookie)
[14:48:29][Step 2/4] at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
[14:48:29][Step 2/4] at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.OpenSolution(FileSystemPath solutionFilePath, IShellLocks shellLocks, ILogger logger, SolutionHostManager solutionHost)
[14:48:29][Step 2/4] at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.Main(IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw)
[14:48:29][Step 2/4] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[14:48:29][Step 2/4] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[14:48:29][Step 2/4] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[14:48:29][Step 2/4] at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass4.<.ctor>b__0()
[14:48:29][Step 2/4] at JetBrains.Util.Logging.Logger.Catch(Action action)
[14:48:29][Step 2/4] at JetBrains.Threading.JetDispatcher.Closure.Execute()
[14:48:29][Step 2/4] at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[14:48:29][Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[14:48:29][Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeImpl()
[14:48:29][Step 2/4] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[14:48:29][Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[14:48:29][Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[14:48:29][Step 2/4] at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[14:48:29][Step 2/4] at System.Windows.Threading.DispatcherOperation.Invoke()
[14:48:29][Step 2/4] at System.Windows.Threading.Dispatcher.ProcessQueue()
[14:48:29][Step 2/4] at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[14:48:29][Step 2/4] at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[14:48:29][Step 2/4] at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[14:48:29][Step 2/4] at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[14:48:29][Step 2/4] at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[14:48:29][Step 2/4] at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[14:48:29][Step 2/4] at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[14:48:29][Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[14:48:29][Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[14:48:29][Step 2/4] at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
[14:48:29][Step 2/4] at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
[14:48:29][Step 2/4] at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
[14:48:29][Step 2/4] at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
[14:48:29][Step 2/4] at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
[14:48:29][Step 2/4] at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
[14:48:29][Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
[14:48:29][Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
[14:48:29][Step 2/4] at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
[14:48:29][Step 2/4] "
[14:48:29][Step 2/4]
[14:48:29][Step 2/4] Unexpected error during project loading: Object reference not set to an instance of an object.
[14:51:16][Step 2/4] No items were found to inspect.
[14:51:20][Step 2/4] Process exited with code 1

 

What can I do to fix this?

0
5 comments

Hi Thomas,

thanks for the request. Could you try using the last release of the resharper tools? Several issues have been addressed in between and it might help. To do so, please install it via "Administration - Tools". If the issue reproduces as well with the latest one, please report back so that we can take a deeper look into it.

0
Avatar
Permanently deleted user

I have updated ReSharper tools but I am now getting a different error. Here is what I think is the important part (I see the ninject warning but by this point the code has already compiled successfully so it didn't seem like that was the problem. Also, its in a subdirectory of D:\__source_code\jpayrepo, and the bin folder has this reference so I'm not sure why the warning is showing up. Furthermore, the projects that use this particular reference are not being analyzed by ReSharper tools.):

[10:37:02] : Running Inspections
[10:37:02]E: Step 2/4: Inspect API (Inspections (.NET)) (5m:54s)
[10:37:02] : [Step 2/4] Starting: C:\TeamCity\buildAgent\tools\jetbrains.resharper-clt.2017.2.0\tools\inspectcode.exe --config=C:\TeamCity\buildAgent\temp\agentTmp\dotnet-tools-inspectcode.config --swea
[10:37:02] : [Step 2/4] in directory: D:\__source_code\jpayrepo
[10:37:03] : [Step 2/4] JetBrains Inspect Code 2017.2
[10:37:03] : [Step 2/4] Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0
[10:37:20] : [Step 2/4] Enabled solution-wide analysis according to Inspect Code command line Setting.
[10:37:22] : [Step 2/4] Build tool by version not found
[10:40:58]W: [Step 2/4] Can't resolve reference Ninject: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[10:40:58] : [Step 2/4]
[10:40:58]W: [Step 2/4] Can't resolve reference Ninject: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Ninject, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[10:40:58] : [Step 2/4]
[10:41:41]W: [Step 2/4] Error running main method JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain::Main. Exception has been thrown by the target of an invocation. There're not reached sync points: PsiCaches: Caches are running

 

Less important I think but is not duplicated:

[10:41:41]W: [Step 2/4] --- EXCEPTION #1/3 [TimeoutException]
[10:41:41]W: [Step 2/4] Message = "
[10:41:41]W: [Step 2/4] There're not reached sync points:
[10:41:41]W: [Step 2/4] PsiCaches: Caches are running
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4] ExceptionPath = Root.InnerException.InnerException
[10:41:41]W: [Step 2/4] ClassName = System.TimeoutException
[10:41:41]W: [Step 2/4] HResult = COR_E_TIMEOUT=80131505
[10:41:41]W: [Step 2/4] Source = inspectcode
[10:41:41]W: [Step 2/4] StackTraceString = "
[10:41:41]W: [Step 2/4] at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.PumpAndWait(ISolution solution)
[10:41:41]W: [Step 2/4] at JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.Main(Lifetime lifetime, IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw)
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- Outer ---
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- EXCEPTION #2/3 [TargetInvocationException]
[10:41:41]W: [Step 2/4] Message = "Exception has been thrown by the target of an invocation."
[10:41:41]W: [Step 2/4] ExceptionPath = Root.InnerException
[10:41:41]W: [Step 2/4] ClassName = System.Reflection.TargetInvocationException
[10:41:41]W: [Step 2/4] InnerException = "Exception #1 at Root.InnerException.InnerException"
[10:41:41]W: [Step 2/4] HResult = COR_E_TARGETINVOCATION=80131604
[10:41:41]W: [Step 2/4] Source = mscorlib
[10:41:41]W: [Step 2/4] StackTraceString = "
[10:41:41]W: [Step 2/4] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[10:41:41]W: [Step 2/4] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[10:41:41]W: [Step 2/4] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass4.<.ctor>b__0()
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- Outer ---
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- EXCEPTION #3/3 [LoggerException]
[10:41:41]W: [Step 2/4] Message = "Error running main method JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain::Main. Exception has been thrown by the target of an invocation."
[10:41:41]W: [Step 2/4] ExceptionPath = Root
[10:41:41]W: [Step 2/4] ClassName = JetBrains.Util.LoggerException
[10:41:41]W: [Step 2/4] InnerException = "Exception #2 at Root.InnerException"
[10:41:41]W: [Step 2/4] HResult = COR_E_APPLICATION=80131600
[10:41:41]W: [Step 2/4] StackTraceString = "
[10:41:41]W: [Step 2/4] at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception ex, String message)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass4.<.ctor>b__0()
[10:41:41]W: [Step 2/4] at JetBrains.Util.Logging.Logger.Catch(Action action)
[10:41:41]W: [Step 2/4] at JetBrains.Threading.JetDispatcher.Closure.Execute()
[10:41:41]W: [Step 2/4] at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[10:41:41]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeImpl()
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[10:41:41]W: [Step 2/4] at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.Invoke()
[10:41:41]W: [Step 2/4] at System.Windows.Threading.Dispatcher.ProcessQueue()
[10:41:41]W: [Step 2/4] at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[10:41:41]W: [Step 2/4] at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[10:41:41]W: [Step 2/4] at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[10:41:41]W: [Step 2/4] at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[10:41:41]W: [Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[10:41:41]W: [Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[10:41:41]W: [Step 2/4] at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
[10:41:41]W: [Step 2/4] at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
[10:41:41]W: [Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
[10:41:41]W: [Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
[10:41:41]W: [Step 2/4] at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] Component descriptor JetBrains.ReSharper.Psi.TreeBuilder.MarkerListPool [Singleton, Disposed] is disposed and cannot be accessed

 

And then 350,000 lines similar to:

[10:41:41]W: [Step 2/4] --- EXCEPTION #1/2 [InvalidOperationException]
[10:41:41]W: [Step 2/4] Message = "Component descriptor JetBrains.ReSharper.Psi.TreeBuilder.MarkerListPool [Singleton, Disposed] is disposed and cannot be accessed"
[10:41:41]W: [Step 2/4] ExceptionPath = Root.InnerException
[10:41:41]W: [Step 2/4] ClassName = System.InvalidOperationException
[10:41:41]W: [Step 2/4] HResult = COR_E_INVALIDOPERATION=80131509
[10:41:41]W: [Step 2/4] Source = JetBrains.Platform.ComponentModel
[10:41:41]W: [Step 2/4] StackTraceString = "
[10:41:41]W: [Step 2/4] at JetBrains.Application.Components.SingletonDescriptor.GetValue()
[10:41:41]W: [Step 2/4] at JetBrains.Application.Components.ComponentContainerEx.GetComponent[TInterface](IComponentContainer container)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.TreeBuilder.PsiBuilder..ctor(ILexer lexer, CompositeNodeType rootType, Int32 start, Int32 stop, IPsiBuilderTokenFactory tokenFactory, Lifetime lifetime)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.JavaScript.Parsing.JavaScriptTreeBuilder..ctor(ILexer lexer, Lifetime lifetime, Boolean enableJsx, Boolean supportExperimentalFeatures)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.JavaScript.Parsing.JavaScriptQuickParser.CreateTreeBuilder(Lifetime lifetime)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.JavaScript.Parsing.JavaScriptQuickParser.ParseFile()
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.LanguageService.ParseFile(ILexer lexer, IPsiSourceFile sourceFile)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.CachedPsiFile..ctor(IPsiSourceFile sourceFile, PsiLanguageType langType, IDocument document, ISecondaryRangeTranslator secondaryTranslator, ReferenceProviderFactory referenceProviderFactory, ILexerFactory lexerFactory, IShellLocks locks)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCommit.BuildGeneratedPsiFile(CommitBuildResult primaryBuildResult, ISecondaryDocumentGenerationResult generationResult)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCommit.BuildSecondary(CommitBuildResult primaryBuildResult, Boolean reparse, IPsiFilesCache psiFilesCache)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCommit.Build(ICollection`1 sourceFilesToCommit, Boolean reparse, IPsiFilesCache psiFilesCache)
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- Outer ---
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] --- EXCEPTION #2/2 [LoggerException]
[10:41:41]W: [Step 2/4] Message = "Component descriptor JetBrains.ReSharper.Psi.TreeBuilder.MarkerListPool [Singleton, Disposed] is disposed and cannot be accessed"
[10:41:41]W: [Step 2/4] ExceptionPath = Root
[10:41:41]W: [Step 2/4] ClassName = JetBrains.Util.LoggerException
[10:41:41]W: [Step 2/4] InnerException = "Exception #1 at Root.InnerException"
[10:41:41]W: [Step 2/4] HResult = COR_E_APPLICATION=80131600
[10:41:41]W: [Step 2/4] StackTraceString = "
[10:41:41]W: [Step 2/4] at JetBrains.Util.Logging.Logger.LogException(Exception ex)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCommit.Build(ICollection`1 sourceFilesToCommit, Boolean reparse, IPsiFilesCache psiFilesCache)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCache2.ProduceBucket(KeyValuePair`2 pair)
[10:41:41]W: [Step 2/4] at JetBrains.Util.Caches.WeakParametrizedCachedValue`3.GetOrCreate(TParameter parameter, T& result, Action`1 afterCreate)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCache2.GetOrCreateBucket(IPsiFiles psiFiles, IPsiSourceFile sourceFile)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Files.PsiFilesCache2.GetTransientCookie(IPsiFiles psiFiles, IPsiSourceFile sf)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.BuildSourceFile(IPsiSourceFile sourceFile, IDocument doc)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClassa.<ExecuteUpdate>b__3(IPsiSourceFile file, IDocument doc)
[10:41:41]W: [Step 2/4] at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass18`2.<WrappedJob>b__17()
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.TaskHostEx.<>c__DisplayClassc`2.<PreprocessSingleThreadedAndParallelize>b__8()
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClasse.<Create>b__a(Object state)
[10:41:41]W: [Step 2/4] at System.Threading.Tasks.Task.Execute()
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
[10:41:41]W: [Step 2/4] at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
[10:41:41]W: [Step 2/4] at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:41:41]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[10:41:41]W: [Step 2/4] at System.Threading.ThreadHelper.ThreadStart()
[10:41:41]W: [Step 2/4] "
[10:41:41]W: [Step 2/4]
[10:41:41]W: [Step 2/4] Component descriptor JetBrains.ReSharper.Psi.TreeBuilder.MarkerListPool [Singleton, Disposed] is disposed and cannot be accessed

 

At some point the exceptions change from the above to the below:

[10:42:20]W: [Step 2/4] --- EXCEPTION #1/3 [InvalidOperationException]
[10:42:20]W: [Step 2/4] Message = "The change provider SolutionElement(Name : APIRefactor) is not registered in the Incoming Nodes map."
[10:42:20]W: [Step 2/4] ExceptionPath = Root.InnerException.InnerException
[10:42:20]W: [Step 2/4] ClassName = System.InvalidOperationException
[10:42:20]W: [Step 2/4] HResult = COR_E_INVALIDOPERATION=80131509
[10:42:20]W: [Step 2/4] Source = JetBrains.Platform.Shell
[10:42:20]W: [Step 2/4] StackTraceString = "at JetBrains.Application.changes.ChangeManagerImpl.OnProviderChanged(IChangeProvider changeProvider, Object change, ITaskExecutor executor)"
[10:42:20]W: [Step 2/4]
[10:42:20]W: [Step 2/4] --- Outer ---
[10:42:20]W: [Step 2/4]
[10:42:20]W: [Step 2/4] --- EXCEPTION #2/3 [InvalidOperationException]
[10:42:20]W: [Step 2/4] Message = "Error firing a change with the Change Provider."
[10:42:20]W: [Step 2/4] ExceptionPath = Root.InnerException
[10:42:20]W: [Step 2/4] ClassName = System.InvalidOperationException
[10:42:20]W: [Step 2/4] InnerException = "Exception #1 at Root.InnerException.InnerException"
[10:42:20]W: [Step 2/4] HResult = COR_E_INVALIDOPERATION=80131509
[10:42:20]W: [Step 2/4]
[10:42:20]W: [Step 2/4] --- Outer ---
[10:42:20]W: [Step 2/4]
[10:42:20]W: [Step 2/4] --- EXCEPTION #3/3 [LoggerException]
[10:42:20]W: [Step 2/4] Message = "Error firing a change with the Change Provider."
[10:42:20]W: [Step 2/4] ExceptionPath = Root
[10:42:20]W: [Step 2/4] ClassName = JetBrains.Util.LoggerException
[10:42:20]W: [Step 2/4] InnerException = "Exception #2 at Root.InnerException"
[10:42:20]W: [Step 2/4] HResult = COR_E_APPLICATION=80131600
[10:42:20]W: [Step 2/4] StackTraceString = "
[10:42:20]W: [Step 2/4] at JetBrains.Util.Logging.Logger.LogException(Exception ex)
[10:42:20]W: [Step 2/4] at JetBrains.Application.changes.ChangeManagerImpl.OnProviderChanged(IChangeProvider changeProvider, Object change, ITaskExecutor executor)
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.<>c__DisplayClass4.<EndTransaction>b__0()
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.EndTransaction(ProjectModelBatchChange projectModelBatchChange, ITaskExecutor executor)
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Transaction.ProjectModelBatchChangeManager.AddChanges(ICollection`1 deltas)
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Model2.Assemblies.Impl.AssemblyFile.<.ctor>b__0()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetime.Terminate()
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Model2.Assemblies.Impl.AssemblyFile.Dispose()
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Model2.Assemblies.Impl.AssemblyCollection.<.ctor>b__1(KeyValuePair`2 pair)
[10:42:20]W: [Step 2/4] at System.Collections.Generic.List`1.ForEach(Action`1 action)
[10:42:20]W: [Step 2/4] at JetBrains.ProjectModel.Model2.Assemblies.Impl.AssemblyCollection.<.ctor>b__0()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetime.Terminate()
[10:42:20]W: [Step 2/4] at JetBrains.Application.Components.LifetimeValueResolver.LifetimeDescriptor.Dispose()
[10:42:20]W: [Step 2/4] at JetBrains.Application.Components.SingletonDescriptor.DisposeImpl()
[10:42:20]W: [Step 2/4] at JetBrains.Application.Components.ComponentStorage.DisposeDescriptor(IComponentDescriptor descriptor)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Components.ComponentStorage.<>c__DisplayClassb.<RegisterDescriptors>b__9()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetime.Terminate()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<ForEachItemCore>b__12(AddRemoveEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.CollectionEvents`1.InternalRemove(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.CollectionEvents`1.Remove(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetime.Terminate()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass15`1.<ForEachItemCore>b__12(AddRemoveEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.CollectionEvents`1.OnAcknowledgeSinkAddRemove(Action`1 handler, AddRemove addremove)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Infra.SignalWithDelegates`1.OnAfterUnadvise(Action`1 handler)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.<>c__DisplayClass2.<AdviseCore>b__1()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetime.Terminate()
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.SequentialLifetimes.SetCurrentLifetime(LifetimeDefinition lifetimeToSet)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass44.<WhenTrue>b__43(PropertyChangedEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass4`1.<Advise_FallingFront>b__3(PropertyChangedEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass14`2.<FlowInto>b__13(PropertyChangedEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.Application.ComposeVerdictWithPriority.UpdateActiveTellers[TVerdict](Lifetime lifetimeComponent, List`1 tellers, IProperty`1 propComposite)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass1f`1.<Advise_NoAcknowledgement>b__1e(PropertyChangedEventArgs`1 args)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
[10:42:20]W: [Step 2/4] at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
[10:42:20]W: [Step 2/4] at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
[10:42:20]W: [Step 2/4] at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard th?s, Lifetime lifetime, String name, Action F, TaskPriority priority)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Threading.IThreadingEx.ExecuteOrQueue(IThreading th?s, Lifetime lifetime, String name, Action action)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass4.<.ctor>b__0()
[10:42:20]W: [Step 2/4] at JetBrains.Util.Logging.Logger.Catch(Action action)
[10:42:20]W: [Step 2/4] at JetBrains.Threading.JetDispatcher.Closure.Execute()
[10:42:20]W: [Step 2/4] at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
[10:42:20]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.InvokeImpl()
[10:42:20]W: [Step 2/4] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:42:20]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
[10:42:20]W: [Step 2/4] at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[10:42:20]W: [Step 2/4] at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.DispatcherOperation.Invoke()
[10:42:20]W: [Step 2/4] at System.Windows.Threading.Dispatcher.ProcessQueue()
[10:42:20]W: [Step 2/4] at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[10:42:20]W: [Step 2/4] at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
[10:42:20]W: [Step 2/4] at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
[10:42:20]W: [Step 2/4] at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
[10:42:20]W: [Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[10:42:20]W: [Step 2/4] at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
[10:42:20]W: [Step 2/4] at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
[10:42:20]W: [Step 2/4] at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
[10:42:20]W: [Step 2/4] at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
[10:42:20]W: [Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
[10:42:20]W: [Step 2/4] at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
[10:42:20]W: [Step 2/4] at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
[10:42:20]W: [Step 2/4] "
[10:42:20]W: [Step 2/4]
[10:42:20]W: [Step 2/4] Error firing a change with the Change Provider. The change provider SolutionElement(Name : APIRefactor) is not registered in the Incoming Nodes map.

0

Hello Thomas!

 

Corresponding issue is reported in ReSharper issue tracker - https://youtrack.jetbrains.com/issue/RSRP-466019

You are welcome to comment or vote for it.

Thank you.

0
Avatar
Permanently deleted user

I see that the issue is fixed and is planned for the 2017.2.1 release. I downloaded the 2017.2.0-eap13 release but it seems that the issue is not fixed in this version. Is there a beta version that this change is going to be in so that I can test/continue working on TeamCity?

0

Hello Thomas!

 

Sorry for delay in responding.

Please intall the latest ReSharper 2017.2.1 - https://www.jetbrains.com/resharper/download/#section=resharper-clt.

Please let us know if it helps.

Thank you.

0

Please sign in to leave a comment.