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

webpack hangs after completing via vim-dispatch #120

Open
jdelStrother opened this issue Apr 8, 2015 · 5 comments
Open

webpack hangs after completing via vim-dispatch #120

jdelStrother opened this issue Apr 8, 2015 · 5 comments

Comments

@jdelStrother
Copy link

My rake-based tests invoke webpack (a node-based javascript compiler) as a child process. For some reason, when running my tests using Dispatch, the webpack process never exits.

This occurs even if I just invoke the webpack command directly (:Dispatch cd webpack && $(npm bin)/webpack). vim-dispatch splits my tmux pane, runs the command, I see the compiler output, but then the node binary never exits. If I run using :! cd webpack && $(npm bin)/webpack, it runs & exits normally.

vim-dispatch works fine for me with all other commands I've tried. Do you have any suggestions on narrowing this problem down?

@tpope
Copy link
Owner

tpope commented Apr 8, 2015

Try with something other than tmux.

@jdelStrother
Copy link
Author

Hm. It works correctly when invoking from MacVim => opening a tab in iTerm.

@tpope
Copy link
Owner

tpope commented Apr 13, 2015

The tmux handler is special in that it captures output directly from the pane rather than piping to tee. If webpack behaves specially in that case, that could cause the discrepancy. You can test by changing 'shellpipe' to disable that behavior. Try adding a space with :set shellpipe+=\.

@jdelStrother
Copy link
Author

I think github might have stripped whitespace there - so try just appending a single space to shellpipe, so it becomes "2>&1| tee " ? It doesn't seem to help

@jdelStrother
Copy link
Author

I did manage to reproduce the problem when running tmux split-window -l 10 -d -P -t ':' '$(npm bin)/webpack' in my shell, so I guess this is absolutely nothing to do with vim-dispatch. I'll go and pester the tmux/webpack guys for hints.

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

2 participants