Closed dcadevil closed 5 years ago
Please provide detailed information or screenshots
My operation is Ubuntu 18.04.2 LTS
error messags is: java.lang.NullPointerException at com.intellij.util.ui.tree.WideSelectionTreeUI.paint(WideSelectionTreeUI.java:362) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at javax.swing.JComponent.paintComponent(JComponent.java:780) at com.intellij.ui.treeStructure.Tree.paintComponent(Tree.java:340) at com.intellij.ui.treeStructure.SimpleTree.paintComponent(SimpleTree.java:262) at com.shuzijun.leetcode.plugin.window.NavigatorPanel$1.paintComponent(NavigatorPanel.java:68) at javax.swing.JComponent.paint(JComponent.java:1057) at com.intellij.ui.treeStructure.Tree.paint(Tree.java:254) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JViewport.paint(JViewport.java:737) at com.intellij.ui.components.JBViewport.paint(JBViewport.java:234) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JComponent.paintChildren(JComponent.java:890) at javax.swing.JComponent.paint(JComponent.java:1066) at javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5211) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290) at javax.swing.RepaintManager.paint(RepaintManager.java:1292) at javax.swing.JComponent._paintImmediately(JComponent.java:5159) at javax.swing.JComponent.paintImmediately(JComponent.java:4970) at javax.swing.RepaintManager$4.run(RepaintManager.java:848) at javax.swing.RepaintManager$4.run(RepaintManager.java:829) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:829) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:804) at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:753) at javax.swing.RepaintManager.access$1200(RepaintManager.java:71) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1860) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:732) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363) 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)
And when I click the submit, I 'll got:
java.lang.Throwable: 提交失败<!DOCTYPE html>
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134)
at com.shuzijun.leetcode.plugin.manager.CodeManager.SubmitCode(CodeManager.java:133)
at com.shuzijun.leetcode.plugin.actions.SubmitAction.perform(SubmitAction.java:22)
at com.shuzijun.leetcode.plugin.actions.AbstractAsynAction$1.run(AbstractAsynAction.java:17)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Ubuntu has not been tested yet, and you will be notified of future fixes
@dcadevil submit question titles ? Can you provide screenshots of the next operation?
@shuzijun
@shuzijun Still reporting error
@dcadevil Error message?
java.lang.Throwable: 提交失败:url:/problems/two-sum/submit/;param:{"typed_code":"package problem0001\n\nfunc twoSum(nums []int, target int) []int {\n\tindex := make(map[int]int, len(nums))\n\n\tfor i, b := range nums {\n\t\tif j, ok := index[target-b]; ok {\n\t\t\treturn []int{j, i}\n\t\t}\n\n\t\tindex[b] = i\n\t}\n\n\treturn nil\n}\n","lang":"golang","question_id":"1"};body:<!DOCTYPE html>
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134)
at com.shuzijun.leetcode.plugin.manager.CodeManager.SubmitCode(CodeManager.java:133)
at com.shuzijun.leetcode.plugin.actions.SubmitAction.perform(SubmitAction.java:22)
at com.shuzijun.leetcode.plugin.actions.AbstractAsynAction$1.run(AbstractAsynAction.java:17)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
@dcadevil Is your account newly registered with no verified email address?
@shuzijun I think I made a low-level mistake, I‘’m very sorry, wasting your time.
The plugin will report error when do submit or run code or test case. I use golang for the leetcode.