Giter Club home page Giter Club logo

Comments (7)

chemzqm avatar chemzqm commented on September 23, 2024

Make sure echo exists('*nvim_open_win') is 1.

from coc-python.

LarsMichelsen avatar LarsMichelsen commented on September 23, 2024

The call always returns 1.

May be interesting: The completion popups work all the time, only the linter messages are not shown. This does not seem to be a general popup window issue.

I also recognized that the "_" marker on the lines with the linter issues are not visible. Not true...

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

The diagnostics you have should comes from other plugin like ALE which enables all linters for you without any configuration.
Run :CocList diagnostics to get list of diagnostics from coc.

from coc-python.

LarsMichelsen avatar LarsMichelsen commented on September 23, 2024

:CocList diagnostics is showing the messages just fine. Only the popups break from time to time

This is my current coc-settings.json:

{
    // https://github.com/neoclide/coc.nvim/blob/master/data/schema.json<Paste>
    "suggest.enablePreview": true,
    "suggest.triggerAfterInsertEnter": true,
    //"suggest.echodocSupport": true,
    "signature.enable": true,

    "diagnostic.refreshOnInsertMode": true,
    "diagnostic.errorSign": "\uf05e",
    "diagnostic.infoSign": "\uf071",
    "coc.preferences.formatOnSaveFiletypes": ["python"],

    "python.pythonPath": "${workspaceFolder}/.venv/bin/python",
    "python.autoComplete.extraPaths": [
        "${workspaceFolder}/livestatus/api/python",
    ],
    "python.autoComplete.typeshedPaths": [],
    "python.venvFolders": [".venv"],
    "python.venvPath": "${workspaceFolder}",

    "python.analysis.disabled": ["undefined-variable"],
    "python.jediEnabled": false,

    "python.linting.pylintEnabled": true,
    "python.linting.pylintPath": "${workspaceFolder}/.venv/bin/pylint",
    "python.linting.pylintUseMinimalCheckers": false,

    "python.formatting.provider": "yapf",

    "python.linting.mypyEnabled": true,
    "python.linting.mypyPath": "${workspaceFolder}/tests/static/.venv/bin/mypy",
    "python.linting.mypyArgs": [
        "--ignore-missing-imports",
        "--follow-imports=silent",
        "--show-column-numbers",
        "--python-version 2.7",
    ],

    "python.linting.banditEnabled": true,
    "python.linting.banditPath": "${workspaceFolder}/.venv/bin/bandit",

    // Some optional debugging to get more information via ":CocCommand workspace.showOutput"
    "python.trace.server": "verbose",
}

from coc-python.

chemzqm avatar chemzqm commented on September 23, 2024

Only the popups break from time to time.

Could be caused by your other vim plugin, it should be shown after 500ms cursor moved to it.

from coc-python.

LarsMichelsen avatar LarsMichelsen commented on September 23, 2024

I've removed all vim plugins except coc but that did not change anything.

I noticed another thing: I can save a file without changes as often as I want and the popups still work.
But once I add a new line to the file the popups break. Removing a line from the file does not break it.

In the meantime I tried to solve this by using "diagnostic.messageTarget": "echo", but the messages also break in this mode.

Looks like the line matching breaks somehow.

...

Ok, one step closer: I had "diagnostic.refreshOnInsertMode": true. Once I disable it, the popups keep working.

from coc-python.

LarsMichelsen avatar LarsMichelsen commented on September 23, 2024

I guess this should be reopened and considered as bug. Or should I open a new one for coc?

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.