neomake / neomake

Asynchronous linting and make framework for Neovim/Vim
MIT License
2.66k stars 368 forks source link

Neomake shows error info in the status bar of Neovim #2508

Closed JDeepD closed 3 years ago

JDeepD commented 3 years ago

Expected behavior : Show error only in the place where the syntax error is

Steps to reproduce :

It happened with me when I made a syntax error and and didn't correct it. For a split second the error was shown in the vim status bar every time I clicked the space bar or backspace.

Terminal : Alacritty Shell : zsh vim : Neovim v0.4.4

Peek 2020-10-29 00-27

I dont know if its a bug or a deliberate thing, but I dont want it there on the status bar every time I click space. So if its a deliberate thing , how to disable it? Edit : It only happens when the window is minimised

Output from :NeomakeInfo

Neomake debug information

Async support: 1 Current filetype: python Windows: 0 [shell, shellcmdflag, shellslash]: ['/usr/bin/zsh', '-c', 0] makeprg=make

Enabled makers

For the current filetype ("python", used with :Neomake):

For the project (used with :Neomake!):

Default maker settings:

Settings
New-style (dict, overrides old-style)
g:neomake: {
  'automake': {
    'ignore_filetypes': [
      'startify',
    ],
    'events': {
      'TextChangedI': {},
      'FileType': {},
      'FileChangedShellPost': {},
      'InsertLeave': {},
      'BufWritePost': {
        'delay': 0,
      },
      'BufWinEnter': {},
      'TextChanged': {},
    },
  },
  'automake_delay': 500,
}
b:neomake: unset
Old-style
g:neomake_place_signs = 1

:version

NVIM v0.4.4
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/local/clang-7.0.0/bin/clang -O2 -g -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-d8a0d531-236d-4d4c-9703-9d6e27bee65f

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim"

Run :checkhealth for more info

:messages

blueyed commented 3 years ago

This comes via g:neomake_echo_current_error (set it to 0 to disable it). However, it should only display it (again) if it was changed / is new - which likely happens because of you linting on TextChangedI (which I would not really recommend for performance reasons). Code ref: https://github.com/neomake/neomake/blob/18438037a1cd183509f27dd54723ef24cc7dfc80/autoload/neomake.vim#L2490-L2511

Closing as answered.