Cannot find declaration to go to in PHP Storm on ubuntu

18,493

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

enter image description here

Or here:

Languages & Frameworks | Php | Laravel| Enable Plugin for this Project

enter image description here

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

Share:
18,493

Related videos on Youtube

Paul Seleznev
Author by

Paul Seleznev

Updated on September 15, 2022

Comments

  • Paul Seleznev
    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
      LazyOne almost 11 years
      Please try File | Invalidate Caches...
    • oskarth
      oskarth almost 8 years
      I 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
    Black over 6 years
    There is no Project Settings in my phpstorm 2016.3.2
  • Goldentoa11
    Goldentoa11 over 6 years
    I believe that screen has been moved to just "Settings", with the previous rendition of "Settings" now being "Default Settings".
  • oriadam
    oriadam almost 3 years
    you could have just use the built-in 'file>invalidate caches + restart'