Double-Click file in tree does not work
I use RubyMine at work, and I don't have any plugins installed. Today when I was trying to work in a project, I needed to open a file to edit it, just a regular .html.erb file that I have edited before. I can open other files in the directory, but not this one. While testing other files, I discovered that there's a large batch of them that won't open when I double click them. I have confirmed that these files do exist on my computer, so it's not that the directory was somehow accidentally wiped out or whatever.
I did find this discussion here: http://devnet.jetbrains.net/message/5291700, but none of the solutions using the keyboard worked for me. (I am on mac and tried a bunch of variations on them.)
Here's the last 40 lines of my idea.log file.
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:544)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:421)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:379)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - JetBrains RubyMine 4.5 Build #RM-119.28
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.6.0_29
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - VM: Java HotSpot(TM) 64-Bit Server VM
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - Vendor: Apple Inc.
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - OS: Mac OS X
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - Last Action: EditSource
zion4s-iMac:~ mel$ tail -40 Library/Logs/RubyMine40/idea.log
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:165)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:124)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:144)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:238)
at com.intellij.openapi.actionSystem.impl.ActionMenu.g(ActionMenu.java:260)
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$400(ActionMenu.java:42)
at com.intellij.openapi.actionSystem.impl.ActionMenu$MenuListenerImpl.menuSelected(ActionMenu.java:223)
at javax.swing.JMenu.fireMenuSelected(JMenu.java:1028)
at javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1107)
at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333)
at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:215)
at javax.swing.JMenu.setSelected(JMenu.java:294)
at com.apple.laf.ScreenMenu$1.run(ScreenMenu.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at apple.awt.CToolkit$CPeerEvent.dispatch(CToolkit.java:1210)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:544)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:421)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:379)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - JetBrains RubyMine 4.5 Build #RM-119.28
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.6.0_29
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - VM: Java HotSpot(TM) 64-Bit Server VM
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - Vendor: Apple Inc.
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - OS: Mac OS X
2012-07-27 13:03:04,178 [ 640990] ERROR - penapi.actionSystem.impl.Utils - Last Action: EditSource
Any ideas? I am on RubyMine 4.5, Build RM-119.28.
请先登录再写评论。
It doesn't appear that I can edit my previous post??
But I tried opening opening the file using shift + command + N, and it shows the file in the drop-down list, but it won't open it up in the editor. When I try to search in the directory that the file is in (it's in there with only three other files) for a string that I know is in the file, it doesn't show up in the search results. The one that does show up won't open either.
When I rename the file to an .rb extension, it opens fine! If I rename it back while the file is open in this way it'll recolor everything but if I close it and try to reopen it it won't.
Totally bizzare. :S
I am having the same problem. Two of my projects are exhibiting this behavior. This all seemed to occur after I upgraed to Mountain Lion (10.8). I triend deleting .idea and that didn't work.
EDIT: My solution was to clone a copy of my repository into a new directory.
Hmn. I'm still on Snow Leopard. :S
EDIT: Your solution does not work for me. :(
Please try doing File | Invalidate Caches
Perfect! Thanks! :)
Worked for me as well.
Invalidate Caches works for me too ! Thanks :)
Perfect! thank you...
same behavior, was due to corrupt .editorconfig file (without any line breaks)
```
# in C:\Users\<your name>\AppData\Local\JetBrains\IntelliJIdea2020.1\log\idea.log
2020-09-16 11:06:09,742 [158761578] ERROR - plication.impl.ApplicationImpl - Last Action: OpenFile
2020-09-16 11:06:09,742 [158761578] ERROR - onfigCodeStyleSettingsModifier - null
java.lang.NullPointerException
at org.editorconfig.configmanagement.extended.EditorConfigCodeStyleSettingsModifier.runWithCheckCancelled(EditorConfigCodeStyleSettingsModifier.java:100)
at org.editorconfig.configmanagement.extended.EditorConfigCodeStyleSettingsModifier.modifySettings(EditorConfigCodeStyleSettingsModifier.java:71)
at com.intellij.application.options.CodeStyleCachedValueProvider$AsyncComputation.computeSettings(CodeStyleCachedValueProvider.java:156)
...
```
delete your .editorconfig to see if it is the cuprit, then you can try to reformat it with a couple of regepx/replace
"[" -> "\n["
" " -> "\n"
"\n=\n" -> " = "
This might be a past issue, but after updating to 4.1.2 studio i am facing the same issue.
After double clicking in project files, files are not opening in the edit area.
I have tried the Invalidate Caches/restart but still facing the same issue. Sometimes it hangs if i search using double shift too.
very weird behavior after updating.
2021-01-28 15:33:19,741 [ 31409] ERROR - e.fileTemplates.impl.FTManager - Android Studio 4.1.2 Build #AI-201.8743.12.41.7042882
2021-01-28 15:33:19,741 [ 31409] ERROR - e.fileTemplates.impl.FTManager - JDK: 1.8.0_242-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2021-01-28 15:33:19,741 [ 31409] ERROR - e.fileTemplates.impl.FTManager - OS: Linux
2021-01-28 15:33:19,742 [ 31410] ERROR - e.fileTemplates.impl.FTManager - Last Action: About
2021-01-28 15:33:29,635 [ 41303] WARN - penapi.actionSystem.impl.Utils - Skipping empty menu item for action null (null) of class com.android.tools.idea.gradle.structure.actions.AndroidShowStructureSettingsAction. Please specify some default action text in plugin.xml or action constructor
2021-01-28 15:33:29,651 [ 41319] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 10024ms, details saved to /home/..../.cache/Google/AndroidStudio4.1/log/threadDumps-freeze-20210128-153324-AI-201.8743.12.41.7042882-MenuSelectionManager.setSelectedPath-10sec
Sameer P Pradhan, do you have any 3rd party plugins installed? It's worth also submitting an issue on our tracker providing the full idea.log: https://youtrack.jetbrains.com/issues/IDEA
Olga Kuvardina, I haven't installed any plugins. I just down versioned to 4.1.1 and seems like its the stable version and its working fine now.