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

During installation, unable to select typescript option #1172

Closed
smich73 opened this issue Jan 28, 2019 · 5 comments
Closed

During installation, unable to select typescript option #1172

smich73 opened this issue Jan 28, 2019 · 5 comments

Comments

@smich73
Copy link

smich73 commented Jan 28, 2019

Sample information

  1. Sample type: yo botbuilder
  2. Sample language: nodejs
  3. Sample name: echobot

Describe the bug

When building simple JS echobot using these instructions https://docs.microsoft.com/en-us/azure/bot-service/javascript/bot-builder-javascript-quickstart?view=azure-bot-service-4.0 - used the Yeoman generator and walked through the options. Was unable to toggle between javascript and typescript - had to select former

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://docs.microsoft.com/en-us/azure/bot-service/javascript/bot-builder-javascript-quickstart?view=azure-bot-service-4.0
  2. Follow the instructions to use Yo generator and select Echobot. Enter your bot name, description
  3. I could only choose javascript and not typescript. This is despite having typescript installed on my Windows system (v 2.5.3)
  4. I selected JS and it all installed ok

Expected behavior

At the option to select 'Javascript' or 'Typescript' then I should have been able to toggle between them and select both. Instead the option is not selectable.

Screenshots

None

Additional context

None

[bug]

@sgellock
Copy link
Member

@smich73 I just installed v4.2.4 of generator-botbuilder. I followed the instructions in the documentation link you provided above. I was able to create an echo bot in TypeScript. What version of the generator are you using

@tdurnford
Copy link
Contributor

tdurnford commented Jan 29, 2019

What terminal are you using?

Yeoman doesn't work with terminals like Git Bash since they are not TTY terminals - meaning they don't have interactive features that allow you to toggle between selector options like the JavaScript and TypeScript selector. Even though the Yeoman BotBuilder Generator command doesn't work with non-TTY terminals, it does work fine in terminals like the command prompt, powershell, and the bash terminal in VS code.

Hope this helps!

@smich73
Copy link
Author

smich73 commented Jan 29, 2019

I am using botbuilder v4.2.4 via Windows command prompt. Yeoman v2.0.5.
thanks all

@smich73
Copy link
Author

smich73 commented Jan 29, 2019

Looks like the issue is with Yeoman - see the issue logged at: yeoman/yo#360

Therefore closing this issue against botbuilder. Thank you all for your help

@smich73 smich73 closed this as completed Jan 29, 2019
@sgellock
Copy link
Member

@smich73 You can also provide all the options our template prompts for as command line parameters. Please refer to the following for docs and examples:
https://github.com/Microsoft/BotBuilder-Samples/tree/master/generators/generator-botbuilder#generator-command-line-options

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

3 participants