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

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

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

Postby urosg » November 28th, 2017, 9:07 am

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
You do not have the required permissions to view the files attached to this post.
urosg
 
Posts: 34
Joined: February 24th, 2016, 2:05 am

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

Postby Miloslav Beno » November 28th, 2017, 10:39 am

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,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1074
Joined: January 7th, 2012, 8:36 pm

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

Postby urosg » November 28th, 2017, 8:26 pm

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.
urosg
 
Posts: 34
Joined: February 24th, 2016, 2:05 am

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

Postby urosg » November 28th, 2017, 8:36 pm

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".
urosg
 
Posts: 34
Joined: February 24th, 2016, 2:05 am

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

Postby urosg » December 6th, 2017, 2:58 am

Any news regarding the UTF8 problems?
urosg
 
Posts: 34
Joined: February 24th, 2016, 2:05 am

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

Postby Miloslav Beno » December 7th, 2017, 1:44 pm

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,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1074
Joined: January 7th, 2012, 8:36 pm

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

Postby Miloslav Beno » December 7th, 2017, 2:55 pm

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,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1074
Joined: January 7th, 2012, 8:36 pm

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

Postby urosg » December 8th, 2017, 1:17 pm

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!!!
urosg
 
Posts: 34
Joined: February 24th, 2016, 2:05 am

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

Postby Miloslav Beno » December 11th, 2017, 2:30 pm

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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1074
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 1 guest
Phalanger