GithubHelp home page GithubHelp logo

Comments (12)

yanbodiaoweng avatar yanbodiaoweng commented on August 11, 2024 2

in nvim of macos. After install the plungin successfully, I only call :LeetCodeList successfully once. And then there is always the same error
Error detected while processing function leetcode#ListProblems: line 30: E121: Undefined variable: s:topics_and_companies E15: Invalid expression: s:topics_and_companies['topics']

from leetcode.vim.

ianding1 avatar ianding1 commented on August 11, 2024 1

Hi zhoupro,

I repeated on Ubuntu 18.04 and found an issue in python-keyring. I'm not sure if it's the very bug that you met:

The bug occurred when I tried to sign in. It printed some errors about python-keyring. Part of it is:

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

The way to fix it is to create a file ~/.local/share/python_keyring/keyringrc.cfg with the content:

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

The solution was proposed in this thread.

I can use the plugin normally after creating the file.

Please tell me if you still have issues. If so, any additional information such as screenshots or error messages would be very helpful.

from leetcode.vim.

ianding1 avatar ianding1 commented on August 11, 2024

Could you describe how you triggered this error?

from leetcode.vim.

vochicong avatar vochicong commented on August 11, 2024

Yes. In neovim, after successfully installing the plugin, I failed to :LeetCodeList with the error above. The same error happened even after a manual :LeetCodeSignIn beforehand.

from leetcode.vim.

ianding1 avatar ianding1 commented on August 11, 2024

Hi, I tried on my own laptop and didn't find this problem. You could try to update the plugin to the newest version and see if it works.

from leetcode.vim.

zhoupro avatar zhoupro commented on August 11, 2024

I also use this plugin with neovim which version is 0.4.2. I know it has login problem. And another problem is when I submit problem and the answer is wrong, it will not function well. @ianding1 Do you use nvim or vim?

from leetcode.vim.

ianding1 avatar ianding1 commented on August 11, 2024

I'll look into it

from leetcode.vim.

zhoupro avatar zhoupro commented on August 11, 2024

@ianding1 I also had start to learn writing vim plugin several days ago. This is a very useful plugin,and I also want to add some feature, such as top like list. Thanks for your hardworking.

from leetcode.vim.

zhoupro avatar zhoupro commented on August 11, 2024

@ianding1 I try it again, thanks.

from leetcode.vim.

zhoupro avatar zhoupro commented on August 11, 2024

@ianding1 Yes, after create ~/.local/share/python_keyring/keyringrc.cfg, The problem is solved.

from leetcode.vim.

yanbodiaoweng avatar yanbodiaoweng commented on August 11, 2024

same issue

from leetcode.vim.

ywpkwon avatar ywpkwon commented on August 11, 2024

In Ubuntu 18.04 and neovim v0.4.2 , I'm having the same error (after sign in).
For me, the problem is, if I use the "~/.local/share/python_keyring/keyringrc.cfg" solution, I get an error as below and I can't even log in: browser_cookie3 not installed: pip3 install browser_cookie3 --user

I think this is because:

#### without the "keyringrc.cfg" solution ####
$ keyring --list-backends                         
keyring.backends.fail.Keyring (priority: 0)
keyring.backends.SecretService.Keyring (priority: 5)
keyring.backends.chainer.ChainerBackend (priority: 10)
keyrings.alt.file.EncryptedKeyring (priority: 0.6)
keyrings.alt.file.PlaintextKeyring (priority: 0.5)

#### with the "keyringrc.cfg" solution ####
$ keyring --list-backends   
....
ModuleNotFoundError: No module named 'keyring.backends.Gnome'

For information, keyring

$ pip3 list | grep keyring           
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
keyring (21.1.0)
keyrings.alt (3.4.0)

from leetcode.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.