Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bash): Silently fail if pkg-config bash-completion exists with non 0
Meaning bash-completion is either not installed or misconfigured with PKG_CONFIG_PATH. It'll fallback to only two possible installation, stdout and ~/.bashrc
- Loading branch information
0765749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeoman recently (in the last 48 hours) cropped up with an issue,
even on older (1.6.0 compared to the current 1.8.1) installs[EDIT: only happens on 1.8.0 and 1.8.1], Linux, where it hangs trying to install tabtab. I tried updating Yeoman on my local machine to 1.8.1 and I got the same error, and installing tabtab vianpm install tabtab --save
doesn't produce the same error.Console output:
`> yo@1.8.1 tabtab /usr/local/lib/node_modules/yo
tabtab:installer Bash shell detected +0ms
tabtab:installer Asking pkg-config for completionsdir +2ms
tabtab:installer cmd +1ms pkg-config --variable=completionsdir bash-completion
tabtab:installer undefined +10ms
tabtab:installer Asking pkg-config for compatdir +1ms
tabtab:installer cmd +0ms pkg-config --variable=compatdir bash-completion
? Where do you want to setup the completion script (Use arrow keys)
❯ Nowhere. Just output to STDOUT
Bash config file (~/.bashrc)`
Once it reaches the
❯ Nowhere. Just output to STDOUT
, it hangs indefinitely (or at least up to 45 minutes). The next line prints after I manually exit the process.0765749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChrisLCoray Thank you for reporting this. Trying to reproduce.