Skip to content

3rd party libs installer prompts misleading #152

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

Closed
wearska opened this issue Jan 25, 2016 · 8 comments
Closed

3rd party libs installer prompts misleading #152

wearska opened this issue Jan 25, 2016 · 8 comments

Comments

@wearska
Copy link

wearska commented Jan 25, 2016

Great feature this, but there's a bug:

After you install a package, the prompt asks you if you want to automatically inject it. Default answer is "N", but if you hit enter, it says "Done" and doesn't walk you through the rest of the setup.

On a different note, I can't find any documentation / guidelines on how to use it.
Readme needs to be updated to at least say it exists.

@jkuri
Copy link
Contributor

jkuri commented Jan 25, 2016

Yes, default answer is "N" and I think its not a bug if it doesn't walk you through the rest of the setup if you answer N(o).
Documentation it will be written soon, even for creating libs to be compatible with this feature.

@wearska
Copy link
Author

wearska commented Jan 25, 2016

This means I understood wrong?
If the prompt asks me if I want it to do something automatically, then, if I say 'Yes', it should go ahead and do it's job, automatically... If I say 'No', it should start prompting me for details about that specific task.
Am I not right?

@jkuri
Copy link
Contributor

jkuri commented Jan 25, 2016

[bla]$ ng install ng2-jwt
warning: An ember-addon has attempted to override the core command "install". The addon command will be used as the overridding was explicit.
version: 1.13.15
Installing 3rd party package: ng2-jwt...
Package successfully installed.

[?] Would you like to inject the installed packages into your app automatically? (N/y) N

Done.
[bla]$ ng install ng2-jwt
warning: An ember-addon has attempted to override the core command "install". The addon command will be used as the overridding was explicit.
version: 1.13.15
Installing 3rd party package: ng2-jwt...
Package successfully installed.

[?] Would you like to inject the installed packages into your app automatically? (N/y) Y
[?] What is the path to the file which bootstraps your app? (/Users/jan/Desktop/bla/src/app.ts)
.
.
.

Is that not right? I cannot repeat your "bug", please tell me the scenario.

@wearska
Copy link
Author

wearska commented Jan 25, 2016

I believe the first prompt is a tad misleading...
If you ask me to do something automatically and I say NO, it means I want you to let me do it... That's how I see it.
When you ask me if I want to automatically inject something, and I say 'No', I expect you to let me do it manually, and further prompt me for details.

Don't get me wrong, the above example applies to me as well.. There's no bug installing the libs
But.. I think the prompt should react the other way around.

@jkuri
Copy link
Contributor

jkuri commented Jan 25, 2016

Maybe you're right. If someone else see it as misleading, we will change the questions or the sequence.
I personally see it if you answer "no", you want to manually write your code in a text editor :)

@wearska wearska changed the title 3rd party libs installer prompts bug 3rd party libs installer prompts misleading Jan 25, 2016
@jkuri
Copy link
Contributor

jkuri commented Jan 29, 2016

@wearska you were right, prompts is a bit misleading. Also, I found some bugs myself and I will make fixes through the weekend. When you will have time, please provide questions in order (with default answers) how would you initialize the prompt and I will rework the code so.

@jkuri
Copy link
Contributor

jkuri commented Jan 30, 2016

@wearska please check #160. You can test it with ng2-cli-test-lib if you will.

@jkuri jkuri closed this as completed Feb 25, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants