"Go to definition" with two matches fails for one match

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

"Go to definition" with two matches fails for one match

Postby Daniel » October 10th, 2013, 1:34 pm

I have a PHP Tools project, where the root path contains a file "include.php" and a subfolder also contains the same file "include.php" (shared in source control).
In this subfolder I have another file "company.php" which contains a reference to a class of "include.php".
If I use "Go to definition", I'll get asked, which of the two "include.php" should be opened, which is fine.
But when I want to open the file of the subfolder, it doesn't work, because the calculated line number is wrong.
The other files line number is correct and this line number + the total number of lines of the file include.php seems to be the line number of the second file which doesn't work (see screenshot).

VS 2013 RC / PHP Tools 1.9.462

Greetings,
Daniel
You do not have the required permissions to view the files attached to this post.
Last edited by Daniel on October 10th, 2013, 1:37 pm, edited 1 time in total.
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: "Go to definition" with two matches fails for one match

Postby Daniel » October 10th, 2013, 1:35 pm

Ha, ok... my intellisense seems to have updated to the correct line, which you can see in the attached screenshot. Strange... Now it works.

Greetings,
Daniel
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: "Go to definition" with two matches fails for one match

Postby Jakub Misek » October 11th, 2013, 11:34 am

Good, please give me know if it happens again. We'll be watching this behaviour.

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


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 68 guests

cron

User Control Panel

Login

Who is online

In total there are 68 users online :: 0 registered, 0 hidden and 68 guests (based on users active over the past 5 minutes)
Most users ever online was 330 on April 19th, 2024, 1:35 am

Users browsing this forum: No registered users and 68 guests