ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
311 stars 43 forks source link

g:leetcode_browser is disabled #65

Open DavidHammer123 opened 3 years ago

DavidHammer123 commented 3 years ago

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

Mirandadevs commented 3 years ago

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 commented 3 years ago

It works! Thanks!

DavidHammer123 commented 3 years ago

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 commented 2 years ago

after set leetcode_browser and exe LeetCodeList,i get this

image

how could i solve this problem?

aap01 commented 1 year ago

@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