- Notifications
You must be signed in to change notification settings - Fork670
Fix the unable to login problem each time VSCode starts#212
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for your contribution.
The commit you made has already been covered in a review in another PR:#193 (comment), in which I brought up with a solution but did not get shipped in the latest version.
However, although I know how to suppress the problem, I didn't figure out how the problem([ERROR] Plugin not found!
) comes up, and the same problem has been reported by many users in#211.
Your analysis essentially solves my doubt. I then test executingleetcode plugin -d leetcode.cn
in a new machine, and the errorPlugin not found
was popped out as expected.
I can make sure your commit will solve both your problem and one that's discussed above. Good work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@houtianze Great work!
Uh oh!
There was an error while loading.Please reload this page.
First, thanks for this awesome plugin 👍
The change is just one line.
The Problem
~/.lc
that the user secrets have been previously saved.The Cause
leetcode.cn
leetcode-cli plugin is not installed by default with this extension, and if the user has never installed it manually (which most of the time is the case), online 62 inextension.ts
: this callawait leetCodeExecutor.switchEndpoint(plugin.getLeetCodeEndpoint());
will throw an exception (because it will eventually try to disable theleetcode.cn
plugin, which has not been installed) and the next line which is to load the leetcode user information won't get executed (or error out? I didn't debug further).The Fix
leetcode.cn
leetcode-cli plugin by default.