nimble icon indicating copy to clipboard operation
nimble copied to clipboard

Yes/No prompt does not appear

Open panno8M opened this issue 1 year ago • 4 comments

For example, when you run:

nimble install nonexistent

the following message should appear:

Prompt: nonexistent not found in any local packages.json, check internet for updated packages? [y/N]
Answer: 

But now nothing shows up. It is likely that this is due to the wrong prioritization of silents.

https://github.com/nim-lang/nimble/blob/31dcee52708130383c048aeb31bfed6bd72a2b25/src/nimblepkg/cli.nim#L29-L30 https://github.com/nim-lang/nimble/blob/31dcee52708130383c048aeb31bfed6bd72a2b25/src/nimblepkg/cli.nim#L176-L190

panno8M avatar Jul 08 '24 03:07 panno8M

I get this personally or I did not understand what you meant:

nimble install nonexistant
Downloading Official package list
    Success Package list downloaded.
       Tip: 4 messages have been suppressed, use --verbose to show them.
download.nim(599)        getDownloadInfo

    Error:  Package nonexistant@any version not found.

melMass avatar Jul 12 '24 00:07 melMass

Does it also display a yes/no prompt? The correct output should be as follows.

    Prompt: nonexistent not found in any local packages.json, check internet for updated packages? [y/N]
    Answer: 

EDIT: The first example was insufficient. My apologies.

panno8M avatar Jul 12 '24 03:07 panno8M

I cannot reproduce this bug. image image

xTrayambak avatar Aug 04 '24 11:08 xTrayambak

The title and error content were ambiguous and have been corrected.

@xTrayambak It is properly reproduced. Normally, instead of exiting with an error, you should get a prompt asking if you want to update the package list.

Currently, the implementation skips all Yes/No prompts, not just this example.

panno8M avatar Aug 04 '24 17:08 panno8M