vim-test
vim-test copied to clipboard
Dispatch output broken, requires clicking Enter twice

Is this the normal behavior? It's a bit ugly :/ If I use the default dispatcher, nothing shows up in the QuickFix.
NVIM v0.3.1
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-20180831-45030-1c6df1y/neovim-0.3.1/build/config -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/build/src/nvim/auto -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/build/include
Compiled by [email protected]
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.3.1/share/nvim"
Run :checkhealth for more info
What vim-dispatch strategy is being used (tmux, neovim terminal, ...)? vim-test's dispatch strategy doesn't do anything other than calling the :Dispatch command with the test command. Does the same behaviour happen when you use :Dispatch directly, e.g. :Dispatch jest -- % for the current file? If yes, that's something that you'll have to debug in vim-dispatch itself.
No, it works as expected when I use :Dispatch jest -- %:

Also another issue which I was getting was that sometimes my quickfix list would randomly get cleared. The bad interaction seems to be with the LanguageClient-neovim plugin. Maybe you could implement this workaround in vim-test: https://github.com/autozimu/LanguageClient-neovim/issues/583#issuecomment-418217703 ?
@olalonde Could you show me your vim-test configuration, and the Neovim version you're using? Ideally I should have all information I need to reproduce the issue. What does the LanguageClient-neovim plugin do?
Vim test config:
let g:test#strategy = 'dispatch'
let g:test#javascript#jest#options = '--reporters jest-vim-reporter'
Might need: https://github.com/olalonde/jest-quickfix-reporter
Neovim version:
NVIM v0.3.1
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-20180831-45030-1c6df1y/neovim-0.3.1/build/config -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/build/src/nvim/auto -I/tmp/neovim-20180831-45030-1c6df1y/neovim-0.3.1/build/include
Compiled by [email protected]
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.3.1/share/nvim"
Run :checkhealth for more info
LanguageClient-neovim provides language autocompletion among other things (https://langserver.org/).