neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Microsoft Python Language Server doesn't show errors without restart #240

Open chinwobble opened 4 years ago

chinwobble commented 4 years ago

When I have "python.jediEnabled": false and I try to open a python file there is no diagnostics.

After I run :CocRestart then the diagnostics start showing up. With Microsoft LSP it seems to not respect my pylintrc config.

Before Restart the CocInfo looks like this

## versions

vim version: VIM - Vi IMproved 8.2 8020000
node version: v10.17.0
coc.nvim version: 0.0.78-551353208d
coc.nvim directory: %userprofile%\dotfiles\.vim\pack\git\start\coc
term: undefined
platform: win32

## Output channel: Python

Starting Microsoft Python language server.

Steps to reproduce

  1. Configure microsoft LSP on windows

  2. Create a new folder with the following structure:

    /coc-python-test
    - pylintrc
    - test-notebook.py
  3. generate a pylintrc file and populate it with this

    [VARIABLES]
    # List of additional names supposed to be defined in builtins. Remember that
    # you should avoid defining new builtins when possible.
    additional-builtins=dbutils,spark,display,displayHTML
  4. populate test-notebook.py

    
    spark.catalog.refreshTable('db.mytable')

df = ( spark.badindent )



Diagnostics don't show up automatically and spark is flagged as a warning when it should be ignored.
Seems to work correctly with Jedi