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

Empty quickfix list with :Dispatch! and Make! #340

Open
heroin-moose opened this issue May 12, 2023 · 0 comments
Open

Empty quickfix list with :Dispatch! and Make! #340

heroin-moose opened this issue May 12, 2023 · 0 comments

Comments

@heroin-moose
Copy link

For some reason executing :Dispatch {cmd} {args} fills the quickfix list, while running :Dispatch! {cmd} {args} does not. Same goes for Make and Make!. Does not look like a regression, because the older plugin versions from 2021 behave exactly the same.

ArchLinux, neovim-git from AUR
NVIM v0.10.0-dev-319+g5825d2f6ca
vim-dispatch 6cc2691

Relevant config options:

let dispatch_no_maps = 1
let dispatch_no_tmux_make = 1

Quick and dirty debugging shows that s:output in job.vim behaves differently for Make and Make!.

Logs:

  echom "dispatch(...):"
  echom dispatch#request(get(getqflist({'title': 1}), 'title', ''))
  echom "request:"
  echom request
  crash

  if dispatch#request(get(getqflist({'title': 1}), 'title', '')) is# request && len(waiting.output) > 1

Output:

Make:

dispatch(...):
{'pid': 65487, 'background': 0, 'action': 'make', 'job': 3, 'program': 'make', 'command': 'make', 'file': '/tmp/nvim.consus/jC44Ye/0', 'id': 1, 'handler': 'job', 'mods': '', 'directory': '/tmp/example', 'format': '%*
[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn f
ile included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: E
ntering directory %*[`'']%f'',%X%*\a[%*\d]: Leaving directory %*[`'']%f'',%D%*\a: Entering directory %*[`'']%f'',%X%*\a: Leaving directory %*[`'']%f'',%DMaking %*\a in %f,%f|%l| %m', 'expanded': 'make', 'title': 'mak
e', 'args': ''}
request:
{'pid': 65487, 'background': 0, 'action': 'make', 'job': 3, 'program': 'make', 'command': 'make', 'file': '/tmp/nvim.consus/jC44Ye/0', 'id': 1, 'handler': 'job', 'mods': '', 'directory': '/tmp/example', 'format': '%*
[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn f
ile included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: E
ntering directory %*[`'']%f'',%X%*\a[%*\d]: Leaving directory %*[`'']%f'',%D%*\a: Entering directory %*[`'']%f'',%X%*\a: Leaving directory %*[`'']%f'',%DMaking %*\a in %f,%f|%l| %m', 'expanded': 'make', 'title': 'mak
e', 'args': ''}

Make!:

dispatch(...):
{}
request:
{'pid': 65672, 'background': 1, 'action': 'make', 'job': 3, 'program': 'make', 'command': 'make', 'file': '/tmp/nvim.consus/4Tam7x/0', 'id': 1, 'handler': 'job', 'mods': '', 'directory': '/tmp/example', 'format': '%*
[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn f
ile included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: E
ntering directory %*[`'']%f'',%X%*\a[%*\d]: Leaving directory %*[`'']%f'',%D%*\a: Entering directory %*[`'']%f'',%X%*\a: Leaving directory %*[`'']%f'',%DMaking %*\a in %f,%f|%l| %m', 'expanded': 'make', 'title': 'mak
e', 'args': ''}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant