Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to double click and view a submission record #601

Closed
LihengGong opened this issue Dec 7, 2022 · 0 comments
Closed

Error when trying to double click and view a submission record #601

LihengGong opened this issue Dec 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LihengGong
Copy link

Describe the bug
Plugin throws java error when I tried to double click a submission record.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'tab submissions'
  2. Double Click on one submission record
  3. See error

Software versions(Help -> About)

  • Product: [Pycharm 2022.3]
  • Runtime version:[17.0.5+1-b653.14 aarch64]
  • VM:[OpenJDK 64-Bit Server VM by JetBrains s.r.o.]
  • OS:[macOS 13.0.1 (22A400)]

Stack Trace

  • URL:[e.g leetcode.com]
  • Code Type:[e.g JAVA]
  • 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&#x27;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&#x27;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)
    
    
@shuzijun shuzijun added the bug Something isn't working label Dec 8, 2022
shuzijun added a commit that referenced this issue Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants