Exceptions editing doc blocks

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

Exceptions editing doc blocks

Postby coreymw » January 19th, 2017, 4:18 am

I've seen this error for awhile now and since the latest version did not appear to fix it, I thought I would post a note this time.

I get exceptions being thrown by PHPTools when editing PHP doc blocks at the top of a source file. In this particular case there was a word in the header that I wanted to replace with other word - in this case the word 'BOGUS', below. When I highlight and try and delete the word, an exception thrown by PHPTools, as caught in the VS ActivityLog.XML file.

This is what my doc header looks like:

Code: Select all
/**
 * Entrada [ http://www.entrada-project.org ]
 *
 * Entrada is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Entrada is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Entrada.  If not, see <http://www.gnu.org/licenses/>.
 *
 * A model for BOGUS maps table.
 *
 * @author Organisation: University of Calgary
 * @author Developer: ME (?????@?????.?????)
 * @copyright Copyright 2017 University of Calgary. All Rights Reserved.
 */


Here's what the exception looks like:

Code: Select all
 <entry>
 <record>647</record>
 <time>2017/01/19 04:00:38.115</time>
 <type>Error</type>
 <source>Editor or Editor Extension</source>
 <description>System.InvalidCastException: Unable to cast object of type 'DictionaryNode' to type 'Devsense.PHP.Syntax.PHPDocBlock'. at Devsense.PHP.Syntax.PropertyCollection.GetProperty[T]() at ....</description>
 </entry>


The full stack is binary coded, so it's hard to read the full stack since the <descriptions> node is 15000 characters long, but I hope this helps you diagnose it.

I'll save my ActivityLog.xml file in case you need it.

Regards,
Corey.
coreymw
 
Posts: 2
Joined: November 22nd, 2015, 9:26 pm

Re: Exceptions editing doc blocks

Postby Miloslav Beno » January 23rd, 2017, 1:58 pm

Hello Corey,

Thanks for the feedback. May I ask you to send us full activity log? Hopefully that will help us to fix this.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 89 guests

cron

User Control Panel

Login

Who is online

In total there are 89 users online :: 0 registered, 0 hidden and 89 guests (based on users active over the past 5 minutes)
Most users ever online was 330 on April 19th, 2024, 1:35 am

Users browsing this forum: No registered users and 89 guests