Page 1 of 1

v1.25.10441 - exception on project load and UTF8 load prob.

PostPosted: November 28th, 2017, 9:07 am
by urosg
Hi,

after upgrading to the latest version an exception occurs while loading project.

Please see activity log attached, also I have attached a file that is not correctly detected as UTF8.

Re, Uros

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: November 28th, 2017, 10:39 am
by Miloslav Beno
Hi,

Thank you for the email. The exception you are mentioning will be fixed in today's update.

Please try the process explained in this post http://support.devsense.com/viewtopic.php?f=21&t=1620&p=7423&hilit=utf8#p7423 and let us know if that helped.

Thanks,

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: November 28th, 2017, 8:26 pm
by urosg
Hi,

the latest update seems to have fixed the exception occurring before, but the UTF8 detection still doesn't work, I checked all the options.

I tried this in VS2015 and VS2017 and in both cases the same deal.

I seem to remember that this worked a not so long ago, maybe a VS update had an impact on this I don't know.

The "auto-detect" option is maybe not working as these files contain small amounts of UTF8 chars and are most US ANS as in Slovenian language there are only five three special chars that go into UTF8 range.

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: November 28th, 2017, 8:36 pm
by urosg
One more question, does PHP Tools work with "Fix File Encoding" add-on?

Just as a side note, I just tried right clicking on the file in project and selected "Open with" and for editor I selected "Source Code (Text) editor" and it opened the file OK while the default for .php files is "PHP Editor".

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: December 6th, 2017, 2:58 am
by urosg
Any news regarding the UTF8 problems?

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: December 7th, 2017, 1:44 pm
by Miloslav Beno
Hello,

The issue here is Visual Studio HTML editor which we use in PHP Editor. They are somehow screwing the encoding, maybe they expect html tag that specifies encoding in the document.

Anyway if you'd turn off Visual Studio HTML editor it would work as expected (Tools | Options | PHP tools | Enable HTML Editor in PHP files = false )

We are going to examine how to workaround this HTML editor "feature".

Thank you for patience,

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: December 7th, 2017, 2:55 pm
by Miloslav Beno
One more question, does PHP Tools work with "Fix File Encoding" add-on?

I guess it will work, but we do the same thing so it shouldn't be needed

Thanks,

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: December 8th, 2017, 1:17 pm
by urosg
Turning HTML Editor off, does help with the encoding thing, but then the HTML intellisense is not working - probably as expected - which is somewhat problematic - at least for me - as I mostly develop Yii2 projects with which I don't use an external template engine, just plain php.

Hope you will find the solution soon.

Thanks!!!

Re: v1.25.10441 - exception on project load and UTF8 load pr

PostPosted: December 11th, 2017, 2:30 pm
by Miloslav Beno
We've found out that this is a bug in Visual Studio HTML editor. Which happens when you have meta character html tag, we will try to workaround this in some future update.

Thanks again for feedback!