Intellisense when syntax error exists in other line

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

Intellisense when syntax error exists in other line

Postby kkoba » August 10th, 2013, 1:11 pm

When I open a file has syntax errors as follows, I can't use intellisense correctly.

Code: Select all
class AAA{
   public function aaa(){}
}
$a1 = new AAA;
$a2 = new AAA;
$a3 = new AAA;
$a1->aaa(); // Intellisense doesn't work here.
$a2->aaa();
$a3->; // Syntax error


My actions are as follows.
Step1) I open a solution includes a file has syntax errors as above.
Step2) I wait for finishing Intellisense process shown in VS status bar.
Step3) I deleted "->aaa();" from "$a1->aaa();" and inputed "->".
Step4) Intellisense popup is not invoked.
Step5) I comment out syntax errored line "$a3->;" and wait a second.
Step6) I try Step3 again and Intellisense popup is invoked correctly.

I hope Intellisense work well even if syntax error exists in other line.
kkoba
 
Posts: 25
Joined: June 22nd, 2013, 11:13 am

Re: Intellisense when syntax error exists in other line

Postby Jakub Misek » August 10th, 2013, 3:46 pm

Once there is syntax error, the code cannot be parsed and IntelliSense is not updated.

We will try to workaround this in future, however for now, I don't know how.

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Intellisense when syntax error exists in other line

Postby kkoba » August 10th, 2013, 5:06 pm

Thanks!
I hope the good future!
kkoba
 
Posts: 25
Joined: June 22nd, 2013, 11:13 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 14 guests

cron

User Control Panel

Login

Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 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 14 guests