Page 1 of 1

Error in VS2010 Phalanger Tools

PostPosted: June 5th, 2011, 7:30 pm
by JohnSawyer@codeplex

Hello!

I had to reinstall VS2010 (+SP1). Then I installed Phalanger Tools (alongside Resharper and VA X).

Now Phalanger Tools, both April and May versions cause an exception, sometimes with 100% CPU utilization of one processor core.

 <entry>    <record>314</record>    <time>2011/06/05 18:19:57.949</time>    <type>Error</type>    <source>Editor or Editor Extension</source>    <description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at PHP.Core.AST.Analysis.GlobalCodeSymbol..ctor(GlobalCode globalCodeNode, AstCache astCache, String fileName)&#x000D;&#x000A;   at PHP.VisualStudio.PhalangerLanguageService.PhpLanguage.AstCache.GetPhpAst(AuthoringSink sink, String fileName, String code, Boolean forceUpdate)&#x000D;&#x000A;   at PHP.VisualStudio.PhalangerLanguageService.PhpLanguage.ParseSource(ParseRequest request)&#x000D;&#x000A;   at Microsoft.VisualStudio.Package.LanguageService.ParseRequest(ParseRequest req)&#x000D;&#x000A;   at Microsoft.VisualStudio.Package.Source.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)&#x000D;&#x000A;   at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String&amp; textValue)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] surfaceTextSpan, String&amp; tipText)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan&amp; applicableToSpan)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()</description>  </entry>

With reformated 0D0A it looks like this:

	System.NullReferenceException: Object reference not set to an instance of an object.   at PHP.Core.AST.Analysis.GlobalCodeSymbol..ctor(GlobalCode globalCodeNode, AstCache astCache, String fileName)   at PHP.VisualStudio.PhalangerLanguageService.PhpLanguage.AstCache.GetPhpAst(AuthoringSink sink, String fileName, String code, Boolean forceUpdate)   at PHP.VisualStudio.PhalangerLanguageService.PhpLanguage.ParseSource(ParseRequest request)   at Microsoft.VisualStudio.Package.LanguageService.ParseRequest(ParseRequest req)   at Microsoft.VisualStudio.Package.Source.BeginParse(Int32 line, Int32 idx, TokenInfo info, ParseReason reason, IVsTextView view, ParseResultHandler callback)   at Microsoft.VisualStudio.Package.ViewFilter.GetDataTipText(TextSpan[] aspan, String& textValue)   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] surfaceTextSpan, String& tipText)   at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan& applicableToSpan)   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()   at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()   at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()   

Any ideas?

I'll also try March edition, that's what I've been using before...

Best regards,
  JS


RE: Error in VS2010 Phalanger Tools

PostPosted: June 5th, 2011, 7:58 pm
by JohnSawyer@codeplex

Update:

March edition seems to work just fine. Something is broken in newer versions.

Just for information, I'm also using two VS2008 based products: SQL Server 2008 R2 Management Studio and Revolution R Enterprise 4.3.


RE: Error in VS2010 Phalanger Tools

PostPosted: June 5th, 2011, 8:20 pm
by Jakub Misek

Hi,

Thanks for trying Phalanger and the Tools. We are aware of this. As you said, the May 2011 version should be fixed, and we are preparing June 2011 release which should contain the rest of bug fixes. 

Please if you find any other issue, feel free to tell us so we can make the integration better and better.

Cheers,
Jakub 


RE: Error in VS2010 Phalanger Tools

PostPosted: June 5th, 2011, 8:30 pm
by JohnSawyer@codeplex

OK, if you are aware of this. I didn't see it in recent discussions or issues.

Cheers