Closed LihengGong closed 1 year ago
Describe the bug Plugin throws java error when I tried to double click a submission record.
To Reproduce Steps to reproduce the behavior:
Software versions(Help -> About)
Stack Trace
code:
java.lang.Throwable: <!DOCTYPE html><html lang="en"><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><script>!function(){try {var d=document.documentElement.classList;d.remove('light','dark');var e=localStorage.getItem('lc-dark-side');if("system"===e||(!e&&true)){var t="(prefers-color-scheme: dark)",m=window.matchMedia(t);m.media!==t||m.matches?d.add('dark'):d.add('light')}else if(e) d.add(e)}catch(e){}}()</script><title>LeetCode - The World's Leading Online Programming Learning Platform</title><meta name="robots" content="index,follow"/><meta name="description" content="Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview."/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:site" content="@LeetCode"/><meta property="og:title" content="LeetCode - The World's Leading Online Programming Learning Platform"/><meta property="og:description" content="Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview."/><meta property="og:image" content="https://leetcode.com/static/images/LeetCode_Sharing.png"/><meta property="og:locale" content="en_US"/><meta property="og:site_name" content="LeetCode"/><meta name="next-head-count" content="13"/><link rel="preload" href="/_next/static/css/6e3c35500bfaa0a4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/6e3c35500bfaa0a4.css" data-n-g=""/><link rel="preload" href="/_next/static/css/85a4c46610d0ac43.css" as="style"/><link rel="stylesheet" href="/_next/static/css/85a4c46610d0ac43.css" data-n-p=""/><link rel="preload" href="/_next/static/css/66b44f7409efe140.css" as="style"/><link rel="stylesheet" href="/_next/static/css/66b44f7409efe140.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-778d5e8f8ddf380a.js" defer=""></script><script src="/_next/static/chunks/framework-560765ab0625ba27.js" defer=""></script><script src="/_next/static/chunks/main-fc34d118b74c83c6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-089056f73d5702ed.js" defer=""></script><script src="/_next/static/chunks/e6848cf3-9e6f363bb4cc35ab.js" defer=""></script><script src="/_next/static/chunks/4b358913-adf7c06065c94338.js" defer=""></script><script src="/_next/static/chunks/129-9273e70976d3ce56.js" defer=""></script><script src="/_next/static/chunks/7081-cd4acaee22e7ea36.js" defer=""></script><script src="/_next/static/chunks/8498-f7c5665f2f70872f.js" defer=""></script><script src="/_next/static/chunks/8736-f4b758421d8b1c84.js" defer=""></script><script src="/_next/static/chunks/9314-c35e5888117406c1.js" defer=""></script><script src="/_next/static/chunks/1867-73138749cc305aa5.js" defer=""></script><script src="/_next/static/chunks/3750-013f92363d629f40.js" defer=""></script><script src="/_next/static/chunks/8764-75c51dbf68058559.js" defer=""></script><script src="/_next/static/chunks/3386-76dab5afe3d45a7d.js" defer=""></script><script src="/_next/static/chunks/9131-ba5dbe3098bda80b.js" defer=""></script><script src="/_next/static/chunks/3774-55e3c3df0ab573c4.js" defer=""></script><script src="/_next/static/chunks/1613-8cfcc454a887d690.js" defer=""></script><script src="/_next/static/chunks/6300-67456d61f04c269f.js" defer=""></script><script src="/_next/static/chunks/930-e60b2a8ff7f1d712.js" defer=""></script><script src="/_next/static/chunks/4889-f806173a44aad44a.js" defer=""></script><script src="/_next/static/chunks/1692-f96a1b32d8cbd6f5.js" defer=""></script><script src="/_next/static/chunks/5518-df81e5e89a41ab95.js" defer=""></script><script src="/_next/static/chunks/4416-8598478ad00101bb.js" defer=""></script><script src="/_next/static/chunks/8805-4bac55be2a8b8414.js" defer=""></script><script src="/_next/static/chunks/5221-590d62c299d04f84.js" defer=""></script><script src="/_next/static/chunks/3700-05dc951b6e6968e5.js" defer=""></script><script src="/_next/static/chunks/7048-f3b056f67b999490.js" defer=""></script><script src="/_next/static/chunks/8096-ff75d03d6755d081.js" defer=""></script><script src="/_next/static/chunks/4841-68900cef6bf9c9a9.js" defer=""></script><script src="/_next/static/chunks/3986-b584c6f5633198b5.js" defer=""></script><script src="/_next/static/chunks/6694-367f25487b927769.js" defer=""></script><script src="/_next/static/chunks/211-59b0a2fc89494d1b.js" defer=""></script><script src="/_next/static/chunks/5490-da77235491bd1071.js" defer=""></script><script src="/_next/static/chunks/3688-e7c8902b49eb7c4e.js" defer=""></script><script src="/_next/static/chunks/pages/problems/%5Bslug%5D/%5B%5B...tab%5D%5D-069207f56ce8a1ad.js" defer=""></script><script src="/_next/static/eg1N4iKOSlpYQSiTnlTkc/_buildManifest.js" defer=""></script><script src="/_next/static/eg1N4iKOSlpYQSiTnlTkc/_ssgManifest.js" defer=""></script><script src="/_next/static/eg1N4iKOSlpYQSiTnlTkc/_middlewareManifest.js" defer=""></script></head><body><div id="__next" data-reactroot=""><script lang="javascript"> (() => { const width = Number(localStorage.getItem('CONSOLE_SPLIT_LINE_HORIZONTAL')) || 50 const height = Number(localStorage.getItem('CONSOLE_SPLIT_LINE_VERTICAL')) || 50 const style = document.createElement('style') style.className = 'qd-splitter-style' style.innerHTML = ` .ssg__qd-splitter-primary-w { width: calc(${width}% - 4px); } .ssg__qd-splitter-secondary-w { width: calc(${100 - width}% - 4px); } .ssg__qd-splitter-primary-h { height: calc(${height}% - 4px); } .ssg__qd-splitter-secondary-h { height: calc(${100 - height}% - 4px); } ` document.body.appendChild(style) })() </script><script lang="javascript"> (() => { const position = localStorage.getItem('QD_CONSOLE_PANEL_POSITION') || 'right' const positionRight = position === 'right' const classNameToHide = positionRight ? 'ssg__qd-console-position--left' : 'ssg__qd-console-position--right' const style = document.createElement('style') style.className = 'qd-console-style' style.innerHTML = ` .${classNameToHide} { display: none; } ` document.body.appendChild(style) })() </script></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"__N_SSG":true},"page":"/problems/[slug]/[[...tab]]","query":{},"buildId":"eg1N4iKOSlpYQSiTnlTkc","isFallback":true,"gsp":true,"scriptLoader":[]}</script><div id="modal-root"></div></body></html> at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202) at com.shuzijun.leetcode.plugin.manager.SubmissionManager.loadSubmissionEn(SubmissionManager.java:145) at com.shuzijun.leetcode.plugin.manager.SubmissionManager.openSubmission(SubmissionManager.java:85) at com.shuzijun.leetcode.plugin.editor.converge.SubmissionsPreview.lambda$openSubmission$2(SubmissionsPreview.java:184) at com.intellij.openapi.application.impl.ApplicationImpl$2.call(ApplicationImpl.java:277) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833)
Describe the bug Plugin throws java error when I tried to double click a submission record.
To Reproduce Steps to reproduce the behavior:
Software versions(Help -> About)
Stack Trace
code: