Skip to content

I can not open the vscode-Leetcode after updating win11 #758

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

Closed
chiichen opened this issue Nov 30, 2021 · 5 comments
Closed

I can not open the vscode-Leetcode after updating win11 #758

chiichen opened this issue Nov 30, 2021 · 5 comments

Comments

@chiichen
Copy link

🐛 Bug Report

When I open vscode-Leetcode after updating the latest win11 version in 2021/11/30, I meet an error

To Reproduce

Just update the version of Windows 11

Expected behavior

A clear and concise description of what you expected to happen.

Extension Output

v16.13.0
[ERROR] Plugin not found!

  • Downloading https://raw.githubusercontent.com/leetcode-tools/leetcode-cli/master/lib/plugins/company.js
    (node:16136) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    (Use node --trace-warnings ... to show where the warning was created)
    [ERROR] Error: read ECONNRESET
    Error: Command "node "c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

Your Environment

  • os: Windows11
  • extension settings:{
    "workbench.editorAssociations": {
    "*.ipynb": "jupyter-notebook"
    },
    "python.pythonPath": "C:\Users\Chi\AppData\Local\Programs\Python\Python39\python.exe",
    "files.autoSave": "afterDelay",
    "java.home":"D:\JDK",
    "notebook.cellToolbarLocation": {
    "default": "right",
    "jupyter-notebook": "left"
    },
    "python.defaultInterpreterPath": "C:\Users\Chi\AppData\Local\Programs\Python\Python39\python.exe",
    "C_Cpp.updateChannel": "Insiders",
    "leetcode.nodepath": "D:\Node.js\node.exe",
    "leetcode.endpoint": "leetcode-cn",
    "leetcode.workspaceFolder": "D:\my repo\SummerDay\CPP\leetcode",
    "githubIssues.queries": [
    {
    "label": "My Issues",
    "query": "default"
    },
    {
    "label": "Created Issues",
    "query": "author:${user} state:open repo:${owner}/${repository} sort:created-desc"
    }
    ],
    "leetcode.defaultLanguage": "cpp",
    "leetcode.hint.configWebviewMarkdown": false,
    "leetcode.hint.commentDescription": false,
    "cmake.configureOnOpen": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "files.exclude": {
    "/.classpath": true,
    "
    /.project": true,
    "/.settings": true,
    "
    /.factorypath": true
    },
    "git.autofetch": true,
    }
  • nodejs version:Latest
  • vscode version:Latest
  • extension version:Latest
@chiichen
Copy link
Author

And I have tried reintalling the extension

@chiichen
Copy link
Author

The output has changed

v16.13.0
c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\company.js:1455
'1054': ['math']

SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\file.js:66:28
at Array.map ()
c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\company.js:1455
'1054': ['math']

SyntaxError: Unexpected end of input
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\file.js:66:28
at Array.map ()
Error: Command "node "c:\Users\Chi.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\bin\leetcode",plugin,-i,company" failed with exit code "1".

@chiichen
Copy link
Author

chiichen commented Dec 8, 2021

I have figured it out:

What you need to do is delete the filefolder "C:\Users{$Username$}.vscode\extensions\leetcode.vscode-leetcode-0.18.0" and delete the extension in vscode and install it again

@StevenLiao123
Copy link

StevenLiao123 commented Dec 8, 2021 via email

@EquinoxFlowerJG
Copy link

I have figured it out:

What you need to do is delete the filefolder "C:\Users{$Username$}.vscode\extensions\leetcode.vscode-leetcode-0.18.0" and delete the extension in vscode and install it again

I've met the same problem with you, and I try your solution, and it works. Thank you~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants