Navigating by Ctrl+Click on a symbol sends to Symfony cache and not the real PHP class

On PHPStorm 2020.2, when I ctrl+click on a method I'm sent to the cached version in var/cache (on Symfony). If I Ctrl+click on the method in cached version, I'm sent to "real" PHP class.

I remember it was not the case in previous versions (navigation sent directly to real PHP class), isn't it ?

8 comments
Comment actions Permalink

Hi there,

Is that "var/cache" folder is marked as Excluded? If it's not -- can you do that (via context menu of the Project View panel or "Settings/Preferences | Directories") -- any difference?

AFAIK 2020.2 version now gives (some) priority over non-vendor code esp if it's a project with attached projects (cannot give you an exact ticket for that, but there were different changes here (e.g. WI-33965 (particular comment), WI-51116). Master related ticket: WI-17646)

0
Comment actions Permalink

If I exclude the "var/cache" folder in PHPStorm, the navigation with Ctrl+click no longer works :/

0
Comment actions Permalink

Sadly I'm not using Symfony myself so cannot create a test project to play around. I'm using Laravel, and in such projects I can navigate just fine (but it has no such cache as Symfony must be doing).

Can you create some simple project that would illustrate the issue (as you know better what files you need to have those entries in var/cache folder) and share the whole folder (including .idea with project settings)?

Otherwise wait and see what the devs/support will have to say.

0
Comment actions Permalink

Could you please attach screenshots that would illustrate where are you clicking the method?

0
Comment actions Permalink

I click it in the editor

0
Comment actions Permalink

Yeah, that looks like a simple case. Could you please attach a screenshot of "If I Ctrl+click on the method in cached version, I'm sent to "real" PHP class."?

0
Comment actions Permalink

I captured it in an animated GIF to explain it :)

0
Comment actions Permalink

Thanks! Unfortunately we won't be able to assist further without taking a look at the code base. Would it be possible to share it with us? You can share it by contacting us over Help | Contact Support.

0

Please sign in to leave a comment.