vscode-leetcode
vscode-leetcode copied to clipboard
The LeetCode plug-in cannot be used. The following error is reported when logging in
Issue Type: Bug
- Downloading problems
(node:17460) 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: unable to verify the first certificate
Extension version: 0.16.2 VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z) OS version: Windows_NT x64 10.0.19041
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400) |
GPU Status | 2d_canvas: unavailable_software flash_3d: disabled_software flash_stage3d: disabled_software flash_stage3d_baseline: disabled_software gpu_compositing: disabled_software multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: disabled_off rasterization: disabled_software skia_renderer: disabled_off_ok video_decode: disabled_software viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: unavailable_software webgl2: unavailable_software |
Load (avg) | undefined |
Memory (System) | 7.88GB (4.44GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Please provide your node version. See it by executing node -v
in cmd/terminal.
v14.4.0
------------------ 原始邮件 ------------------ 发件人: "Sheng Chen"<[email protected]>; 发送时间: 2020年6月23日(星期二) 上午9:25 收件人: "LeetCode-OpenSource/vscode-leetcode"<[email protected]>; 抄送: "1018988577"<[email protected]>;"Author"<[email protected]>; 主题: Re: [LeetCode-OpenSource/vscode-leetcode] The LeetCode plug-in cannot be used. The following error is reported when logging in (#579)
Please provide your node version. See it by executing node -v in cmd/terminal.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Yeah, I have the same problem.
(node:56743) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
node -v v14.7.0
@codingYH it seems a node bug, see https://github.com/foreversd/forever/issues/1077
same with me
same with me my node version is v21.7.1
Status signed in successfully Error: Failed to list problems. Please open the output channel for details.
(node:26668) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency [ERROR] session expired, please login again [code=-1]
same with me
node v20.12.1 and the same story, seems like it wasn't fixed upstream, or maybe never was a node issue first of all
This problem went away for me after disabling format on save and reformatting all lines of code to fit in single lines (instead of having long lines of code split across multiple lines). It seems Leetcode did not like the way that the vscode formatter moved code to new lines and padded the whitespace in front.
I encountered this issue again testing a c++ solution for leetcode problem # 349. The following code gives an error:
// @lc code=start
#include <vector>
#include <unordered_set>
using namespace std;
class Solution
{
public:
vector<int> intersection(vector<int> &nums1, vectoar<int> &nums2)
{
unordered_set<int> seen;
vector<int> result;
for (int n : nums1)
seen.insert(n);
for (int n : nums2)
if (seen.count(n) == 1)
{
result.push_back(n);
seen.erase(n);
}
return result;
}
};
// @lc code=end
But this code below does not. The only difference is seen.insert(n)
changed to seen.emplace(n)
. Both solutions are correct but it's strange that the insert
version fails:
// @lc code=start
#include <vector>
#include <unordered_set>
using namespace std;
class Solution
{
public:
vector<int> intersection(vector<int> &nums1, vector<int> &nums2)
{
unordered_set<int> seen;
vector<int> result;
for (int n : nums1)
seen.emplace(n);
for (int n : nums2)
if (seen.count(n) == 1)
{
result.push_back(n);
seen.erase(n);
}
return result;
}
};
// @lc code=end
Here's the error I get in vscode's output panel:
- Sending code to judge
(node:11484) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] session expired, please login again [code=-1]
Leetcode version:
LeetCode
v0.18.1
力扣 LeetCode
node version:
v20.9.0
Hopefully someone can reproduce this bug.