Cannot find declaration to go to in PHP Storm on ubuntu
Solution 1
My problem was that my whole vendor folder had somehow gotten ignored.
To check and fix, navigate to "File > Settings > Project Settings > Directories" and make sure that "vendor" is not excluded.
Sources: http://fuelphp.com/forums/discussion/3943/how-to-setup-code-completion-in-phpstorm
Solution 2
Please try to enable Laravel plugin:
Settings (Preferences) | Other Settings | Laravel Plugin | Enable Plugin for this Project
Or here:
Languages & Frameworks | Php | Laravel| Enable Plugin for this Project
As said on https://confluence.jetbrains.com/display/PhpStorm/Laravel+Development+using+PhpStorm
Solution 3
I had to delete the .PhpStorm20*
folder in my home directory, starting with a completely new config. Maybe it's better this way after two years of dragging the same config along, across several versions of PhpStorm.
Solution 4
Nothing worked for me, here is how i solved it : Just restore Settings
File > Manage IDE Settings > Restore Default Settings
Uninstalling your IDE won't help, restoring settigns is the best way to solve the problem
Related videos on Youtube
Paul Seleznev
Updated on September 15, 2022Comments
-
Paul Seleznev about 1 year
Does someone have had this trouble on ubuntu - php storm doesn't see the declaration on classes somehow. On Windows system all works well.
-
LazyOne almost 11 yearsPlease try File | Invalidate Caches...
-
oskarth almost 8 yearsI have this problem in phpStorm 9 (worked in 8) and for Javascript only. Tried WebStorm, same issue. Invalidating the cache didn't help me.
-
-
Black over 6 yearsThere is no
Project Settings
in my phpstorm 2016.3.2 -
Goldentoa11 over 6 yearsI believe that screen has been moved to just "Settings", with the previous rendition of "Settings" now being "Default Settings".
-
oriadam almost 3 yearsyou could have just use the built-in 'file>invalidate caches + restart'