when I use database console, I can't find the execute command。

Answered

When I first install idea, the execute command appear. But I can't find it now when I restart idea, and I can't run commands even with Ctrl+Enter.

I find some error log in idea.log

 

2016-04-07 09:25:45,996 [1586202] ERROR - .intellij.psi.util.PsiUtilCore - IdeaLoggingEvent[message=no PSI for file 'console.sql', throwable=java.lang.Throwable
at com.intellij.psi.impl.DebugUtil.currentStackTrace(DebugUtil.java:501)
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:91)
at com.intellij.psi.util.PsiUtilCore.getPsiFile(PsiUtilCore.java:535)
at com.intellij.execution.console.LanguageConsoleImpl$Helper$1.compute(LanguageConsoleImpl.java:558)
at com.intellij.execution.console.LanguageConsoleImpl$Helper$1.compute(LanguageConsoleImpl.java:555)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:962)
at com.intellij.execution.console.LanguageConsoleImpl$Helper.getFile(LanguageConsoleImpl.java:555)
at com.intellij.execution.console.LanguageConsoleImpl$Helper.getFileSafe(LanguageConsoleImpl.java:595)
at com.intellij.execution.console.LanguageConsoleImpl.getFile(LanguageConsoleImpl.java:277)
at com.intellij.database.console.JdbcConsole.<init>(JdbcConsole.java:180)
at com.intellij.database.console.JdbcConsole.<init>(JdbcConsole.java:80)
at com.intellij.database.console.JdbcConsole$Builder.build(JdbcConsole.java:135)
at com.intellij.database.editor.DatabaseEditorHelper.configureConsole(DatabaseEditorHelper.java:185)
at com.intellij.database.console.DbConsoleRootType.fileOpened(DbConsoleRootType.java:66)
at com.intellij.ide.scratch.ScratchFileServiceImpl$3.fileOpened(ScratchFileServiceImpl.java:116)
at sun.reflect.GeneratedMethodAccessor427.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:372)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:359)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:345)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:338)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:226)
at com.sun.proxy.$Proxy144.fileOpened(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$14$1.run(FileEditorManagerImpl.java:974)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$16$1.run(FileEditorManagerImpl.java:1072)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:672)
at com.intellij.openapi.wm.impl.FocusManagerImpl.i(FocusManagerImpl.java:656)
at com.intellij.openapi.wm.impl.FocusManagerImpl.p(FocusManagerImpl.java:626)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$11.run(FocusManagerImpl.java:522)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2405)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:500)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:59)
at com.intellij.ui.tabs.impl.JBTabsImpl.removeDeferred(JBTabsImpl.java:1049)
at com.intellij.ui.tabs.impl.JBTabsImpl.access$2300(JBTabsImpl.java:68)
at com.intellij.ui.tabs.impl.JBTabsImpl$15.run(JBTabsImpl.java:936)
at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:58)
at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:72)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7$4$1.run(FocusManagerImpl.java:315)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2405)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7$4.run(FocusManagerImpl.java:311)
at com.intellij.openapi.util.ActionCallback$ExecutedExecutionCallback.doWhenExecuted(ActionCallback.java:187)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:111)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:308)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
]
2016-04-07 09:25:46,003 [1586209] ERROR - .impl.MessageBusConnectionImpl - null
java.lang.AssertionError
at com.intellij.psi.util.PsiUtilCore.getPsiFile(PsiUtilCore.java:536)
at com.intellij.execution.console.LanguageConsoleImpl$Helper$1.compute(LanguageConsoleImpl.java:558)
at com.intellij.execution.console.LanguageConsoleImpl$Helper$1.compute(LanguageConsoleImpl.java:555)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:962)
at com.intellij.execution.console.LanguageConsoleImpl$Helper.getFile(LanguageConsoleImpl.java:555)
at com.intellij.execution.console.LanguageConsoleImpl$Helper.getFileSafe(LanguageConsoleImpl.java:595)
at com.intellij.execution.console.LanguageConsoleImpl.getFile(LanguageConsoleImpl.java:277)
at com.intellij.database.console.JdbcConsole.<init>(JdbcConsole.java:180)
at com.intellij.database.console.JdbcConsole.<init>(JdbcConsole.java:80)
at com.intellij.database.console.JdbcConsole$Builder.build(JdbcConsole.java:135)
at com.intellij.database.editor.DatabaseEditorHelper.configureConsole(DatabaseEditorHelper.java:185)
at com.intellij.database.console.DbConsoleRootType.fileOpened(DbConsoleRootType.java:66)
at com.intellij.ide.scratch.ScratchFileServiceImpl$3.fileOpened(ScratchFileServiceImpl.java:116)
at sun.reflect.GeneratedMethodAccessor427.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:372)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:359)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:345)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:338)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:226)
at com.sun.proxy.$Proxy144.fileOpened(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$14$1.run(FileEditorManagerImpl.java:974)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$16$1.run(FileEditorManagerImpl.java:1072)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:672)
at com.intellij.openapi.wm.impl.FocusManagerImpl.i(FocusManagerImpl.java:656)
at com.intellij.openapi.wm.impl.FocusManagerImpl.p(FocusManagerImpl.java:626)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$11.run(FocusManagerImpl.java:522)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2405)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:500)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:59)
at com.intellij.ui.tabs.impl.JBTabsImpl.removeDeferred(JBTabsImpl.java:1049)
at com.intellij.ui.tabs.impl.JBTabsImpl.access$2300(JBTabsImpl.java:68)
at com.intellij.ui.tabs.impl.JBTabsImpl$15.run(JBTabsImpl.java:936)
at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:58)
at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:72)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7$4$1.run(FocusManagerImpl.java:315)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2405)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7$4.run(FocusManagerImpl.java:311)
at com.intellij.openapi.util.ActionCallback$ExecutedExecutionCallback.doWhenExecuted(ActionCallback.java:187)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:111)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:308)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:857)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2016-04-07 09:25:46,006 [1586212] ERROR - .impl.MessageBusConnectionImpl - IntelliJ IDEA 2016.1.1 Build #IU-145.597.3
2016-04-07 09:25:46,006 [1586212] ERROR - .impl.MessageBusConnectionImpl - JDK: 1.8.0_45
2016-04-07 09:25:46,007 [1586213] ERROR - .impl.MessageBusConnectionImpl - VM: Java HotSpot(TM) 64-Bit Server VM
2016-04-07 09:25:46,007 [1586213] ERROR - .impl.MessageBusConnectionImpl - Vendor: Oracle Corporation
2016-04-07 09:25:46,007 [1586213] ERROR - .impl.MessageBusConnectionImpl - OS: Windows 7
2016-04-07 09:25:46,007 [1586213] ERROR - .impl.MessageBusConnectionImpl - Last Action: Jdbc.OpenConsole
3 comments

Thanks for your help! it's working when removing .* from ignored files!

0

Please sign in to leave a comment.