-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Freezes on PlugInstall #318
Comments
@Ftzeng Hello. Strange. The python installer definitely should be working fine, no changes in ages and build is working. Also, I use it daily without ruby support. You are correct in your assumption, if your vim has
To clarify, you mean the first time you do the command on a system with nothing in Please try these commands to test the python interfaces, report if there are errors. Paste me the output of version in a code block.
Also, please provide me with the smallest subset of your vimrc that reproduces this problem. |
Yes, after that it freezes.
The output of
|
@Ftzeng Ok, probably related to fact you built with dynamic and the two python versions. I'd like to try something on a hunch, find the first block below in your function! s:update_python()
let py_exe = has('python3') ? 'python3' : 'python'
execute py_exe "<< EOF" function! s:update_python()
let py_exe = has('python') ? 'python' : 'python3'
execute py_exe "<< EOF" Unrelated note, how come your patch level isn't displayed? |
@Ftzeng Also, I've tried to reproduce but I can't. I built vim with these configure flags: |
@starcraftman Changing the line you suggested didn't help unfortunately. The problem still comes up even if the
|
@Ftzeng Interesting, something weird going on. I can reproduce with your config. I also notice that for some reason Edit: Am making progress, appears to be some weird behaviour regarding threads only when using dynamic python. May have to add dynamic builds to travis. |
@Ftzeng Good news, I believe I've resolved the issue. Had to do with code I was executing at the end of the threads. If you don't mind, please try my branch's version of vim-plug, I'd like confirmation the issue is resolved. I am doing some additional testing/inspection of the python code in the interim. curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/starcraftman/vim-plug/fix_freeze/plug.vim |
@starcraftman Works like a charm now :) Thank you! |
I can confirm as well. Works flawlessly, even without ruby installed. Thank you very much :) |
@Ftzeng @nicolaiskogheim Happy to be of help, happy vimming. |
Fix #318: Freezes on PlugInstall
vim freezes when I do
PlugInstall
. Strangely, it does not freeze when I run it from a fresh install.I set
g:plug_threads = 1
and that has resolved it. Is it because I have vim compiled without ruby? (It is compiled with python and python3). I was under the impression from the documentation that ruby isn't required and that python multithreading would be used if it wasn't available?This is on Ubuntu 14.04 in tmux.
The text was updated successfully, but these errors were encountered: