LeetCode-OpenSource / vscode-leetcode

Solve LeetCode problems in VS Code
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode
MIT License
8.18k stars 646 forks source link

Unable to login with the latest v0.18.2 #945

Open ocavue opened 4 months ago

ocavue commented 4 months ago

šŸ› Bug Report

A new login way was added in https://github.com/LeetCode-OpenSource/vscode-leetcode/pull/944 by @leozhao21. However, I found it not working.

To Reproduce

  1. Open VSCode, and run Leetcode: Sign in Command
  2. https://leetcode.com/authorize-login/vscode/?path=leetcode.vscode-leetcode will be opened in the browser
  3. Click "Open Visual Studio Code" button
  4. VSCode shows a "Fetch user data" toast but it never finishs.
  5. Open VSCode "Output" and switch to the "LeetCode" tab, it shows the following information:
login: (node:64328) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
error:   DEBUG Invalid input for login

Expected behavior

I can login with this extension.

Extension Output

See my description above.

Your Environment

banger0319 commented 4 months ago

+1

chancodea07 commented 4 months ago

same issue

(node:28300) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) [ERROR] You are not login yet? (node:28492) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)

zxc-moonwei commented 4 months ago

+1

BETTlM commented 4 months ago

@ocavue https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/946

ankitson commented 4 months ago

This also doesn't work if you are using VS Code Insiders or a fork of VS Code. The "Open VS Code" link in the browser after authorizing tries to open VS Code instead of insiders. The older login methods should be reverted and left in until the new version is fully tested.

talaLiu commented 4 months ago

+1

xxinran commented 4 months ago

+1

rayinfinite commented 4 months ago

+1

BETTlM commented 4 months ago

This also doesn't work if you are using VS Code Insiders or a fork of VS Code. The "Open VS Code" link in the browser after authorizing tries to open VS Code instead of insiders. The older login methods should be reverted and left in until the new version is fully tested.

use the older version of the plugin, and login using cookies. Should work on vsc insiders too if im not wrong. https://github.com/LeetCode-OpenSource/vscode-leetcode/releases/download/v0.16.2/shengchen.vscode-leetcode-0.16.2.vsix

CelianInfo commented 4 months ago

+1

huangyul commented 4 months ago

+1

Seabass2333 commented 3 months ago

+1

WizardCell commented 2 months ago

Same here