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

g:leetcode_browser is disabled #65

Open
DavidHammer123 opened this issue Mar 2, 2021 · 5 comments
Open

g:leetcode_browser is disabled #65

DavidHammer123 opened this issue Mar 2, 2021 · 5 comments

Comments

@DavidHammer123
Copy link

Hello, my vim shows "g:leetcode browser is disabled", how can I fix it?

@Mirandadevs
Copy link

Hello,
use this vim command to enable the option temporarily after opening vim:
let g:leetcode_browser='chrome'
or
let g:leetcode_browser='firefox'

@DavidHammer123
Copy link
Author

It works! Thanks!

@DavidHammer123
Copy link
Author

btw, what's the command to open a specific problem on leetcode? When i use ':LeetCodeBrowse', it shows all the problems, how can i enter the problems?
vim

@edte
Copy link

edte commented Jul 8, 2022

after set leetcode_browser and exe LeetCodeList,i get this

image

how could i solve this problem?

@aap01
Copy link

aap01 commented Apr 8, 2023

@edte
Did you try this FAQ section?

FAQ

I use Ubuntu and get errors when signing in. How can I fix it?

Ubuntu users might see the error message below when signing in.

    raise InitError("Failed to unlock the collection!")
keyring.errors.InitError: Failed to unlock the collection!

It's caused by the misconfiguration of python-keyring. One way to fix it is to create a file ~/.local/share/python_keyring/keyringrc.cfg with the following content:

[backend]
default-keyring=keyring.backends.Gnome.Keyring

Why can't I test the problem/submit the problem/list the problems?

Once you sign in on your browser in LeetCode website, the LeetCode session in
Vim get expired immediatelly. Then you need to sign in again in Vim before
doing other things.
(No longer having this problem)

Why can't I test and submit solutions?

According to issue #5, if the email address is not active, then you can
only login and download problems, but cannot test and submit any code.

I got some errors like "ModuleNotFoundError: No module named 'keyring.util.escape'"

This solution worked for me:

pip3 install --upgrade keyrings.alt

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

4 participants