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

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

Open
18374800307 opened this issue Jun 23, 2020 · 10 comments
Labels
need more info Further information is requested

Comments

@18374800307
Copy link

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%
@jdneo
Copy link
Member

jdneo commented Jun 23, 2020

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

@jdneo jdneo added the need more info Further information is requested label Jun 23, 2020
@18374800307
Copy link
Author

18374800307 commented Jun 23, 2020 via email

@codingYH
Copy link

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

@yihong0618
Copy link
Contributor

@codingYH it seems a node bug, see foreversd/forever#1077

@YuFengDing
Copy link

same with me

@daarisameen
Copy link

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]

@wiuuu666
Copy link

same with me

@mikocot
Copy link

mikocot commented Apr 4, 2024

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

@SiliconKaiser
Copy link

SiliconKaiser commented Apr 9, 2024

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
Copy link

SiliconKaiser commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

9 participants