Skip to content

Failed to switch endpoint. Please open the output channel for details. #211

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

Closed
tjy-cool opened this issue Mar 15, 2019 · 16 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@tjy-cool
Copy link

My pc is mac 10.13.6, node.js version: v11.7.0
And I want change the the end endpoint for Chinese by click the icon that like earth, but vscode pop up report error: Failed to switch endpoint. Please open the output channel for details.
and the command line shows: [ERROR] Plugin not found!
so I can't login my Chinese account,
and I need help.

@sandove
Copy link

sandove commented Mar 15, 2019

Exactly the same problem...Need help...
win10, node.js 10.15.3

@fgh1999
Copy link

fgh1999 commented Mar 15, 2019

+1

1 similar comment
@Mudoznor
Copy link

+1

@Vigilans
Copy link
Contributor

This bug has already been covered by the review discussion here:
#193 (comment)

The bugfix didn't get shipped in current version, and will be solved in another PR.

@Guanyan1996
Copy link

+1

@jdneo jdneo added the bug Something isn't working label Mar 16, 2019
@jdneo jdneo added this to the 0.13.1 milestone Mar 16, 2019
@jdneo
Copy link
Member

jdneo commented Mar 16, 2019

@ALL Are you guys all see the error messages as: [ERROR] Plugin not found?

As a workaround, could you please try to remove $HOME/.lc and try it again and let me if this could help?

@tjy-cool
Copy link
Author

I remove the dir $HOME/.lc with the command: rm -rf ~/.lc
but it doesn't work, when I open vscode click the icon Leetcode can see the same error messages
: [ERROR] Plugin not found?
and change the endpoint can also the error message.

@tjy-cool
Copy link
Author

I use tree command in the dir ~/.lc, it shows :
├── leetcode
│   └── cache
└── plugins.json

and I use command cat plugins.json shows:
{"solution.discuss":true,"company":true,"cache":true,"retry":true,"leetcode":true}

I think it useful message for you to solve the bug.

@Vigilans
Copy link
Contributor

Vigilans commented Mar 16, 2019

@tjy-cool The proper workaround is:

  1. Find your leetcode-cli binary path, or execute npm install leetcode-cli -g and use leetcode command.
  2. Execute <your-leetcode-bin> plugin -i leetcode.cn.

Then the leetcode.cn plugin may be found thereafter.

@tjy-cool
Copy link
Author

@Vigilans thanks
I have execute the command cd ~/ npm install leetcode-cli -g and leetcode by order
but the command leetcode shows warning first time:
[WARN] Installing missing plugins, might take a while ...
and the second time show nothing.

and I don't know how to follow the step 2

@Vigilans
Copy link
Contributor

Vigilans commented Mar 16, 2019

@tjy-cool

use leetcode command.

This is mentioned in contrast with

Find your leetcode-cli binary path

Because if you choose the Find your leetcode-cli binary path choice, <your-leetcode-bin> is node <your root of npm>/npm_modules/leetcode-cli/bin/leetcode,

where as after executing npm install leetcode-cli -g, <your-leetcode-bin> is leetcode.

So for now, you can just execute leetcode plugin -i leetcode.cn.

@marshallseu
Copy link

@Vigilans thanks a lot.

@fgh1999
Copy link

fgh1999 commented Mar 17, 2019

Already fixed. Thanks a lot. @Vigilans

@jdneo
Copy link
Member

jdneo commented Mar 17, 2019

I'm closing this issue for now since this issue should be fixed with #212.

We will release the fix recently in 0.13.1.

If you still have problems after using 0.13.1, please feel free to let us know.

@jdneo jdneo closed this as completed Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants