File move / refactoring not working
I'm working on PHPStorm 10.0.3 Mac and for (at least) the last couple of days, file refactoring hasn't been working.
I'm working with classes in a packages/ folder, which are found quite happily in the rest of the app, but when I move or rename the files, with the checkbox on to Search for references, it moves the file, but then does not:
- Rename the file
- Update the class name
- Update the package
- Update any of the references
I've tried marking a few folders as Sources Root but this hasn't helped either.
Help would be appreciated, thanks.
Please sign in to leave a comment.
I also can reproduce this issue
3dandrew, thanks for sharing the test project. I can confirm that it is still reproducible in PhpStorm 2020.2 EAP, here is a ticket about it:
https://youtrack.jetbrains.com/issue/WI-4439
I am having this problem suddenly after a recent update. Moving or deleting files from the project navigator simply does not work.
I have tried several different ways of doing so and am working with an angular 10 project
Do you move files from the Project Tool window to the OS explorer or within the project?
It's 2023 and this is still broken
Do you mind me asking what is broken exactly? If this is about WI-4439, it is still in "Open" state.
It sounds like a frustrating issue with PHPStorm not updating references properly during refactoring. Sometimes this happens if the IDE indexing is out of sync or if the folder structure isn’t correctly marked. You might want to try invalidating caches and restarting PHPStorm, as well as double-checking your namespaces and PSR-4 settings under Project Structure.
It’s kind of like browsing a fast-food menu where everything should be organized and updated when changes happen — just like how the Mixue SG menu keeps its listings clear and consistent. If the IDE doesn’t sync, it feels like the "menu" is outdated, which can throw everything off.