leetcode.vim icon indicating copy to clipboard operation
leetcode.vim copied to clipboard

g:leetcode_browser is disabled

Open DavidHammer123 opened this issue 4 years ago • 5 comments

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

DavidHammer123 avatar Mar 02 '21 10:03 DavidHammer123

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

Mirandadevs avatar Mar 02 '21 14:03 Mirandadevs

It works! Thanks!

DavidHammer123 avatar Mar 03 '21 00:03 DavidHammer123

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

DavidHammer123 avatar Mar 03 '21 01:03 DavidHammer123

after set leetcode_browser and exe LeetCodeList,i get this

image

how could i solve this problem?

edte avatar Jul 08 '22 13:07 edte

@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

aap01 avatar Apr 08 '23 10:04 aap01