Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Both location list and quickfix list open #5246

Open
gmzacharydovel opened this issue Jan 16, 2025 · 2 comments
Open

Both location list and quickfix list open #5246

gmzacharydovel opened this issue Jan 16, 2025 · 2 comments

Comments

@gmzacharydovel
Copy link

gmzacharydovel commented Jan 16, 2025

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
@fannheyward
Copy link
Member

Can't reproduce, what's the vimrc used of the screenshot?

Please try minimal vimrc, only coc.nvim for this usage.

@gmzacharydovel
Copy link
Author

I've give it another go. Maybe there is something else. This is a problem on a new machine that I am setting up from scratch so there isn't much else there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants