What steps will reproduce the problem?
1. Running R# 4.5 and 3.0.7.1xx
NotSupportedException : Unsupported declared element type:
> ILocalConstantDeclaration
> ----------------------------------------------------------------------
> --------------
>
> Key: RSPL-1329
> URL: http://www.jetbrains.net/jira/browse/RSPL-1329
> Project: ReSharper Plugins
> Issue Type: Exception
> Security Level: Everybody(All jira users)
> Reporter: Philip Japikse
>
> ReSharper 4.5 Version=4.5.1242.5, Edition=, Built=2009-05-23T01:58:06,
> Configuration=ReSharper_AddIn, VsVersion=9.0 Previous
> exception:RSRP-105559
> System.NotSupportedException: Unsupported declared element type:
ILocalConstantDeclaration
> at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap
(IDeclaredElement target)
> at
Gallio.ReSharperRunner.Provider.GallioTestProvider.Shim.IsUnitTestElement
(IDeclaredElement element)
> at
Gallio.ReSharperRunner.Provider.GallioTestProvider.IsUnitTestElement
(IDeclaredElement element)
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestManager.IsUnitTestElement
(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Manager\UnitTestManager.cs:line 749
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTes
tElement(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Common\UnitTestElementKindOfElementType.cs:line
37
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTes
tMethod(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Common\UnitTestElementKindOfElementType.cs:line
31
> at
JetBrains.ReSharper.Psi.Naming.Elements.ElementKindOfElementType.IsApplicab
le(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Elements\ElementKindOfElementType.cs:line 18
> at
JetBrains.ReSharper.Psi.Naming.Elements.NamedElementsManager.<GetElementKin
d>d__0.MoveNext() in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Elements\NamedElementsManager.cs:line 36
> at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
> at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) in
c:\Agent\work\6f6005be76df46e2
\Platform\src\Util\src\System.Core\Enumerable.ToCollection.cs:line 16
> at
JetBrains.ReSharper.Psi.Naming.NamingLanguageServiceBase.GetNamedElementDes
criptor(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Impl\NamingLanguageServiceBase.cs:line 51
> at
JetBrains.ReSharper.Psi.Naming.Settings.NamingRulesProviderBase.GetPolicy
(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Settings\NamingRulesProviderBase.cs:line 76
> at
JetBrains.ReSharper.Psi.CSharp.Naming2.CSharpNamingConsistencyChecker.Check
(IDeclaration declaration, Boolean& isFinalResult,
NamingConsistencyCheckResult& result) in c:\Agent\work\6f6005be76df46e2
\src\Psi.CSharp\src\Naming2\CSharpNamingConsistencyChecker.cs:line 37
> at JetBrains.ReSharper.Psi.Naming.NamingConsistencyChecker.Check
(IDeclaration declaration) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Impl\NamingConsistencyChecker.cs:line 33
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.Chec
k(IDeclaration declaration) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\NamingConsistencyCheckStage.cs:line 53
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.Visi
tElement(IElement element) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\NamingConsistencyCheckStage.cs:line 45
> at
JetBrains.ReSharper.Psi.CSharp.Tree.ElementVisitor.VisitLocalConstantDeclar
ation(ILocalConstantDeclaration localConstantDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line
220
> at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LocalConstantDeclaration.Accept
(ElementVisitor visitor) in c:\Agent\work\6f6005be76df46e2
\src\Gen\Psi\CSharp\Impl\LocalConstantDeclaration.cs:line 17
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.Proce
ssAfterInterior(IElement element) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 121
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 75
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass11.<Execute>b__7(ICSharpTypeMemberDeclaration
declaration) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 222
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass15.<>c__DisplayClass19.<Execute>b__d() in
c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 246
> at
JetBrains.Application.Threading.MultiCoreFibersPool.EmptyFibers.EnqueueJob
(Action action) in c:\Agent\work\6f6005be76df46e2
\Platform\src\Shell\src\Threading\MultiCoreFibersPool.cs:line 107
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass15.<Execute>b__c(ICSharpTypeMemberDeclaration decl)
in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 246
> at JetBrains.Util.CollectionUtil.ForEach[T](IEnumerable`1 enumerable,
Action`1 action) in c:\Agent\work\6f6005be76df46e2
\Platform\src\Util\src\Collections\CollectionUtil.cs:line 798
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.Execute(Action`1 commiter) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 244
> at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.DoHighlighting
(DaemonProcessKind kind, Action`1 commiter) in
c:\Agent\work\6f6005be76df46e2
\src\Daemon\src\Impl\DaemonProcessBase.cs:line 176
> --- End of inner exception stack trace ---
> LoggerException: Unsupported declared element type:
> ILocalConstantDeclaration
> ->
> System.NotSupportedException: Unsupported declared element type:
ILocalConstantDeclaration
> at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap
(IDeclaredElement target)
> at
Gallio.ReSharperRunner.Provider.GallioTestProvider.Shim.IsUnitTestElement
(IDeclaredElement element)
> at
Gallio.ReSharperRunner.Provider.GallioTestProvider.IsUnitTestElement
(IDeclaredElement element)
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestManager.IsUnitTestElement
(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Manager\UnitTestManager.cs:line 749
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTes
tElement(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Common\UnitTestElementKindOfElementType.cs:line
37
> at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTes
tMethod(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\UnitTestExplorer\src\Common\UnitTestElementKindOfElementType.cs:line
31
> at
JetBrains.ReSharper.Psi.Naming.Elements.ElementKindOfElementType.IsApplicab
le(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Elements\ElementKindOfElementType.cs:line 18
> at
JetBrains.ReSharper.Psi.Naming.Elements.NamedElementsManager.<GetElementKin
d>d__0.MoveNext() in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Elements\NamedElementsManager.cs:line 36
> at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
> at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) in
c:\Agent\work\6f6005be76df46e2
\Platform\src\Util\src\System.Core\Enumerable.ToCollection.cs:line 16
> at
JetBrains.ReSharper.Psi.Naming.NamingLanguageServiceBase.GetNamedElementDes
criptor(IDeclaredElement element) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Impl\NamingLanguageServiceBase.cs:line 51
> at
JetBrains.ReSharper.Psi.Naming.Settings.NamingRulesProviderBase.GetPolicy
(IDeclaredElement declaredElement) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Settings\NamingRulesProviderBase.cs:line 76
> at
JetBrains.ReSharper.Psi.CSharp.Naming2.CSharpNamingConsistencyChecker.Check
(IDeclaration declaration, Boolean& isFinalResult,
NamingConsistencyCheckResult& result) in c:\Agent\work\6f6005be76df46e2
\src\Psi.CSharp\src\Naming2\CSharpNamingConsistencyChecker.cs:line 37
> at JetBrains.ReSharper.Psi.Naming.NamingConsistencyChecker.Check
(IDeclaration declaration) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\Naming\Impl\NamingConsistencyChecker.cs:line 33
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.Chec
k(IDeclaration declaration) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\NamingConsistencyCheckStage.cs:line 53
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.Visi
tElement(IElement element) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\NamingConsistencyCheckStage.cs:line 45
> at
JetBrains.ReSharper.Psi.CSharp.Tree.ElementVisitor.VisitLocalConstantDeclar
ation(ILocalConstantDeclaration localConstantDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line
220
> at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LocalConstantDeclaration.Accept
(ElementVisitor visitor) in c:\Agent\work\6f6005be76df46e2
\src\Gen\Psi\CSharp\Impl\LocalConstantDeclaration.cs:line 17
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.Proce
ssAfterInterior(IElement element) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 121
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 75
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants
(IRecursiveElementProcessor processor) in c:\Agent\work\6f6005be76df46e2
\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 74
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass11.<Execute>b__7(ICSharpTypeMemberDeclaration
declaration) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 222
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass15.<>c__DisplayClass19.<Execute>b__d() in
c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 246
> at
JetBrains.Application.Threading.MultiCoreFibersPool.EmptyFibers.EnqueueJob
(Action action) in c:\Agent\work\6f6005be76df46e2
\Platform\src\Shell\src\Threading\MultiCoreFibersPool.cs:line 107
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.<>c__DisplayClass15.<Execute>b__c(ICSharpTypeMemberDeclaration decl)
in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 246
> at JetBrains.Util.CollectionUtil.ForEach[T](IEnumerable`1 enumerable,
Action`1 action) in c:\Agent\work\6f6005be76df46e2
\Platform\src\Util\src\Collections\CollectionUtil.cs:line 798
> at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProces
sBase.Execute(Action`1 commiter) in c:\Agent\work\6f6005be76df46e2
\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 244
> at
> JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.DoHighlighting(Daemo
> nProcessKind kind, Action`1 commiter) in
> c:\Agent\work\6f6005be76df46e2\src\Daemon\src\Impl\DaemonProcessBase.c
> s:line 176
> --- End of Inner Exception Stack Trace ---
> at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.DoHighlighting
(DaemonProcessKind kind, Action`1 commiter) in
c:\Agent\work\6f6005be76df46e2
\src\Daemon\src\Impl\DaemonProcessBase.cs:line 196
> at
JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.DoHighlighting
(Boolean globalAnalysisStages) in c:\Agent\work\6f6005be76df46e2
\src\Daemon\src\Impl\VisibleDocumentDaemonProcess.cs:line 238
> at
JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.<>c__DisplayCl
ass3.<EnqueueHighlightingJob>b__1() in c:\Agent\work\6f6005be76df46e2
\src\Daemon\src\Impl\VisibleDocumentDaemonProcess.cs:line 209
> at JetBrains.ReSharper.Daemon.Impl.DaemonThreadImpl.DaemonThreadProc
() in c:\Agent\work\6f6005be76df46e2
\src\Daemon\src\Impl\DaemonThreadImpl.cs:line 119
> at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
> at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
> at System.Threading.ThreadHelper.ThreadStart()
Original issue reported on code.google.com by skime...@gmail.com on 26 May 2009 at 2:14
Original issue reported on code.google.com by
skime...@gmail.com
on 26 May 2009 at 2:14