ShyykoSerhiy / gfm-plugin

Github flavored markdown plugin for intellij idea.
https://plugins.jetbrains.com/plugin/7701
MIT License
88 stars 16 forks source link

GFM 0.2.0 -- View fails with java.lang.NoSuchMethodException Idea 2019.1 (Ubuntu 18.04) #154

Open nrapopor opened 4 years ago

nrapopor commented 4 years ago

Here is the stack trace ...

java.lang.RuntimeException: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeLinux.a(SourceFile:43)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeLinux.getWindowHandle(SourceFile:25)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget$a.run(SourceFile:507)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.a(SourceFile:238)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.addNotify(SourceFile:260)
    at java.desktop/java.awt.Container.addNotify(Container.java:2796)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4784)
    at java.desktop/java.awt.Container.addNotify(Container.java:2796)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4784)
    at java.desktop/java.awt.Container.addNotify(Container.java:2796)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4784)
    at java.desktop/java.awt.Container.addNotify(Container.java:2796)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4784)
    at java.desktop/java.awt.Container.addImpl(Container.java:1142)
    at java.desktop/java.awt.Container.add(Container.java:993)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi.ensureSelectedContentVisible(ToolWindowContentUi.java:220)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi.access$200(ToolWindowContentUi.java:49)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi$2.selectionChanged(ToolWindowContentUi.java:188)
    at jdk.internal.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:132)
    at com.intellij.util.EventDispatcher.access$000(EventDispatcher.java:26)
    at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:90)
    at com.sun.proxy.$Proxy86.selectionChanged(Unknown Source)
    at com.intellij.ui.content.impl.ContentManagerImpl.fireSelectionChanged(ContentManagerImpl.java:554)
    at com.intellij.ui.content.impl.ContentManagerImpl.addSelectedContent(ContentManagerImpl.java:370)
    at com.intellij.ui.content.impl.ContentManagerImpl$1.run(ContentManagerImpl.java:461)
    at com.intellij.ui.content.impl.ContentManagerImpl.setSelectedContent(ContentManagerImpl.java:477)
    at com.intellij.ui.content.impl.ContentManagerImpl.setSelectedContentCB(ContentManagerImpl.java:428)
    at com.intellij.ui.content.impl.ContentManagerImpl.setSelectedContentCB(ContentManagerImpl.java:417)
    at com.intellij.ui.content.impl.ContentManagerImpl.setSelectedContentCB(ContentManagerImpl.java:495)
    at com.intellij.ui.content.impl.ContentManagerImpl.setSelectedContent(ContentManagerImpl.java:500)
    at com.intellij.ui.content.impl.ContentManagerImpl.doAddContent(ContentManagerImpl.java:152)
    at com.intellij.ui.content.impl.ContentManagerImpl.addContent(ContentManagerImpl.java:134)
    at com.github.shyykoserhiy.gfm.toolwindow.GfmBrowserToolWindowFactory.createToolWindowContent(GfmBrowserToolWindowFactory.java:18)
    at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:533)
    at com.intellij.openapi.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.java:356)
    at com.intellij.openapi.wm.impl.content.ContentTabLabel.contentManager(ContentTabLabel.java:355)
    at com.intellij.openapi.wm.impl.content.ContentTabLabel.isSelected(ContentTabLabel.java:338)
    at com.intellij.openapi.wm.impl.content.ContentTabLabel._getGraphics(ContentTabLabel.java:347)
    at com.intellij.openapi.wm.impl.content.BaseLabel.paintComponent(BaseLabel.java:84)
    at com.intellij.openapi.wm.impl.content.ContentTabLabel.paintComponent(ContentTabLabel.java:333)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1075)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at com.intellij.openapi.wm.impl.content.ToolWindowContentUi.paintChildren(ToolWindowContentUi.java:255)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at com.intellij.openapi.wm.impl.ToolWindowHeader.paintChildren(ToolWindowHeader.java:305)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:908)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1084)
    at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5256)
    at java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:246)
    at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1326)
    at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5204)
    at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5014)
    at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:868)
    at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:851)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
    at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:851)
    at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:826)
    at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:775)
    at java.desktop/javax.swing.RepaintManager.access$1200(RepaintManager.java:72)
    at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1894)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:723)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:678)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at java.base/java.lang.Class.getMethod(Class.java:2065)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeLinux.a(SourceFile:37)
    ... 100 more
larrywest commented 4 years ago

Same with IntelliJ 2019.1.3 on MacOS 10.14.5 (also gfm 0.2.0):

IntelliJ IDEA 2019.1.3 (Ultimate Edition)
Build #IU-191.7479.19, built on May 27, 2019
Licensed to <me>
You have a perpetual fallback license for this version
Subscription is active until May 1, 2020
JRE: 11.0.2+9-b159.60 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.5

Stack trace looks very similar:

java.lang.RuntimeException: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:70)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.getWindowHandle(SourceFile:34)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget$a.run(SourceFile:507)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.a(SourceFile:238)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.addNotify(SourceFile:260)
    at java.desktop/java.awt.Container.addNotify(Unknown Source)
    at java.desktop/javax.swing.JComponent.addNotify(Unknown Source)
    at java.desktop/java.awt.Container.addNotify(Unknown Source)
    at java.desktop/javax.swing.JComponent.addNotify(Unknown Source)
    at java.desktop/java.awt.Container.addNotify(Unknown Source)
    at java.desktop/javax.swing.JComponent.addNotify(Unknown Source)
    at java.desktop/java.awt.Container.addNotify(Unknown Source)
    at java.desktop/javax.swing.JComponent.addNotify(Unknown Source)
    at java.desktop/java.awt.Container.addImpl(Unknown Source)
    at com.intellij.ui.tabs.impl.JBTabsImpl.addImpl(JBTabsImpl.java:2654)
    at java.desktop/java.awt.Container.add(Unknown Source)
    at com.intellij.ui.tabs.impl.JBTabsImpl.updateContainer(JBTabsImpl.java:2628)
    at com.intellij.ui.tabs.impl.JBTabsImpl.executeSelectionChange(JBTabsImpl.java:901)
    at com.intellij.ui.tabs.impl.JBTabsImpl._setSelected(JBTabsImpl.java:867)
    at com.intellij.ui.tabs.impl.JBTabsImpl.select(JBTabsImpl.java:849)
    at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.java:96)
    at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
    at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.Component.processEvent(Unknown Source)
    at java.desktop/java.awt.Container.processEvent(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at java.base/java.lang.Class.getMethod(Unknown Source)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:64)
    ... 53 more

PS: gfm is an extremely useful plug-in ... are you looking for assistance on any of these issues?

Glandalf commented 4 years ago

Same for me on Windows. Could we miss some external dependencies?

java.lang.RuntimeException: java.lang.NoSuchMethodException: com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.getPeer()
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeWin.getWindowHandle(SourceFile:37)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget$a.run(SourceFile:507)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.a(SourceFile:238)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.setVisible(SourceFile:194)
    at com.teamdev.jxbrowser.chromium.swing.BrowserView.setVisible(SourceFile:190)
    at com.intellij.openapi.project.DumbUnawareHider.setContentVisible(DumbUnawareHider.java:45)
    at com.intellij.openapi.project.DumbServiceImpl.wrapGently(DumbServiceImpl.java:417)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.createEditorComponent(EditorComposite.java:177)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.createTabbedPaneWrapper(EditorComposite.java:164)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.<init>(EditorComposite.java:112)
    at com.intellij.openapi.fileEditor.impl.EditorWithProviderComposite.<init>(EditorWithProviderComposite.java:26)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.createComposite(FileEditorManagerImpl.java:990)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$8(FileEditorManagerImpl.java:878)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:672)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:685)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:965)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:786)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$4(FileEditorManagerImpl.java:768)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:212)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:768)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:699)
    at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:145)
    at com.intellij.codeInsight.navigation.NavigationUtil.activatePsiElementIfOpen(NavigationUtil.java:200)
    at com.intellij.codeInsight.navigation.NavigationUtil.lambda$openFileWithPsiElement$1(NavigationUtil.java:170)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
    at com.intellij.codeInsight.navigation.NavigationUtil.openFileWithPsiElement(NavigationUtil.java:169)
    at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:232)
    at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:242)
    at com.intellij.ide.projectView.impl.nodes.PsiFileNode.navigate(PsiFileNode.java:127)
    at com.intellij.util.OpenSourceUtil.navigateToSource(OpenSourceUtil.java:119)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:74)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:58)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:51)
    at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:19)
    at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.processDoubleClick(EditSourceOnDoubleClickHandler.java:128)
    at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.onDoubleClick(EditSourceOnDoubleClickHandler.java:120)
    at com.intellij.ui.DoubleClickListener.onClick(DoubleClickListener.java:30)
    at com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:73)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
    at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
    at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:398)
    at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:58)
    at java.desktop/java.awt.Component.processEvent(Unknown Source)
    at java.desktop/java.awt.Container.processEvent(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.getPeer()
    at java.base/java.lang.Class.getMethod(Unknown Source)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeWin.getWindowHandle(SourceFile:30)
    ... 82 more
pengisgood commented 4 years ago

I got the same issue with Pycharm

PyCharm 2019.2 (Professional Edition)
Build #PY-192.5728.105, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.5
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: 
Non-Bundled Plugins: com.github.shyykoserhiy.gfm, BashSupport

error:

java.lang.RuntimeException: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:70)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.getWindowHandle(SourceFile:34)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget$a.run(SourceFile:507)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.a(SourceFile:238)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.addNotify(SourceFile:260)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addImpl(Container.java:1146)
    at com.intellij.ui.tabs.newImpl.JBTabsImpl.addImpl(JBTabsImpl.java:2142)
    at java.desktop/java.awt.Container.add(Container.java:436)
    at com.intellij.ui.tabs.newImpl.JBTabsImpl.updateContainer(JBTabsImpl.java:2116)
    at com.intellij.ui.tabs.newImpl.JBTabsImpl.executeSelectionChange(JBTabsImpl.java:1037)
    at com.intellij.ui.tabs.newImpl.JBTabsImpl._setSelected(JBTabsImpl.java:998)
    at com.intellij.ui.tabs.newImpl.JBTabsImpl.select(JBTabsImpl.java:979)
    at com.intellij.ui.JBTabsPaneImpl.setSelectedIndex(JBTabsPaneImpl.java:121)
    at com.intellij.ui.TabbedPaneWrapper.setSelectedIndex(TabbedPaneWrapper.java:172)
    at com.intellij.ui.TabbedPaneWrapper.setSelectedIndex(TabbedPaneWrapper.java:165)
    at com.intellij.openapi.fileEditor.impl.EditorComposite.setSelectedEditor(EditorComposite.java:388)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4Edt(FileEditorManagerImpl.java:927)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$7(FileEditorManagerImpl.java:845)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:630)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:643)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:845)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:790)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$4(FileEditorManagerImpl.java:773)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:212)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:773)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:704)
    at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:145)
    at com.intellij.codeInsight.navigation.NavigationUtil.activatePsiElementIfOpen(NavigationUtil.java:200)
    at com.intellij.codeInsight.navigation.NavigationUtil.lambda$openFileWithPsiElement$1(NavigationUtil.java:170)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
    at com.intellij.codeInsight.navigation.NavigationUtil.openFileWithPsiElement(NavigationUtil.java:169)
    at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:237)
    at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:247)
    at com.intellij.ide.projectView.impl.nodes.PsiFileNode.navigate(PsiFileNode.java:127)
    at com.intellij.util.OpenSourceUtil.navigateToSource(OpenSourceUtil.java:119)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:74)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:58)
    at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:51)
    at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:19)
    at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.processDoubleClick(EditSourceOnDoubleClickHandler.java:129)
    at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.onDoubleClick(EditSourceOnDoubleClickHandler.java:121)
    at com.intellij.ui.DoubleClickListener.onClick(DoubleClickListener.java:30)
    at com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:59)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6651)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:395)
    at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:44)
    at java.desktop/java.awt.Component.processEvent(Component.java:6416)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:873)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:818)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:461)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:460)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at java.base/java.lang.Class.getMethod(Class.java:2108)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:64)
    ... 97 more
Vampire commented 4 years ago

Seems JxBrowser uses a method that no longer exists. java.awt.Component.getPeer() was long deprecated and now was removed from Java 11. For those where the plugin fails on 2019.1, use JBR8 (the default), then the plugin works. For 2019.2 or those that chose to use JBR11 with 2019.1, IJ is running on Java 11, where this method was removed.

JxBrowser 6.22 release notes state that the version is compatible with Java 11, but as 0.2.0 bundles JxBrowser 6.23.1 this is either a false statement or a new regression.

fluffynuts commented 4 years ago

@Vampire not being a Java dev, I'm not sure if I'm following correctly:

Are you saying that if I'm using Webstorm 2019.2 or higher, I'm just plain shit-outta-luck? Or is there a workaround?

Vampire commented 4 years ago

afaik 2019.2 should still work with Java 8, but Java 11 is the default now. See https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under?page=5 for info on switching

fluffynuts commented 4 years ago

@Vampire thanks (: I may try it, though I'm afraid of the warnings at that same url that the runtime bundled with IntelliJ " fixes many known OpenJDK and Oracle JDK bugs"

Vampire commented 4 years ago

I didn't say use vanilla OpenJDK or Oracle JDK (which is the same, only packaging is different). I said use Java 8. This does not prevent you from using JBR. Just execute the Switch Boot Runtime... action from inside IntelliJ and select one of the Java 8 JBR runtimes. I didn't try it, but it should probably work fine.

fluffynuts commented 4 years ago

o, thanks (: i'll give it a go next time I need github markdown support (:

dingusj1 commented 4 years ago

Same issue on Rubymine image

625781186 commented 4 years ago

Solve:

Everyone , According to this, I successfully solved the problem : https://github.com/ShyykoSerhiy/gfm-plugin/issues/154#issuecomment-522524108 My IDE : pycharm 2019.1.3. OS : Window 10.

1. step1 install choose runtime plugin:

image

1. step2 download sdk :

(May be you can skip to step4 select install , but I'm a chinese that network too slowly.)

https://bintray.com/jetbrains/intellij-jbr

image

https://bintray.com/jetbrains/intellij-jbr/jbrsdk8-windows-x64/1638.6

image

1. step3 unzip sdk:

image

1. step4 install sdk:

here select step3 path.

image

1. result:

image

atufkas commented 4 years ago

First of all: Thanks for this lovely small plugin I used to work with quite frequently!

Same issue here, in my case:

macOS Catalina running WebStorm 2019.3.1 running Java Runtime 11+.

Effect is: When gfm plugin-handled file of a reopened project is still registered as "open", IDE crashes on startup after finishing indexing (so when the files are automatically restored within editor tabs). Otherwise IDE crashes as soon as handled file is opened manually. No log output in idea.log at all, so I added com.jetbrains.plugins.gfm to the "Custom Log Debug Configuration". Exception obviously doesn't lead to crash now but produces following log output:

2020-01-21 10:35:32,975 [ 108462]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: com.jetbrains.plugins.gfm
2020-01-21 10:35:49,168 [ 124655]   WARN - om.intellij.util.FieldAccessor - Field not found: javafx.embed.swing.JFXPanel.scaleFactor
2020-01-21 10:36:02,436 [ 137923]  ERROR - llij.ide.plugins.PluginManager - java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
java.lang.RuntimeException: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:70)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.getWindowHandle(SourceFile:34)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget$a.run(SourceFile:507)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.a(SourceFile:238)
    at com.teamdev.jxbrowser.chromium.swing.internal.HeavyWeightWidget.addNotify(SourceFile:260)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addNotify(Container.java:2800)
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
    at java.desktop/java.awt.Container.addImpl(Container.java:1146)
    at com.intellij.ui.tabs.impl.JBTabsImpl.addImpl(JBTabsImpl.java:2029)
    at java.desktop/java.awt.Container.add(Container.java:436)
    at com.intellij.ui.tabs.impl.JBTabsImpl.updateContainer(JBTabsImpl.java:2003)
    at com.intellij.ui.tabs.impl.JBTabsImpl.executeSelectionChange(JBTabsImpl.java:1000)
    at com.intellij.ui.tabs.impl.JBTabsImpl._setSelected(JBTabsImpl.java:958)
    at com.intellij.ui.tabs.impl.JBTabsImpl.select(JBTabsImpl.java:940)
    at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.java:82)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6416)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
    at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:846)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:778)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NoSuchMethodException: com.intellij.openapi.wm.impl.IdeFrameImpl.getPeer()
    at java.base/java.lang.Class.getMethod(Class.java:2108)
    at com.teamdev.jxbrowser.chromium.swing.internal.NativeMac.a(SourceFile:64)
    ... 56 more
2020-01-21 10:36:02,439 [ 137926]  ERROR - llij.ide.plugins.PluginManager - WebStorm 2019.3.1  Build #WS-193.5662.54
2020-01-21 10:36:02,439 [ 137926]  ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-01-21 10:36:02,439 [ 137926]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2020-01-21 10:36:02,441 [ 137928]  ERROR - llij.ide.plugins.PluginManager - Plugin to blame: gfm version: 0.2.0
2020-01-21 10:36:02,441 [ 137928]  ERROR - llij.ide.plugins.PluginManager - Last Action: LogDebugConfigure
2020-01-21 10:36:02,928 [ 138415]   INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 21.01.20, 10:12)

I'd of course prefer a fix that plays together with Java 8 and 11 as well.

There's no release and code changes since May 2018 now. @ShyykoSerhiy Any plans for the future of this plugin?

Hinaser commented 3 years ago

Hi folks!

This is a problem in a library of embedded browser (JxBrowser).

I developed another gfm plugin for intelliJ compat IDEs. I'll release it right after next major release(2020.2) is rolled out! (I replaced embedded browser to Java-Chromium-embedded-framework, which is enabled by default after IntelliJ 2020.2)

https://youtube.com/watch?v=J8kgi-CTwbA

ShyykoSerhiy commented 3 years ago

@Hinaser nicely done. Deprecating this one.