Artifact in git commit window (Resolved)

Answered

Sometime ago I used a link to non-existent file in my mockery tests. And somehow PhpStorm has recognized it as a real new file which can be committed. I cannot delete it, I cannot shelf it or whatsoever. It is just a ghost. I though I could invalidate cache, but it did not help. 

Normally, it is just there and has no impact on commit process (I cannot commit it even if I choose it),  but as I open commit window to check new files, this artifact confuses me every time. 
Is there a way to get rid of it without reinstalling phpstorm? 
 

0
5 comments

yeah, it appears only in 1 project. So I think reinstalling the IDE won't help

0

Hi,

Please check Settings | Version Control | Directory Mappings, is this path somehow mapped there?

 

0

there is only one path

0

When you run git status from the command line (e.g. git bash), outside of the IDE, do you see the file in the output? Is it possible to right-click on the file and do Rollback?

You can try the following:

  • Close IDE, delete .idea folder and any *.iml files in your project root folder in file explorer, and re-import the project from existing sources
  • Close IDE and delete the IDE system directory. It will recreated caches/indexes from scratch. Sometimes IDE indexes and caches can get corrupted and cause unexpected behavior in the IDE.
  • Try to search for the file name in your file system, maybe a ghost file was created somewhere or some symlink, that you were not aware of
0

Ok, thank you guys for the support. The case was resolved by chance. As I stated: there were no such file/folder as invalid/path/to/channel_feed.to in Project in PHPstorm. I just accidentally opened project in Files and saw this “folder”. Deleted it in Files and voilà it is disappeared. This ghost folder was not in root folder, that is why I did not see it earlier,  as I searched for it.
The case is closed. 

1

Please sign in to leave a comment.