vrakeshreddy / mb-unit

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

ReSharper Integration - Value cannot be null #515

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am running Gallio 3.0.6 Update 2 and ReSharper 4.5 on a rather big Visual
Studio 2008 solution with 10 projects. One of them is a pure mbUnit
UnitTest project.

While working with my source (both inside of the Unit Test and outside) I
get exceptions all the time which I have to "Mute" in ReSharper. But even
then they pop up every few seconds.

I don't see any missing functionality. Everything seems to work just fine
except for those error popups all the time.

I can not upload my full solution of course so I hope the Stacktrace is
enough to figure out whats wrong. If it isn't, I can try to reproduce the
issue with a smaller solution.

Thank you in advance for looking into this.

The StackTrace I got via the ReSharper Exception Browser is:

Current file extension: cs
System.ArgumentNullException: Value cannot be null.
Parameter name: member
   at
Gallio.Reflection.Impl.StaticParameterWrapper..ctor(StaticReflectionPolicy
policy, Object handle, StaticMemberWrapper member) in
c:\RelEng\Projects\MbUnit
v3.0.6\Work\src\Gallio\Gallio\Reflection\Impl\StaticParameterWrapper.cs:line 49
   at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IParameter
target)
   at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IDeclaredElement
target)
   at
Gallio.ReSharperRunner.Provider.GallioTestProvider.Shim.IsUnitTestElement(IDecla
redElement
element)
   at
Gallio.ReSharperRunner.Provider.GallioTestProvider.IsUnitTestElement(IDeclaredEl
ement
element)
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestManager.IsUnitTestElement(IDeclared
Element
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Manager\UnitTestManager.
cs:line
749
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTestElem
ent(IDeclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Common\UnitTestElementKi
ndOfElementType.cs:line
37
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTestMeth
od(IDeclaredElement
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Common\UnitTestElementKi
ndOfElementType.cs:line
31
   at
JetBrains.ReSharper.Psi.Naming.Elements.ElementKindOfElementType.IsApplicable(ID
eclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Elements\ElementKindOfElementT
ype.cs:line
18
   at
JetBrains.ReSharper.Psi.Naming.Elements.NamedElementsManager.<GetElementKind>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.ToCo
llection.cs:line
16
   at
JetBrains.ReSharper.Psi.Naming.NamingLanguageServiceBase.GetNamedElementDescript
or(IDeclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Impl\NamingLanguageServiceBase
.cs:line
51
   at
JetBrains.ReSharper.Psi.Naming.Settings.NamingRulesProviderBase.GetPolicy(IDecla
redElement
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Settings\NamingRulesProviderBa
se.cs:line
76
   at
JetBrains.ReSharper.Psi.CSharp.Naming2.CSharpNamingConsistencyChecker.Check(IDec
laration
declaration, Boolean& isFinalResult, NamingConsistencyCheckResult& result)
in
c:\Agent\work\6f6005be76df46e2\src\Psi.CSharp\src\Naming2\CSharpNamingConsistenc
yChecker.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.Check(IDe
claration
declaration) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\NamingConsistencyChe
ckStage.cs:line
53
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.VisitElem
ent(IElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\NamingConsistencyChe
ckStage.cs:line
45
   at
JetBrains.ReSharper.Psi.CSharp.Tree.ElementVisitor.VisitLambdaParameterDeclarati
on(ILambdaParameterDeclaration
lambdaParameterDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 214
   at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LambdaParameterDeclaration.Accept(Eleme
ntVisitor
visitor) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\Impl\LambdaParameterDeclaratio
n.cs:line
18
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.ProcessAft
erInterior(IElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
121
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
75
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c__DisplayClass11.<Execute>b__7(ICSharpTypeMemberDeclaration
declaration) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
222
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c__DisplayClass15.<>c__DisplayClass19.<Execute>b__d()
in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
246
   at
JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c__DisplayClass3.<E
nqueueJob>b__1()
in
c:\Agent\work\6f6005be76df46e2\Platform\src\Shell\src\Threading\MultiCoreFibersP
ool.cs:line
160

   --- End of inner exception stack trace ---
LoggerException: Value cannot be null.
Parameter name: member
->
System.ArgumentNullException: Value cannot be null.
Parameter name: member
   at
Gallio.Reflection.Impl.StaticParameterWrapper..ctor(StaticReflectionPolicy
policy, Object handle, StaticMemberWrapper member) in
c:\RelEng\Projects\MbUnit
v3.0.6\Work\src\Gallio\Gallio\Reflection\Impl\StaticParameterWrapper.cs:line 49
   at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IParameter
target)
   at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IDeclaredElement
target)
   at
Gallio.ReSharperRunner.Provider.GallioTestProvider.Shim.IsUnitTestElement(IDecla
redElement
element)
   at
Gallio.ReSharperRunner.Provider.GallioTestProvider.IsUnitTestElement(IDeclaredEl
ement
element)
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestManager.IsUnitTestElement(IDeclared
Element
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Manager\UnitTestManager.
cs:line
749
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTestElem
ent(IDeclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Common\UnitTestElementKi
ndOfElementType.cs:line
37
   at
JetBrains.ReSharper.UnitTestExplorer.UnitTestElementKindOfElementType.IsTestMeth
od(IDeclaredElement
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\UnitTestExplorer\src\Common\UnitTestElementKi
ndOfElementType.cs:line
31
   at
JetBrains.ReSharper.Psi.Naming.Elements.ElementKindOfElementType.IsApplicable(ID
eclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Elements\ElementKindOfElementT
ype.cs:line
18
   at
JetBrains.ReSharper.Psi.Naming.Elements.NamedElementsManager.<GetElementKind>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.ToCo
llection.cs:line
16
   at
JetBrains.ReSharper.Psi.Naming.NamingLanguageServiceBase.GetNamedElementDescript
or(IDeclaredElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Impl\NamingLanguageServiceBase
.cs:line
51
   at
JetBrains.ReSharper.Psi.Naming.Settings.NamingRulesProviderBase.GetPolicy(IDecla
redElement
declaredElement) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\Naming\Settings\NamingRulesProviderBa
se.cs:line
76
   at
JetBrains.ReSharper.Psi.CSharp.Naming2.CSharpNamingConsistencyChecker.Check(IDec
laration
declaration, Boolean& isFinalResult, NamingConsistencyCheckResult& result)
in
c:\Agent\work\6f6005be76df46e2\src\Psi.CSharp\src\Naming2\CSharpNamingConsistenc
yChecker.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.Check(IDe
claration
declaration) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\NamingConsistencyChe
ckStage.cs:line
53
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.NamingConsistencyCheckProcess.VisitElem
ent(IElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\NamingConsistencyChe
ckStage.cs:line
45
   at
JetBrains.ReSharper.Psi.CSharp.Tree.ElementVisitor.VisitLambdaParameterDeclarati
on(ILambdaParameterDeclaration
lambdaParameterDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 214
   at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.LambdaParameterDeclaration.Accept(Eleme
ntVisitor
visitor) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\Impl\LambdaParameterDeclaratio
n.cs:line
18
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.ProcessAft
erInterior(IElement
element) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
121
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
75
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecur
siveElementProcessor
processor) in
c:\Agent\work\6f6005be76df46e2\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:lin
e
74
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c__DisplayClass11.<Execute>b__7(ICSharpTypeMemberDeclaration
declaration) in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
222
   at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c__DisplayClass15.<>c__DisplayClass19.<Execute>b__d()
in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
246
   at
JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c__DisplayClass3.<E
nqueueJob>b__1()
in
c:\Agent\work\6f6005be76df46e2\Platform\src\Shell\src\Threading\MultiCoreFibersP
ool.cs:line
160
--- End of Inner Exception Stack Trace ---
   at
JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c__DisplayClass3.<E
nqueueJob>b__1()
in
c:\Agent\work\6f6005be76df46e2\Platform\src\Shell\src\Threading\MultiCoreFibersP
ool.cs:line
172
   at JetBrains.Application.Threading.MultiCoreFibersPool.DaemonFiberProc()
in
c:\Agent\work\6f6005be76df46e2\Platform\src\Shell\src\Threading\MultiCoreFibersP
ool.cs:line
84
   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 danlehma...@gmail.com on 27 Aug 2009 at 12:02

GoogleCodeExporter commented 9 years ago
This is fixed in v3.1.  Please try a recent nightly build.

Original comment by jeff.br...@gmail.com on 2 Sep 2009 at 1:00

GoogleCodeExporter commented 9 years ago
Yes the error does not show up anymore. Thanks a lot!!

Original comment by danlehma...@gmail.com on 2 Sep 2009 at 12:56