emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 139 forks source link

Flycheck errors are vanished after saving a buffer in Python #418

Open ashkan-leo opened 4 years ago

ashkan-leo commented 4 years ago

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 commented 4 years ago

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

why-el commented 3 years ago

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