8000 Prevent multiple issues related to KeyError: 'pylint' · Issue #1030 · python-mode/python-mode · GitHub
[go: up one dir, main page]

Skip to content
8000

Prevent multiple issues related to KeyError: 'pylint' #1030

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

Closed
HaleTom opened this issue Jun 7, 2019 · 4 comments
Closed

Prevent multiple issues related to KeyError: 'pylint' #1030

HaleTom opened this issue Jun 7, 2019 · 4 comments

Comments

@HaleTom
Copy link
HaleTom commented Jun 7, 2019

Issues related to KeyError: 'pylint' are quite common: #774 #775 #783 #863 #864 #902

Here's the general gist:

Error detected while processing function pymode#lint#check[11]..provider#python#Call:                                                                                                                              
line   18:                                                                                                                                                                                                         
Traceback (most recent call last):                                                                                                                                                                                 
  File "<string>", line 1, in <module>                                                                                                                                                                             
  File "/home/ravi/.local/share/vim/bundle/python-mode/pymode/lint.py", line 46, in code_check                                                                                                                     
    options.linters_params['pylint']['clear_cache'] = True                                                                                                                                                         
Error detected while processing function pymode#lint#check[11]..provider#python#Call:                                                                                                                              
line   18:                                                                                                                                                                                                         
KeyError: 'pylint'

It took me ages to to work out the solution

For the googlers:

Don't use master, use develop:
NeoBundle 'python-mode/python-mode', 'develop', { 'on_ft': 'python' }

It took me a while to realise that I then had two plugin directories:

  • bundle/python-mode
  • bundle/python-mode_develop

In the 2nd directory, type:

git submodule update --init --recursive

Would you please either:

  • Update the 1-year-old master branch (or describe what is it's purpose)
  • Update README.md to require develop branch with appropriate plugin manager instructions
    • Including possible other directory to type git command
@diraol
Copy link
Contributor
diraol commented Jun 7, 2019

@HaleTom
the default branch from this repo is the develop branch. Which means that if you clone this repo it will clone the develop branch and not the master one.

Also, in the README.md you can find instructions about how to install it using several plugin managers - even windows specific instructions.

https://github.com/python-mode/python-mode#how-to-install

We've migrated to the develop branch a long time ago (~2 years). I can't see much reasons to go back to the master branch since our development rate is very low ATM. That would just cause issues for the users that are already using python-mode and have installed it for the past two years, IMHO.

8000

@diraol
Copy link
Contributor
diraol commented Jun 7, 2019

Btw, if there is any plugin manager instruction missing, Pull Requests are welcome! :)

@HaleTom
Copy link
Author
HaleTom commented Jun 8, 2019

It must have been a glitch in Neobundle... perhaps I killed it because the submodule clone was taking a long time, and it didn't recover properly.

Here's the config which I confirm working for NeoBundle:

" python-mode: PyLint, Rope, Pydoc, breakpoints from box.
" https://github.com/python-mode/python-mode
NeoBundleLazy 'python-mode/python-mode', { 'on_ft': 'python' }

@diraol diraol closed this as completed Jun 30, 2019
@diraol diraol reopened this Jun 30, 2019
@diraol diraol closed this as completed in ac11db2 Jun 30, 2019
@diraol
Copy link
Contributor
diraol commented Jun 30, 2019

Thanks @HaleTom !

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

2 participants
0