Reporter | Henning Krause (hkrause) |
---|---|
Created | Nov 9, 2011 12:25:29 PM |
Updated | Mar 16, 2012 12:01:08 AM |
Priority | Normal |
Type | Exception |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Kirill Skrygan (kirillskrygan) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
ReSharper 6.1 EAP Version=6.1.0.11493, Built=2011-11-04T10:52:08, Configuration=“Csharp PublicMode VS1000”
An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.
--- EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = COR_E_INVALIDCAST=E_NOINTERFACE=80004002
Source = JetBrains.ReSharper.Psi
StackTraceString = “
”
--- Outer —
--- EXCEPTION #2/2 [LoggerException]
Message = “An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cs
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 10.0.40219.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at Action(Package.QueryStatus).Execute(Action )
”
An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.
--- EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = COR_E_INVALIDCAST=E_NOINTERFACE=80004002
Source = JetBrains.ReSharper.Psi
StackTraceString = “
at JetBrains.ReSharper.Psi.ExtensionsAPI.SharedImplUtil.CalcAccessibilityDomain(ITypeMember member, AccessRights accessRights) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\ExtensionsAPI\SharedImplUtil.cs:line 31 at JetBrains.ReSharper.Psi.Impl.Special.DefaultConstructor.get_AccessibilityDomain() in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\impl\special\DefaultConstructor.cs:line 175 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetTypeMemberOwnSearchDomain(ITypeMember typeMember) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 216 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetTypeMemberSearchDomain(ITypeMember member) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 245 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetDeclaredElementSearchDomain(IDeclaredElement declaredElement) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 304 at JetBrains.ReSharper.Psi.Search.DeclaredElementSearchExtensions.<>c__DisplayClass1.<GetSearchDomain>b__0(IDomainSpecificSearcherFactory x) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\Search\DeclaredElementSearchExtensions.cs:line 28 at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at JetBrains.ReSharper.Psi.Search.SearchDomainExtensions.UnionSearchDomains(IEnumerable`1 domains) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\Search\SearchDomainExtensions.cs:line 35 at JetBrains.ReSharper.Psi.Search.DeclaredElementSearchExtensions.GetSearchDomain(IDeclaredElement declaredElement) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Psi\src\Search\DeclaredElementSearchExtensions.cs:line 11 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.<HasSearchableCandidates>b__0(IDeclaredElement element) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 50 at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.HasSearchableCandidates(IDataContext context) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 50 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.UsagesContextSearchBase.IsAvailableInternal(IDataContext context) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ContextNavigation\ContextSearches\BaseSearches\UsagesContextSearchBase.cs:line 69 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.IsAvailable(IDataContext context) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 23 at JetBrains.ReSharper.Features.Finding.NavigateFromHere.ContextNavigationLanguageUtil.<>c__DisplayClass2`1.<GetAvailableContextSearches>b__1(TContextSearch x) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Features\Finding\src\NavigateFromHere\ContextNavigationLanguageUtil.cs:line 35 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) at JetBrains.ReSharper.Features.Finding.NavigateFromHere.ContextSearchesCollector`1.GetSearchesExecution(IDataContext dataContext, INavigationExecutionHost host) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Features\Finding\src\NavigateFromHere\ContextSearchesCollector.cs:line 27 at JetBrains.ReSharper.Features.Finding.Usages.FindUsagesProvider.<CreateWorkflow>d__0.MoveNext() in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Features\Finding\src\Usages\FindUsagesProvider.cs:line 25 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.GetWorkflowListToExecute(IDataContext dataContext) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ActionsMenu\ExtensibleAction.cs:line 95 at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate) in c:\BuildAgent\work\73d5be9cd9acf4a2\src\Feature.Services\src\ActionsMenu\ExtensibleAction.cs:line 39 at JetBrains.ActionManagement.UpdatableAction.Update(IDataContext context) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\UI\src\ActionSystem\Action\UpdatableAction.cs:line 88
--- Outer —
--- EXCEPTION #2/2 [LoggerException]
Message = “An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cs
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 10.0.40219.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ActionManagement.UpdatableAction.Update(IDataContext context) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\UI\src\ActionSystem\Action\UpdatableAction.cs:line 94 at JetBrains.ActionManagement.ActionManager.<>c__DisplayClass9.<UpdateAction>b__8(Lifetime lifetime) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 196 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 F) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 41 at JetBrains.ActionManagement.ActionManager.UpdateAction(IUpdatableAction action, IDataContext dataContext) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 196 at JetBrains.VsIntegration.ActionManagement.VsActionManager.UpdateAction(IUpdatableAction action, IDataContext dataContext) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 1345 at JetBrains.VsIntegration.ActionManagement.VsActionManager.OleCommandTargetQueryStatus_Overridden(CommandID commandid, OLECMDTEXT* pOleText) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 920 at JetBrains.VsIntegration.ActionManagement.VsActionManager.<>c__DisplayClass28.<OleCommandTargetQueryStatus>b__27() in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 420
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 261 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 412 at JetBrains.VsIntegration.ActionManagement.VsActionManager.OleCommandTargetQueryStatus(Guid guidCmdSet, OLECMD[] olecmds, OLECMDTEXT* pOleText, VsCommandHandlerStage stage) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 401 at JetBrains.VsIntegration.ActionManagement.VsActionManagerPriorityCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\ActionManagement\VsActionManagerPriorityCommandTarget.cs:line 73 at Microsoft.VisualStudio.Shell.Interop.IVsUIShell.ShowContextMenu(UInt32 dwCompRole, Guid& rclsidActive, Int32 nMenuId, POINTS[] pos, IOleCommandTarget pCmdTrgtActive) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.ShowContextMenu(IntPtr location, Int32& result) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainTail.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.Undo.UndoManagerCommandFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.IntellisenseCommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Text.Formatting.Implementation.CommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.QuickFind.CommandBlocker.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClassa.<ExecOldCommandTarget>b__8() in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\TextControl\VsTextControlOleCommandTarget.cs:line 188 at JetBrains.Application.CommandProcessing.ICommandProcessorEx.<>c__DisplayClass1.<WithCommand>b__0(Lifetime lifetime) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Shell\src\CommandProcessing\ICommandProcessorEx.cs:line 23 at JetBrains.DataFlow.Lifetimes.Using(Action`1 F) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 20 at JetBrains.Application.CommandProcessing.ICommandProcessorEx.WithCommand(ICommandProcessor thіs, String commandName, Action action) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\Shell\src\CommandProcessing\ICommandProcessorEx.cs:line 25 at JetBrains.VsIntegration.Application.VsCommandProcessor.WithVsCommand(CommandID commandid, Action F) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\Shell\VSCommandProcessor.cs:line 93 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClassa.<ExecOldCommandTarget>b__7() in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\TextControl\VsTextControlOleCommandTarget.cs:line 181 at JetBrains.DocumentModel.Impl.DocumentBase.ExpectCallbacksFromUnderlyingStore(Action F) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\DocumentModel\src\impl\DocumentBase.cs:line 94 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.ExecOldCommandTarget(CommandID commandid, IntPtr pvaIn, UInt32 nCmdexecopt, IntPtr pvaOut) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\TextControl\VsTextControlOleCommandTarget.cs:line 181 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in c:\BuildAgent\work\73d5be9cd9acf4a2\Platform\src\VSIntegration\src\TextControl\VsTextControlOleCommandTarget.cs:line 420 at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.DisplayContextMenu(Point mousePosition) at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.PreprocessMouseRightButtonUp(MouseButtonEventArgs e) at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.<>c__DisplayClass4b.<UIElement_MouseRightButtonUp>b__46() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.UIElement_MouseRightButtonUp(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)