Ale: Location list won't auto close even if there's no error.

Created on 1 Sep 2017  Â·  14Comments  Â·  Source: dense-analysis/ale

Here's an error...

image

Then when i fix it...

image

HERE'S MY QUESTION: WHY THE LIST NOT CLOSE ?

However, If I type :w again, the list window disappear.

Here's my config

image

bug

Most helpful comment

I have fixed this now.

All 14 comments

It is supposed to close in that circumstance. I probably broke it when I fixed the E925 bug.

I have fixed this now.

I could explain how, but I'm lazy.

Facing a similar issue with Neovim :(
As a workaround using quickfix instead of loclist

let g:ale_set_loclist = 0
let g:ale_set_quickfix = 1

Will revert workaround once the issue is fixed, thank you :)

Are you using the latest commit from master?

Yap, its the latest code

~/.config/nvim/plugged/ale $ git log                                                                                                   
commit a790077136ac3830e959a8215419dfb09340cea4
Author: w0rp <[email protected]>
Date:   Sun Oct 15 10:57:21 2017 +0100

    Merge pull request #998 from svanharmelen/b-fix-734

    Fix #734 - Use the correct buffer for the filetype blacklist and such

Neovim version

$ nvim --version                                                                                            
NVIM v0.2.1-dev
Build type: RelWithDebInfo
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/build/config -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/src -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/.deps/usr/include -I/usr/include -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/build/src/nvim/auto -I/build/neovim-1t47s2/neovim-0.2.0ubuntu1+git201710151632+3680+26~ubuntu16.04.1/build/include
Compiled by buildd@lcy01-14

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Okay, I'll have a look when I get the time.

I can't repeat this bug any more.

Having the same issue, the list doesn't automatically close when there are no more errors. And @pratz's workaround doesn't work for me either.

 â–² ~ nvim --version
NVIM v0.3.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20190113-94620-d8vv4n/neovim-0.3.4/build/config -I/tmp/neovim-20190113-94620-d8vv4n/neovim-0.3.4/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/tmp/neovim-20190113-94620-d8vv4n/neovim-0.3.4/build/src/nvim/auto -I/tmp/neovim-20190113-94620-d8vv4n/neovim-0.3.4/build/include
Compiled by [email protected]

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

@sheharyarn confirming the issue, same nvim 0.3.4

If you have some steps for repeating the bug, open an issue, or try and fix it with a pull request.

Tried this just yesterday, all seems to be fine... my current config:

Plug 'w0rp/ale'
  " linters list
  " run only specified linters for specified files
  let g:ale_linters_explicit = 1
  let g:ale_linters = {
    \ 'javascript': ['prettier', 'eslint']
    \ }
  let g:ale_lint_on_text_changed = 'always'
  " launch linter on save buffer
  let g:ale_lint_on_save = 1
  " launch linter on enter buffer
  let g:ale_lint_on_enter = 1
  " setup fixers to fix trailing lines and whitespaces
  let g:ale_fixers = {
    \ '*': ['remove_trailing_lines', 'trim_whitespace']
    \ }
  " auto apply fix on save buffer
  let g:ale_fix_on_save = 1
  " disable showing ale messages in airline status bar
  let g:airline#extensions#ale#enabled = 0
  " open list with errors on buffer save
  let g:ale_open_list = 'on_save'
  " set list with errors size
  let g:ale_list_window_size = 5
  " enable hightlights for errors
  let g:ale_set_highlights = 1

I have no idea what was that, but maybe it was my mistake.

Was this page helpful?
0 / 5 - 0 ratings