System.InvalidCastException when loading a project

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

System.InvalidCastException when loading a project

Postby MikeBush » October 6th, 2016, 12:07 pm

I keep receiving this exception when loading any PHP project in Visual Studio 2015

Code: Select all
  <entry>
    <record>631</record>
    <time>2016/10/06 11:52:20.061</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.InvalidCastException: Unable to cast object of type &apos;WhereSelectListIterator`2[Devsense.PHP.Syntax.QualifiedNameRef,Devsense.PHP.Syntax.Ast.TypeRef]&apos; to type &apos;System.Collections.Generic.List`1[Devsense.PHP.Syntax.Ast.TypeRef]&apos;.&#x000D;&#x000A;   at Devsense.PHP.Syntax.Parser.DoAction(Int32 action)&#x000D;&#x000A;   at Devsense.PHP.Syntax.ShiftReduceParser`2.Reduce(Int32 rule_nr)&#x000D;&#x000A;   at Devsense.PHP.Syntax.ShiftReduceParser`2.Parse()&#x000D;&#x000A;   at Devsense.PHP.Syntax.Parser.Parse(ITokenProvider`2 lexer, INodesFactory`2 astFactory, IErrorSink`1 errors, Int32 positionShift)&#x000D;&#x000A;   at  &#x0019;&#x0003;&#x0007;&#x0005;&#x0012;&#x0015;&#x0001;&#x0013;&#x0006;&#x0004;&#x001F;&#x0011;&#x001F;&#x001E;&#x000E;&#x0004;&#x0010;&#x0011;&#x000B;&#x001A;&#x0008;&#x0010;&#x0005;&#x0009;.Parse(INodesFactory`2 factory, IErrorSink`1 errors)</description>
  </entry>
MikeBush
 
Posts: 4
Joined: October 6th, 2016, 12:04 pm

Re: System.InvalidCastException when loading a project

Postby Jakub Misek » October 6th, 2016, 12:21 pm

Hi Mike,

What exact version do you have? Isn't it a beta of 1.12? (EDIT: 1.20 !!)

The latest stable can be downloaded at https://www.devsense.com/download

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: System.InvalidCastException when loading a project

Postby MikeBush » October 6th, 2016, 2:25 pm

I am currently running 1.20.9085 but this also happened with the previous build too of 1.19.8876 and 1.19.8851.

Beta of 1.12??? The last version in that branch was released on 12 May 2014.
MikeBush
 
Posts: 4
Joined: October 6th, 2016, 12:04 pm

Re: System.InvalidCastException when loading a project

Postby Jakub Misek » October 6th, 2016, 2:29 pm

Sorry, typo, 1.20 of course.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: System.InvalidCastException when loading a project

Postby MikeBush » October 6th, 2016, 2:42 pm

1.20 is now marked as stable on your downloads page
MikeBush
 
Posts: 4
Joined: October 6th, 2016, 12:04 pm

Re: System.InvalidCastException when loading a project

Postby Jakub Misek » October 6th, 2016, 3:07 pm

Thanks! will be fixed in the next update tomorrow.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 100 guests

cron

User Control Panel

Login

Who is online

In total there are 100 users online :: 0 registered, 0 hidden and 100 guests (based on users active over the past 5 minutes)
Most users ever online was 398 on April 19th, 2024, 9:04 pm

Users browsing this forum: No registered users and 100 guests