onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
245 stars 28 forks source link

Tutorial version dcli 0.51.0 do not work (win11 64bit) #201

Closed Tranberry closed 1 year ago

Tranberry commented 2 years ago

Describe the bug Version in https://dcli.onepub.dev/writing-your-first-script will break when hidden in set to true:

var example = ask('password:', hidden: true);

on a windows machine hitting enter/return will just register as an additional keystroke instead of 'submitting' the hidden string.

To Reproduce Copy this into your pubspec.yaml

name: hello_world
description: My first app that does bugger all.

dependencies:
  dcli: ^0.51.0

Expected behavior I would expect the tutorial to be more newbi friendly and not make us set a broken version of dcli for it.

bsutton commented 1 year ago

Does updating to the latest version of dcli resolve the issue?

On Thu, 6 Oct 2022, 3:30 am TRBRY, @.***> wrote:

Describe the bug Version in https://dcli.onepub.dev/writing-your-first-script will break when hidden in set to true:

var example = ask('password:', hidden: true);

on a windows machine hitting enter/return will just register as an additional keystroke instead of 'submitting' the hidden string.

To Reproduce Copy this into your pubspec.yaml

name: hello_worlddescription: My first app that does bugger all. dependencies: dcli: ^0.51.0

Expected behavior I would expect the tutorial to be more newbi friendly and not make us set a broken version of dcli for it.

— Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OB25RRM2UIAALETSJLWBWUKLANCNFSM6AAAAAAQ5W3W4U . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bsutton commented 1 year ago

I've update the doco. If you can confirm the latest version resolves the issue I will close this out.

appreciate the feedback.

Tranberry commented 1 year ago

It does work perfectly with 1.34.0, which is what I tried directly after concluding that everything else beside the hidden: true worked fine.

dependencies:
  dcli: ^1.34.0
bsutton commented 1 year ago

Good to hear.

I'm wondering if I can ask a favour.

I've launched a new company at https://onepub.dev. It's a private package repository for Dart. We are currently in beta and looking for feedback. I'm wondering if you have the time to take it for a spin and provide some feedback. Beta testers that upload a package get a lifetime free Pro subscription.