Some strange exceptions during solution analyze with inspectcode

Hi!
On our build server we use inspectcode to find code style problems. Currently we use version 8. My task is replace it with version 9. I replaced locally inspectcode from version 8 to 9 and try to run it. In console I have a lot of exceptions, most of them about some XamlLanguageLevelProvider:

JetBrains Inspect Code 9.2
  Running in 32-bit mode, .NET runtime 4.0.30319.34209 under Microsoft Windows NT 6.2.9200.0
  Analyzing files
  Analyzing BvtAutomation.Core.csproj
  Analyzing Synchronize.ps1
  Analyzing Test.ps1
  Analyzing TestInitialize.ps1
  Analyzing TestMetadata.ps1
  Analyzing Utils.ps1
  Analyzing BvtAutomation.Interfaces.csproj
  Analyzing BvtAutomation.PowershellExecuter.csproj
  Could not find the component's XamlLanguageLevelProvider descriptor.

  --- EXCEPTION #1/2 [InvalidOperationException]
  Message = "Could not find the component's XamlLanguageLevelProvider descriptor."
  ExceptionPath = Root.InnerException
  ClassName = System.InvalidOperationException
  HResult = COR_E_INVALIDOPERATION=80131509
  Source = JetBrains.Platform.ComponentModel
  StackTraceString = "
    в JetBrains.Application.Components.ComponentContainerEx.GetComponent[TInterface](IComponentContainer container)
       в JetBrains.ReSharper.Psi.Xaml.Impl.Cache2.XamlTypePart.GetImplicitMethods(XamlTypeDeclaration declaration)
       в JetBrains.ReSharper.Psi.Xaml.Impl.Cache2.XamlTypePart.GetTypeMembers()
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.ClassLikeTypeElement.<.cctor>b__a(IClassLikePart input)
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.TypeElement.ProcessParts[TPart,TResult](Func`2 converter)
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.Class.GetMembers()
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.AddAllMembersExceptConstructors(ITypeElement element, LocalList`1& members)
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.OwnMembersSymbolTableBuilder(SymbolTableMode mode, ITypeElement element, IPsiModule psiModule)
       в JetBrains.ReSharper.Psi.Impl.Resolve.SymbolTableCache.GetOrCreate(OneToListMap`2 cache, ITypeElement element, SymbolTableMode mode, IPsiModule requestFromModule, SymbolTableFactory factory)
       в JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.GetOwnMembersSymbolTable(ITypeElement typeElement, SymbolTableMode mode)
       в JetBrains.ReSharper.Psi.Util.TypeElementUtil.EnumerateMembers(ITypeElement typeElement, String name, Boolean caseSensitive)
       в JetBrains.ReSharper.Psi.Caches.SymbolCache.SymbolCache.<>c__DisplayClass18.<GetSourceMembers>b__15(ITypeElement te)
       в System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       в JetBrains.ReSharper.Psi.Util.MainMethodUtil.FindAllMainMethods(IPsiModule module)
       в JetBrains.ReSharper.Daemon.SolutionAnalysis.SolutionAnalysisServiceImpl.AnalyzeInvisibleFile(IPsiSourceFile file)
  "

  --- Outer ---

  --- EXCEPTION #2/2 [LoggerException]
  Message = "Could not find the component's XamlLanguageLevelProvider descriptor."
  ExceptionPath = Root
  ClassName = JetBrains.Util.LoggerException
  InnerException = "Exception #1 at Root.InnerException"
  HResult = COR_E_APPLICATION=80131600
  StackTraceString = "
    в JetBrains.ReSharper.Daemon.SolutionAnalysis.SolutionAnalysisServiceImpl.AnalyzeInvisibleFile(IPsiSourceFile file)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClassb.<ExecuteSWEAUnderProgress>b__a()
       в JetBrains.Application.Progress.ProgressIndicatorExtensions.StartStop(IProgressIndicator progress, Int32 totalWorkUnits, String taskName, Action action)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.ExecuteSWEAUnderProgress(IProgressIndicator progress)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<>c__DisplayClass8.<ExecuteSWEA>b__6()
       в JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.<ExecuteSWEA>b__5(IProgressIndicator progress)
       в JetBrains.CommandLine.Common.Console.Util.Progress.ToolTaskExecutor.ExecuteTask(String taskName, TaskCancelable cancelable, Action`1 task)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.ExecuteSWEA()
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeRunner.Run(IEnumerable`1 inspectScope, IProjectFile[] files, FileSystemPath outputFile)
       в JetBrains.CommandLine.InspectCode.Unattended.InspectCodeProductMain.Main(IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw)
       в System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       в System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       в System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       в JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass7.<.ctor>b__0()
       в JetBrains.Util.Logging.Logger.Catch(Action action)
       в JetBrains.Threading.IThreadingEx.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteOrQueueWhenNotGuarded>b__4()
       в JetBrains.Threading.JetDispatcher.Closure.Execute()
       в JetBrains.Threading.Win32JetDispatcher.ProcessQueue()
       в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       в System.Windows.Threading.DispatcherOperation.InvokeImpl()
       в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)





Those projects don't use WPF of XAML in any means. I tried to changed cache location but with no any success. What happens here?
0
6 comments

Hi Mikhail!

It's known issue RSRP-447361

0
Avatar
Permanently deleted user

Thank you, Slava!
Seams like it's fixed but not in a public build yet.

0

I'm seeing this now using ReSharper Version 2016.1.1 this issue linked too says this was fixed in v10.

0

Hello James,

Are you able to reproduce the issue in a small sample project and attach it here? 

Thanks! 

0

Hi Alexander,

I just bumped my installed version of TeamCity to 9.1.7 and the error has gone away!  Thanks.

0

Thanks for the update! 

0

Please sign in to leave a comment.