lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

Flycheck errors are vanished after saving a buffer in Python

Open ashkan-leo opened this issue 4 years ago • 2 comments

I am using doom Emacs configuration and Microsoft python language server. When I open a Python file that contains some linting errors, flycheck correctly marks the errors/warnings. Then, I randomly change the file and save it. flycheck stops highlighting all the errors and warnings. When I run flycheck-compile I see all the errors in a separate buffer. Also flycheck-verify-setup says everything is okay. Here is the output:


First checker to run:

  lsp (explicitly selected)
    - may enable: yes
    - predicate:  t

Checkers that could run if selected:

  python-flake8  select
    - may enable:         yes
    - executable:         Found at /Users/ashkanaleali/w/pred/.direnv/python-venv-3.7.3/bin/flake8
    - configuration file: Not found
    - next checkers:      python-pylint, python-mypy

  python-pylint  select
    - may enable:         yes
    - executable:         Found at /Users/ashkanaleali/w/pred/.direnv/python-venv-3.7.3/bin/pylint
    - configuration file: Not found
    - next checkers:      python-mypy

  python-pycompile  select
    - may enable:    yes
    - executable:    Found at /Users/ashkanaleali/w/pred/.direnv/python-venv-3.7.3/bin/python3
    - next checkers: python-mypy

  python-mypy  select
    - may enable:         yes
    - predicate:          t
    - executable:         Found at /Users/ashkanaleali/w/pred/.direnv/python-venv-3.7.3/bin/mypy
    - configuration file: Not found

Flycheck Mode is enabled. Use SPC u C-c ! x to enable disabled checkers.

--------------------

Flycheck version: 32snapshot
Emacs version:    26.3
System:           x86_64-apple-darwin19.0.0
Window system:    mac

Also, flycheck-buffer doesn't seem to have any effect.

I also filed a bug with flycheck: https://github.com/flycheck/flycheck/issues/1688

ashkan-leo avatar Mar 05 '20 21:03 ashkan-leo

I tried with pyls and am getting the same behavior. Flycheck errors/warnings are vanished after a random modification to the buffer.

ashkan-leo avatar Mar 06 '20 00:03 ashkan-leo

Can confirm this bug on my end as well, this time with Go.

why-el avatar Oct 11 '20 02:10 why-el