Php strom is not recognizing the storage folder in laravel

Hi

my PHP storm file path autocompletion just suddenly stop working 
eg before i had a file in my storage folder and i start typing is name i would get the full path but i suddenly stop working
also a problem where is not showing the directory name for some file and show for the other file i would like it to show the directory for all the file like in below image programs and passport are in the same directory but it does not show the directory name for passport while show the directory name for programs

Folder

Top bar for the programs file

top bar for passport file

show Recent File Dialog

0

Hi there,

If it's "it worked OK but now it suddenly stopped" then please try "File | Invalidate Caches" and restart the IDE -- it normally helps for "suddenly stopped working" situations.

As to why it is not showing the folder in Recent Files. One idea -- you have only one passport.blade.php file with such a name in the whole project so there is no need to show the folder next to it. But you may have more than one programs.blade.php and the IDE also shows the folder so you can differentiate between them.

1

Andriy Bazanov thnx for the comment
i did Invalidate but I stiil don't  get the path as for the second issue thnx for explaining that because that was the reason I need the directory

0

i did Invalidate but I stiil don't  get the path

What's your IDE version and what was the version when it was working? Maybe the completion was offered by some plugin that has issues in the new version...

Where it does not work / the file type and the context? Please provide the code + screenshots.

0

Andriy Bazanov

i did some digging and i look like phpstorm is not recognizing the symlink

i deleted the folder and re link but i still does not work on laravel site the symlink is working fine though

 

0

Try restarting PhpStorm (and the whole OS as well) after dealing with symlink.

I'd suggest the following:

  1. Delete the symlink
  2. Invalidate Caches with IDE restart
  3. Launch the IDE with no symlink
  4. Make a symlink (using atrisan)
  5. Use "File | Reload All from Disk" -- the IDE should see the symlink now and index the files.

If still the same:

  1. Anything related in the idea.log file (Help | Show Log in XXX)?
  2. [Unlikely] Have you marked the parent folder of the storage symlink in any way?
  3. [Unlikely] Have you marked the original storage folder? Maybe it is exclude/ignored...
  4. File access permissions?
  5. Will it work OK if you launch PhpStorm from the terminal and not desktop icon (mainly if you are on Linux/Mac)

Just trying different ideas that come into my mind...

0

请先登录再写评论。