vrakeshreddy / mb-unit

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

Gallio resharper add-in throw exceptions when editing aspx or ascx file #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load up a c# project with MVC and have ReSharper add-on
2. Try to edit an aspx or ascx file

What is the expected output? What do you see instead?
I expected the resharper analysis to work with out exceptions

What version of the product are you using? On what operating system?
XP Pro 32 bit, VS2008 SP1 with the CLR Hotfix.
Resharper 4.5.1 build 1278

Please provide any additional information below.

Stack Trace:
converting aspx code behind to single file.
ReSharper 4.5 Version=4.5.1278.0, Edition=, Built=2009-08-06T17:47:56,
Configuration=ReSharper_AddIn, VsVersion=9.0
Current file extension: aspx
Previous exception:NullReferenceException : Object reference not set to an
instance of an object.
System.NullReferenceException: Object reference not set to an instance of
an object.
at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.<>c_DisplayClass71.<MakeDe
claredTypeWithoutSubstitution>b_70()
at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 populator) in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Common\KeyedMemoizer.cs:line 91
at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.MakeDeclaredTypeWithoutSub
stitution(ITypeElement
typeElementHandle)
at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IMethod target)
at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IFunction 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.VisitMethodDeclaration(IMetho
dDeclaration
methodDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 232
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.MethodDeclarationStub.Accept(ElementVis
itor
visitor) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\Impl\MethodDeclarationStub.cs:
line
26
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
221
at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c_DisplayClass15.<>cDisplayClass17.<Execute>b_9()
in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
228
at
JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c_DisplayClass3.<En
queueJob>b_1()
in
c:\Agent\work\6f6005be76df46e2\Platform\src\Shell\src\Threading\MultiCoreFibersP
ool.cs:line
160

— End of inner exception stack trace —
LoggerException: Object reference not set to an instance of an object.
->
System.NullReferenceException: Object reference not set to an instance of
an object.
at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.<>c_DisplayClass71.<MakeDe
claredTypeWithoutSubstitution>b_70()
at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 populator) in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Common\KeyedMemoizer.cs:line 91
at
Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.MakeDeclaredTypeWithoutSub
stitution(ITypeElement
typeElementHandle)
at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IMethod target)
at Gallio.ReSharperRunner.Reflection.PsiReflectionPolicy.Wrap(IFunction 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.VisitMethodDeclaration(IMetho
dDeclaration
methodDeclarationParam) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\ElementVisitor.cs:line 232
at
JetBrains.ReSharper.Psi.CSharp.Impl.Tree.MethodDeclarationStub.Accept(ElementVis
itor
visitor) in
c:\Agent\work\6f6005be76df46e2\src\Gen\Psi\CSharp\Impl\MethodDeclarationStub.cs:
line
26
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
221
at
JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase
.<>c_DisplayClass15.<>cDisplayClass17.<Execute>b_9()
in
c:\Agent\work\6f6005be76df46e2\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBas
e.cs:line
228
at
JetBrains.Application.Threading.MultiCoreFibersPool.Fibers.<>c_DisplayClass3.<En
queueJob>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.<En
queueJob>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 MelarMan...@gmail.com on 2 Sep 2009 at 8:22

GoogleCodeExporter commented 9 years ago
Gallio version is 3.1.295

Original comment by MelarMan...@gmail.com on 2 Sep 2009 at 8:23

GoogleCodeExporter commented 9 years ago
Could you upload a small sample solution to make it easier for me to reproduce 
the issue?

Thanks!

Original comment by jeff.br...@gmail.com on 3 Sep 2009 at 1:38

GoogleCodeExporter commented 9 years ago
I got this working, I had to install the CLR hotfix KB963676 that was causing 
MVC and
some other plug-ins to crash, and reinstall Visual Studio SP1.

Original comment by MelarMan...@gmail.com on 4 Sep 2009 at 3:34

GoogleCodeExporter commented 9 years ago
Ahh yes.  Several people have had this problem now.  *sigh*

I'm going to make an announcement about this KB during our next release.  I 
don't
think it's necessary to reinstall Visual Studio SP1 but I know how these things 
go.  ;-)

Thanks for reporting your experience.

Original comment by jeff.br...@gmail.com on 4 Sep 2009 at 7:03