Refactoring Cannot be performed. XXX is located in a read-only container.
I'm using PHPStorm version 2019.2 (192.5728.108) on OS X 10.14.6 and the following error keeps coming up randomly as I'm doing things as simple as writing code or highlighting source text. Here is an example of the latest:
Refactoring cannot be performed
File /Applications/Phpstorm.app/Contents/plugins/JavaScriptLanguage/lib/JavaScriptLanguage.jar!/com/intellij/javascript/nodejs/library/core/node-console-stub.js is located in a read-only container.
Only found a handful of similar results online from years pass, none that had a solution posted, but one asking why someone was trying to refactor a stub file. I don't know what a stub file is, and I am not actively trying to refactor anything; I am merely writing code or changing an active highlighting selection, and this error comes up randomly.
Please sign in to leave a comment.
We have a similar report for the cases when you hover the mouse over "Refactoring" context menu: https://youtrack.jetbrains.com/issue/WI-47906.
It would be great if you could note somehow the steps to reproduce the problem.
I will try to find some logic in their occurrences and see if I cannot make the error occur explicitly. As it stands, it feels rather haphazard in occurrence, and has been hard for me to determine my exact action which results. But if I can find something finite, I will try to and reproduction steps to the YouTrack ticket you posted. Thanks.
I am experiencing a similar dialog prompt when my cursor is over certain variables and I try to open the Search Anywhere or Find in Path dialogs:
"Refactoring cannot be performed
File /Applications/WebStorm.app/Contents/plugins/Meteor/lib/Meteor.jar!/tsMeteorStubs/meteor-v1.3.1.d.ts is located in a read-only container."
I will add details to the YouTrack ticket.