F4 not working. I can only open certain files with File->Open dialog.
Last night, without much warning, my F4 key stopped working. The key is OK, because I can open *some* files by selecting the names in the project window using F4, but not others.
What is different about the files I can open - well, I can open all controller and model files, the problem seems to come when I try to open certain files in the views folder. I can open some files (they seem to be files which were recently created (a couple of days ago) by Run->Rake Generate->scaffold), but not older imported-from-outside view files.
Is there a certain click combination that converts an imported-from-outside view file to something that can be edited within RM ?
I am just guessing that this might be the controlling characteristic.
Going into the underlying directories with a CLI window, it seems as though the permissions on the balky files are the same as others that can be opened.
请先登录再写评论。
Hello Bob,
Please try File | Invalidate Caches.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Files that I can open (with F4 too) have a 'history' of several changes.
Files that I cannot open (either with F4 or with File Open dialog) have no local history, there is only the original file which was imported externally.
I guess the solution is to somehow tweek those externally derived files to something editable inside RM.
How to do this?
OK, cool. That did it.
I 'invalidated caches' - it gave me a message that something would be done on next restart of RM.
I closed RM, restarted RM, waited for the 'Indexing..' progress bar (at the bottom of the main window) to complete, and then I checked opening files that I previously could not open.
All is OK, thanks much.