Giter Club home page Giter Club logo

Comments (10)

adam0z avatar adam0z commented on September 23, 2024 2

Thanks. Flake8 works with my settings:

{
        "python.jediEnabled": true,
        "python.linting.pylintEnabled": false,
        "python.linting.flake8Enabled": true
}

How to change python interpreter version to Python2?

I see red ">>" on linting PEP8 errors. How to show the error message?
There is no message if a cursor in at the bad line.

from coc-python.

jsatk avatar jsatk commented on September 23, 2024 1

@chemzqm I took am having a similar issue. Every time I load a python file it asks me to install pylint. I tell it to use flake8 instead. It always asks me a second time. I select flake 8 again and it's done. If I close vim and re-open file the same thing happens.

When I run :CocCommand python.setInterpreter it's pointed at the correct virtualenv version of Python 2.

from coc-python.

jsatk avatar jsatk commented on September 23, 2024 1

I am on the latest. I actually just set up a brand new computer today and re-ran into this issue which made me revisit this thread. I finally pressed 3 to ignore it (like I did before). But seems less than ideal.

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

"python.setInterpreter" and "python.setLinter" are not valid configuration, please read Readme and install coc-json.

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

What do you mean by always show the linter results?

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

How to change python interpreter version to Python2?

Use command :CocCommand python.setInterpreter

There is no message if a cursor in at the bad line.

It's checked by error range, use "diagnostic.checkCurrentLine": true to check current line.

from coc-python.

jsatk avatar jsatk commented on September 23, 2024

Here's a screenshot of what I see in Vim 8.
Screen Shot 2019-06-07 at 6 52 44 PM

from coc-python.

jsatk avatar jsatk commented on September 23, 2024

@chemzqm can we re-open this?

from coc-python.

jsatk avatar jsatk commented on September 23, 2024

This is still a tedious issue.

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

Can't reproduce your problem.
Try upgrade your coc.nvim, or create a .vim/coc-settings.json in your project root.

from coc-python.

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.