Comments (12)
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.
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.
Could you describe how you triggered this error?
from leetcode.vim.
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.
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.
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.
I'll look into it
from leetcode.vim.
@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.
@ianding1 I try it again, thanks.
from leetcode.vim.
@ianding1 Yes, after create ~/.local/share/python_keyring/keyringrc.cfg, The problem is solved.
from leetcode.vim.
same issue
from leetcode.vim.
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)
- Command to restore previous session? HOT 1
- A advice about default value
- Is there any way that I can save my solution at local disk?
- LeetcodeList Error: Eval did not return a valid python object
- Top Interview Questions Problemset Work Around
- LeetCodeTest only opens a new window with #Test Input HOT 2
- LeetCodeSubmit returning 'run code' / 'test' output instead of submission output
- always says browser_cookie3 not install, even though brower_cookie3 is installed HOT 2
- Error detected while processing function leetcode#SignIn[1]..<SNR>123_LoadSessionCookie:
- g:leetcode_browser is disabled HOT 5
- LeetcodeTest always return Wrong Answer HOT 3
- Leetcode Signin Problem HOT 4
- New repository (fork) HOT 2
- add brave as a browser HOT 4
- Multiple firefox installation HOT 4
- Error when loading problems already (or partially) solved on leetcode.com HOT 3
- can i sign in with brave browser? HOT 1
- cant test my code, but can submit it. HOT 1
- Doesn't work with Windows WSL HOT 1
- Cannot signin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leetcode.vim.