LeetCode-OpenSource/vscode-leetcode

Unable to login with the latest v0.18.2

ocavue opened this issue · 14 comments

🐛 Bug Report

A new login way was added in #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)
�[31merror�[39m:   DEBUG Invalid input for login

Expected behavior

I can login with this extension.

Extension Output

See my description above.

Your Environment

  • os: macOS
  • extension settings: N/A
  • nodejs version: v18.20.2
  • vscode version: v1.89.1
  • extension version: v0.18.2

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)

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.

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

Same here