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

Skip to content

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

@HaleTom

Description

@HaleTom

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

Metadata

Metadata

Assignees

No one assigned

    Lab 37C8 els

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0