shekharpro / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Errors in R# #449

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running Gallio with R# 4.5 and Gallio (any version, currently 3.7.99)
2. A continual flood of errors get reported by R#

Stack Trace:

     [ http://www.jetbrains.net/jira/browse/RSPL-1297?
page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Serebryansky updated RSPL-1297:
--------------------------------------

     Project: ReSharper Plugins  (was: ReSharper Plugins)
         Key: RSPL-1297  (was: RSRP-108168)
    Workflow: ReSharper Plugins investigating workflow  (was: ReSharper 
Plugins investigating workflow)

> NotSupportedException : Unsupported declared element type: 
> ILocalVariableDeclaration: record
> ----------------------------------------------------------------------
> ----------------------
>
>                 Key: RSPL-1297
>                 URL: http://www.jetbrains.net/jira/browse/RSPL-1297
>             Project: ReSharper Plugins
>          Issue Type: Exception
>      Security Level: Everybody(All jira users) 
>            Reporter: Philip Japikse
>
> ReSharper 4.5 Version=4.5.1238.0, Edition=, Built=2009-05-15T14:23:48, 
> Configuration=ReSharper_AddIn, VsVersion=9.0 Current file extension: 
> cs Previous exception:NotSupportedException : Unsupported declared 
> element type: ILocalVariableDeclaration: record
> System.NotSupportedException: Unsupported declared element type: 
ILocalVariableDeclaration: record
>    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.VisitLocalVariableDeclar
ation(ILocalVariableDeclaration localVariableDeclarationParam) in 
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 
223
>    at 
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LocalVariableDeclarationStub.Accep
t(ElementVisitor visitor) in c:\Agent\work\6f6005be76df46e2
\src\Gen\Psi\CSharp\Impl\LocalVariableDeclarationStub.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: 
> ILocalVariableDeclaration: record
> ->
> System.NotSupportedException: Unsupported declared element type: 
ILocalVariableDeclaration: record
>    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.VisitLocalVariableDeclar
ation(ILocalVariableDeclaration localVariableDeclarationParam) in 
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 
223
>    at 
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LocalVariableDeclarationStub.Accep
t(ElementVisitor visitor) in c:\Agent\work\6f6005be76df46e2
\src\Gen\Psi\CSharp\Impl\LocalVariableDeclarationStub.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.runTryCode(Object userData)
>    at 
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCle
anup(TryCode code, CleanupCode backoutCode, Object userData)
>    at System.Threading.ExecutionContext.RunInternal(ExecutionContext 
executionContext, ContextCallback callback, Object state)
>    at System.Threading.ExecutionContext.Run(ExecutionContext 
executionContext, ContextCallback callback, Object state)
>    at System.Threading.ThreadHelper.ThreadStart()

--
This message is automatically generated by JIRA.
-

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by skime...@gmail.com on 19 May 2009 at 3:25

GoogleCodeExporter commented 9 years ago
That's interesting.  I think I know what the problem is too.

Basically there was some new API introduced in R# v4.5 and I'm still figuring 
out all
of its implications.  Looks like the IsUnitTestStuff method gets called for 
local
variables and other declarations too.

Original comment by jeff.br...@gmail.com on 19 May 2009 at 6:07

GoogleCodeExporter commented 9 years ago

Original comment by jeff.br...@gmail.com on 23 May 2009 at 1:44

GoogleCodeExporter commented 9 years ago
Should be fixed in next build of v3.0.6 Update 2.

Original comment by jeff.br...@gmail.com on 27 May 2009 at 6:15

GoogleCodeExporter commented 9 years ago
Great!  Will it also be in the 3.0.7 branch?  Starting with what build number?

Original comment by skime...@gmail.com on 27 May 2009 at 12:43

GoogleCodeExporter commented 9 years ago
v3.0.7.141 from http://ccnet.gallio.org/Distributables/

Should be available shortly.

Original comment by jeff.br...@gmail.com on 27 May 2009 at 3:05

GoogleCodeExporter commented 9 years ago
Available now.

Please let me know if this fixes your problem since I haven't been able to 
directly
reproduce it yet.

Original comment by jeff.br...@gmail.com on 27 May 2009 at 6:27

GoogleCodeExporter commented 9 years ago
you da man!  been running all day, no errors.

Original comment by skime...@gmail.com on 28 May 2009 at 8:36