Open wangyerdfz opened 1 year ago
Okay I just noticed that it's possible that my login expired right at that moment. After re-login I am not able to repro this issue.
Just kidding. The issue is still there. This time my login was not expired.
same issue
same issue
š Bug Report
this bug showed after I updated vscode to 1.75.1
double click any problem. leet code would still work, but it says
"""
Command "node "/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/bin/leetcode",show,76,-x" failed with exit code "1".
After running the command in bash I think there's probably an error somewhere in the script since It's running "leetcode," instead of "leetcode", which prompts the error? see the following
code-0.18.1/node_modules/vsc-leetcode-cli/bin/leetcode", show,76,-x node:internal/modules/cjs/loader:1063 throw err; ^
Error: Cannot find module '/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/bin/leetcode,' at Module._resolveFilename (node:internal/modules/cjs/loader:1060:15) at Module._load (node:internal/modules/cjs/loader:905:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
"""
with 76 being the problem number. but really any number would do
To Reproduce
just click and open any problem
Expected behavior
I expect no error message
Extension Output
(node:2798) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) [76] Minimum Window Substring[76] Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/description/
https://leetcode.com/problems/minimum-window-substring/description/
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
algorithms
Hard (40.65%)
Likes: 14232
Dislikes: 616
algorithms
Hard (40.65%)
Likes: 14232
Dislikes: 616
Total Accepted: 964.2K
Total Accepted: 964.2K
Total Submissions: 2.4M
Total Submissions: 2.4M
Testcase Example: '"ADOBECODEBANC"\n"ABC"'
Testcase Example: '"ADOBECODEBANC"\n"ABC"'
Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?(node:2805) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) (node:2804) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Usenode --trace-warnings ...
to show where the warning was created) [76] Minimum Window Substringhttps://leetcode.com/problems/minimum-window-substring/description/
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?(node:2809) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) [77] Combinations[77] Combinations
https://leetcode.com/problems/combinations/description/
Tags: algorithms backtracking
https://leetcode.com/problems/combinations/description/
Tags: algorithms backtracking
Langs: c cpp csharp elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Langs: c cpp csharp elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Given two integers
n
andk
, return all possible combinations ofk
numbers out of the range[1, n]
.You may return the answer in any order.
Example 1:
Example 2:
Constraints:
1 <= n <= 20
1 <= k <= n
Given two integers
n
andk
, return all possible combinations ofk
numbers out of the range[1, n]
.You may return the answer in any order.
Example 1:
Example 2:
Constraints:
1 <= n <= 20
1 <= k <= n
(node:2811) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) (node:2810) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Usenode --trace-warnings ...
to show where the warning was created) undefined:1SyntaxError: Unexpected end of JSON input at JSON.parse ()
at cache.get (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cache.js:22:15)
at Plugin.save (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/plugin.js:57:23)
at Plugin.save (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/plugin.js:213:33)
at initPlugins (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cli.js:63:12)
at cli.run (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cli.js:100:3)
at Object. (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/bin/leetcode:3:23)
at Module._compile (node:internal/modules/cjs/loader:1246:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
at Module.load (node:internal/modules/cjs/loader:1103:32)
Node.js v19.6.0 [82] Remove Duplicates from Sorted List II
https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/description/
Tags: algorithms linked-list
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Given the
head
of a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Return the linked list sorted as well.Example 1:
Example 2:
Constraints:
[0, 300]
.-100 <= Node.val <= 100
(node:2813) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) [76] Minimum Window Substringhttps://leetcode.com/problems/minimum-window-substring/description/
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window [76] Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/description/
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Hard (40.65%)
Likes: 14232
Dislikes: 616
algorithms
Hard (40.65%)
Likes: 14232
Dislikes: 616
Total Accepted: 964.2K
Total Submissions: 2.4M
Total Accepted: 964.2K
Total Submissions: 2.4M
Testcase Example: '"ADOBECODEBANC"\n"ABC"'
Testcase Example: '"ADOBECODEBANC"\n"ABC"'
Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?(node:2815) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) (node:2814) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Usenode --trace-warnings ...
to show where the warning was created) undefined:1SyntaxError: Unexpected end of JSON input at JSON.parse ()
at cache.get (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cache.js:22:15)
at Plugin.save (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/plugin.js:57:23)
at Plugin.save (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/plugin.js:213:33)
at initPlugins (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cli.js:63:12)
at cli.run (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/lib/cli.js:100:3)
at Object. (/Users/[user_name]/.vscode/extensions/leetcode.vscode-leetcode-0.18.1/node_modules/vsc-leetcode-cli/bin/leetcode:3:23)
at Module._compile (node:internal/modules/cjs/loader:1246:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
at Module.load (node:internal/modules/cjs/loader:1103:32)
Node.js v19.6.0 [76] Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/description/
Tags: algorithms facebook linkedin snapchat uber hash-table two-pointers string sliding-window
Langs: c cpp csharp dart elixir erlang golang java javascript kotlin php python python3 racket ruby rust scala swift typescript
Given two strings
s
andt
of lengthsm
andn
respectively, return the minimum window substring ofs
such that every character int
(including duplicates) is included in the window. If there is no such substring, return the empty string""
.The testcases will be generated such that the answer is unique.
Example 1:
Example 2:
Example 3:
Constraints:
m == s.length
n == t.length
1 <= m, n <= 105
s
andt
consist of uppercase and lowercase English letters.Follow up: Could you find an algorithm that runs in
O(m + n)
time?(node:2844) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created)Your Environment
extension settings: { "git.ignoreLegacyWarning": true, "python.terminal.activateEnvironment": true, "python.languageServer": "Pylance", "python.autoComplete.extraPaths": [
], "python.analysis.extraPaths": [], "leetcode.workspaceFolder": "/Users/[user_name]/vsCodeProjects/python_lc", "leetcode.defaultLanguage": "python3", "leetcode.hint.commandShortcut": false, "leetcode.hint.configWebviewMarkdown": false, "[python]": { "editor.formatOnType": true }, "leetcode.filePath": {
}
}
edit 1: fixed OS version. edit 2: typo and larger font in a specific line