Page 1 of 1

Error in activitylog on each load

PostPosted: September 19th, 2018, 12:37 pm
by emsmith
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)

Re: Error in activitylog on each load

PostPosted: September 20th, 2018, 11:31 am
by Miloslav Beno
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!

Re: Error in activitylog on each load

PostPosted: September 20th, 2018, 2:07 pm
by emsmith
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

Re: Error in activitylog on each load

PostPosted: September 21st, 2018, 12:23 pm
by Jakub Misek
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