Skip to content

Both location list and quickfix list open #5246

@gmzacharydovel

Description

@gmzacharydovel

Result from CocInfo

Unfortunately, I uninstalled Coc -> Ale. i can reinstall if it helps.

Describe the bug

Whe using Coc with a typescript/eslint project, it opens the output from TSC in both the quickfix and location list window. I'm not really sure why, and I don't see anything in the documentation for why this would happen.

I'm sorry for the format of the bug report, but is this a bug? Is there a way to fix this?

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't
reproduce it

I'm currently using autocmd BufWritePost * call timer_start(1000, { tid -> execute('execute "CocDiagnostics" | execute "botright lwindow" | execute "wincmd p"') }) from #2734 to automatically open the diagnostics.

Below is my current vim (I removed the Coc README recommendation stuff from the readme when I moved back to Ale)

set hlsearch


set autoindent expandtab tabstop=2 shiftwidth=2
set nu

syntax on


" https://raw.githubusercontent.com/neoclide/coc.nvim/master/doc/coc-example-config.vim

" May need for Vim (not Neovim) since coc.nvim calculates byte offset by count
" utf-8 byte sequence
set encoding=utf-8


:set viminfo='10000,h

let b:ale_fixers = ['prettier', 'eslint']
let b:ale_fixers = {'typescript': ['prettier', 'eslint']}
let b:ale_fixers = {'typescriptreact': ['prettier', 'eslint']}
let g:ale_completion_autoimport = 1
let g:ale_virtualtext_cursor = 'disabled'
let g:ale_open_list = 1
let g:ale_completion_enabled = 1

let g:ale_fixers = {
\   '*': ['remove_trailing_lines', 'trim_whitespace'],
\   'javascript': ['prettier', 'eslint'],
\   'javascriptreact': ['prettier', 'eslint'],
\   'typescript': ['prettier', 'eslint'],
\   'typescriptreact': ['prettier', 'eslint'],
\}  
  • Start (neo)vim with command: vim -u mini.vim

  • Operate vim.

Screenshots (optional)

Screenshot 2025-01-12 at 9 20 43

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions