Error in activitylog on each load

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

Error in activitylog on each load

Postby emsmith » September 19th, 2018, 12:37 pm

I'm getting a crash at every intial visual studio load

From ActivityLog.xml

System.FormatException: One of the identified items was in an invalid format.
at Devsense.PHP.Phar.Entry.Initialize(BinaryReader reader, Boolean supportsDir)
at Devsense.PHP.Phar.Manifest.InitializeEntries(BinaryReader reader)
at Devsense.PHP.Phar.Manifest.Initialize(BinaryReader reader)
at Devsense.PHP.Phar.PharFile.ReadManifest(Stream stream)
at Devsense.PHP.Phar.PharFile.ReadPharFile(String filename, Stream stream)
at Devsense.PHP.Phar.PharFile.OpenPharFile(String filename)
at  

 

.InvokeTask()
at PHP.VisualStudio.Language.TaskQueue.
   .
   
()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
emsmith
 
Posts: 12
Joined: November 29th, 2017, 8:02 pm

Re: Error in activitylog on each load

Postby Miloslav Beno » September 20th, 2018, 11:31 am

Hi,

Thank you for the post.

This is caused by some Phar in your project which we do not handle correctly. If you could send us the Phar we would take a look at it and fix asap.

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

Re: Error in activitylog on each load

Postby emsmith » September 20th, 2018, 2:07 pm

I'm pretty sure this is an error from a phar with a signature

Using the phpdocumentor pre-release from here

https://github.com/phpDocumentor/phpDoc ... y-gdff5545

requires both the phar and the pubkey to open the phar
the pubkey and the phar are both in my project

http://php.net/manual/en/phar.fileformat.signature.php

here's information on the signatures for phars
emsmith
 
Posts: 12
Joined: November 29th, 2017, 8:02 pm

Re: Error in activitylog on each load

Postby Jakub Misek » September 21st, 2018, 12:23 pm

Hi,

We have updated the PHAR support. It now supports more formats (including yours) and does not throw an exception message during some kind of failure. This feature will be improved in a future version, so we'll also check for signatures and validity.

Please download and try from https://www.devsense.com/en/download

Thanks!
Jakub
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 19 guests

cron

User Control Panel

Login

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 19 guests