-
Notifications
You must be signed in to change notification settings - Fork 12k
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
AUTOCOMPLETION. ng completion has no output #2253
Comments
Does this still happen? @catull has made some nice improvement to |
|
That's not right. I'll look into it. |
By the way, a recently installed angular-cli from npm repository,
finally produces useful output, ###-begin-ng-completion###
#
# ng command completion script
#
# Installation: ng completion >> ~/.bashrc (or ~/.zshrc)
#
ng_opts='b build completion doc e2e g generate get github-pages:deploy gh-pages:deploy h help i init install lint make-this-awesome new s serve server set t test v version -h --help'
build_opts='--aot --base-href --environment --output-path --suppress-sizes --target --watch --watcher -bh -dev -e -o -prod -t -w'
generate_opts='class component directive enum module pipe route service c cl d e m p r s --help'
github_pages_deploy_opts='--base-href --environment --gh-token --gh-username --message --skip-build --target --user-page -bh -e -t'
help_opts='--json --verbose -v'
init_opts='--dry-run inline-style inline-template --link-cli --mobile --name --prefix --routing --skip-bower --skip-npm --source-dir --style --verbose -d -is -i
.... Good work! |
Cool! Works for me too after updating the CLI. Thank you! This thread seems related to #1890. Running When running |
@anisabboud Good catch, the semi-colons are missing. Created a new PR for this, PR #2604. |
Thanks @catull! That was quick. Any idea why
|
Perhaps this should be the way to redirect standard output - not standand error diagnostic: ng completion 1>> ~/.bashrc I am not a bash user, but the statement would NOT append error output to ~/.bashrc. ng completion 1>>~/.zshrc The '|' is necessary to create it freshly. The above statement would work in zsh, though. |
Looks like console.log(scriptOutput) is printing to (I'm fairly new to the Angular world.) |
Actually, if completion.sh printed to stderr, then the behaviour described initially is correct, because an error happened causing the script to be exited without useful output. The original poster did not volunteer more information, so it is difficult to fix his/her situation. |
I have the same issue on ubuntu 14.04 - ng completion issues the script code, but >> does nothing |
Can you provide more pieces of information, please ? Which shell, and which version of it ? |
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) |
To sum up my experience with
|
I have absolutely the same symptoms |
Embarassingly my situation is much similar. OS: macOS Sierra (10.12) In zsh, executing
produce empty files. The solution is to use this frankensteinian monstruction:
It is important to keep a gap between Will produce a new PR. |
Produced PR #2635 as a solution. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu 16 64bit
Versions. Please run
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:do on your code? etc.
there was no new text inside /.bashrc
trying to use it on any other .txt file, has same result
The log given by the failure. Normally this include a stack trace and some
more information.
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: