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

it hangs when misspel github package name #42

Closed
bfredl opened this issue Sep 5, 2020 · 10 comments
Closed

it hangs when misspel github package name #42

bfredl opened this issue Sep 5, 2020 · 10 comments

Comments

@bfredl
Copy link
Contributor

bfredl commented Sep 5, 2020

I did use 'vim-cnof-live/pres.vim' and it freezed up. I would expect no freeze and an async error message a few secs later when git gives up.

@wbthomason
Copy link
Owner

How long did you wait? Clones should time out after the value of config.git.clone_timeout (...which I now realize I never added to the docs, whoops), which defaults to 60s (based on the timeout value used in plug.vim). The freeze is bizarre, though - the entire editor froze up?

@wbthomason
Copy link
Owner

wbthomason commented Sep 6, 2020

I also cannot reproduce this on my machines....exactly what you describe expecting happens for me....

@bfredl
Copy link
Contributor Author

bfredl commented Sep 6, 2020

ok, I will try again today..

@bfredl
Copy link
Contributor Author

bfredl commented Sep 6, 2020

yes it hangs on username for https://github.com/xx/yy message (the entire neovim UI)

@bfredl
Copy link
Contributor Author

bfredl commented Sep 6, 2020

it unhangs after 60s yes, but neovim should not freeze during this minute.

@wbthomason
Copy link
Owner

Agreed; I'll look into why it's freezing. Could you post your .gitconfig, since I can't seem to replicate the behavior on my system?

@wbthomason
Copy link
Owner

Hmm. I'm shooting in the dark with this theory as I still cannot reproduce the bug, but I wonder if this would be caused by not passing a stdin fd to the luv.spawn call used to start git? Since you mention that it hangs on a prompt for username...

@bfredl
Copy link
Contributor Author

bfredl commented Sep 7, 2020

@wbthomason I would guess you have to override the stdin explicitly. We should make our vim.loop documentation clearer about this.

wbthomason added a commit that referenced this issue Sep 14, 2020
Maybe addresses #42, #26, #40?
@wbthomason
Copy link
Owner

I pushed a commit just now adding this. It doesn't break anything on my end, but I have still never been able to repro the issue here (or in #40 or #26, which I think are duplicates of this), so I'm not sure if it fixes the issue.

wbthomason pushed a commit that referenced this issue Nov 23, 2020
Fix the issue with nonexistent `git` repos causing a freeze
@wbthomason
Copy link
Owner

Fixed by #91

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