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

中国区登录问题 #232

Open
Jeffreyzzj opened this issue May 9, 2022 · 5 comments
Open

中国区登录问题 #232

Jeffreyzzj opened this issue May 9, 2022 · 5 comments

Comments

@Jeffreyzzj
Copy link

Jeffreyzzj commented May 9, 2022

image

Active Name Version Desc

✔ solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions.
✔ company 2017.12.18 Plugin to query by company for free user.
✔ cache default Plugin to provide local cache.
✔ retry default Plugin to retry last failed request if autologin.enable is on.
✔ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs.
✔ leetcode default Plugin to talk with leetcode APIs.
(node:7118) 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:7119) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:7120) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
login: (node:7121) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
pass: - Signing in leetcode-cn.com
[ERROR] invalid password?

中国区登录账户始终提示这个,但是密码没有问题,在浏览器可以使用

@PegasusWang
Copy link

PegasusWang commented May 11, 2022

https://github.com/skygragon/leetcode-cli-plugins

把 leetcode.cn 插件 js 代码里的 leetcode-cn.com 都改成 leetcode.cn 就可以了。抓取请求发现之前的域名重定向到了leetcode.cn。
如果你等不及 leetcode.cn 插件PR合并 skygragon/leetcode-cli-plugins#49 ,可以先尝试修改:

/usr/local/lib/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.cn.js 批量替换域名为 leetcode.cn,亲测有效

  // config.sys.urls.login             = 'https://leetcode-cn.com/accounts/login/';
  config.sys.urls.login             = 'https://leetcode.cn/accounts/login/';

@edte
Copy link

edte commented Jul 12, 2022

大佬还在使用这个软件吗,原作者没有维护了就很难受,发现了挺多 bug,比如:

  1. expected 的 answer 不显示,一直为空串
    image

  2. stdout 的 \n 没有被渲染
    image

@Li-4
Copy link

Li-4 commented Sep 15, 2022

我也遇到这个问题,在arch上使用sudo npm install安装.在第一次启动时候会自动下载插件但是sudo npm,会导致没有写入权限.使用sudo leetcode,来自动下载插件或者克隆下来cp

@mbledkowski
Copy link

Hi, developer of this extension has not been very active on GitHub since 2019. I created repository where I keep maintaining similar extension - https://github.com/mbledkowski/neuleetcode.vim. Please submit your issues there.

@hiberabyss
Copy link

大佬还在使用这个软件吗,原作者没有维护了就很难受,发现了挺多 bug,比如:

  1. expected 的 answer 不显示,一直为空串
    image
  2. stdout 的 \n 没有被渲染
    image

我 fork 的版本修复了不输出 expect 的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants