vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

The LeetCode plug-in cannot be used. The following error is reported when logging in

Open 18374800307 opened this issue 4 years ago • 10 comments

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%

18374800307 avatar Jun 23 '20 00:06 18374800307

Please provide your node version. See it by executing node -v in cmd/terminal.

jdneo avatar Jun 23 '20 01:06 jdneo

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.

18374800307 avatar Jun 23 '20 01:06 18374800307

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 avatar Aug 20 '20 01:08 codingYH

@codingYH it seems a node bug, see https://github.com/foreversd/forever/issues/1077

yihong0618 avatar Aug 21 '20 01:08 yihong0618

same with me

YuFengDing avatar Jan 16 '24 08:01 YuFengDing

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]

daarisameen avatar Mar 13 '24 05:03 daarisameen

same with me

wiuuu666 avatar Mar 25 '24 07:03 wiuuu666

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

mikocot avatar Apr 04 '24 22:04 mikocot

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.

SiliconKaiser avatar Apr 09 '24 20:04 SiliconKaiser

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.

SiliconKaiser avatar Apr 12 '24 18:04 SiliconKaiser